Create c sharp classes needed to track creature viability, Programming Languages

P4's goal is to design the C# classes needed to track creature viability in a MMO game under development

Part I: Class design

1)  GameCreature class (with derived types PredatorCreature and AgileCreature) as defined in P3. 

2)  Addition of functionality to order, rank, compare, sort GameCreature objects (includes parent and derived types) according to anticipated rate of energy consumption (calculated internally). 

3)  Ability to cull GameCreature objects (includes parent and derived types) from gameplay when rate of energy consumption is too high or too low. 

4)  A game is played with a collection of GameCreatures, a variety of parent and child types.

Clearly, many details are missing.  You must use operator overloading.

Make reasonable design decisions so that your classes satisfy the stated goals, communicate assumptions and use, and yield clear and maintainable software. 

Use ProgrammingByContract to specify pre and post conditions; interface, implementation and class invariants.  Relationships should be noted in the appropriate invariants. 

You MUST reuse all GameCreature classes from P3. 

Part II: Driver

Design a driver to demonstrate program requirements: Do not skimp on your driver's design

Clearly specify the intent and structure of your driver. You should have collections of distinct objects, initialized appropriately, i.e. random distribution of objects with arbitrary initial values (values should be reasonable) meaningful base values for non-arbitrary initial values.

Posted Date: 3/21/2013 2:59:11 AM | Location : United States







Related Discussions:- Create c sharp classes needed to track creature viability, Assignment Help, Ask Question on Create c sharp classes needed to track creature viability, Get Answer, Expert's Help, Create c sharp classes needed to track creature viability Discussions

Write discussion on Create c sharp classes needed to track creature viability
Your posts are moderated
Related Questions
what is the code to copy code on 1 jsp page to others

Write a function called triple (in a file called 'triple.m'). That takes a single variable x and returns a single variable in which every element of x is multiplied by 3. Make sure

Real Distinct and 1 Double Eigenvalue with 1 Eigenvector From the real eigenvalue/vector pair, l 1 and ?h 1 , we find one solution, e l1 t ?h 1 By our work in the 2x

A manager at the local Walmart needs to determine how many workers to hire to cover a 24-hour period. Each worker must work 9 consecutive hours but may only start work at the begin

Language-Integrated Query Language integrated query (LINQ, obvious "link") is a Enthusiasm .NET Structure element that contributes ancient data querying abilities to .NET dialects,

A psychologist is interested in learning about the voting behavior of college students.  (4 points for each part.)Design a study which would yield data on this topic. a. state y

Define The if - else - if Statement - Computer Programming? The universal form is                         if (expression 1)                         {

The following are required for this lesson: Complete the Project "Adding New Payments," which is the Karate Payments that includes the Adding New Payments, Deleting Payments,

A non-empty string is called a minimal unique substring of s if and only if it satisfies: (i) α occurs exactly once in s (uniqueness), (ii) all proper prefixes of occur at le

Explain the Break Statement - Computer Programming? The break statement is used as an interrupt to the normal flow of control this statement causes as exit from the switch stat