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
asample database report

1. Develop a Web page, indicating an ordered list of the names of your five friends. 2. Develop an HTML document with a nested list indicating the content page of any book 3.

.NET class library .NET structure comes with just one category selection. And that all developers need to learn!! Whether they create the value in C# or VB.NET or J#, it doesn't

Tamagochi were all the rage in the 90's as a small toy that had limited functionality but modelled a pet. The "owner" could do the following • Feed the pet • Heal the pet

Let the player (denoted U in the diagram below) navigate around the board until she wins the game by finding the exit or is killed by a monster. A player begins the game with a sli

OTRS Customisation using Perl, MySQL Programming OTRS is a perl based open source issue ticket management solution. Default performance features 'note-internal' that is visible

What are the string data transfer instruction in assembly language? Explain all types of string data transfer instructions with examples of each? What will be the behavior of direc

Problem Solving 1. Write Pascal code that accepts as input the names of the students, course work score and exam score for a unspecified number of students who have taken a subjec

How and where to start to develop a preprocessor for java

Lexical Analyzer: Symbol Table - Holds the symbols accepted by the lexical analyzer or parser.  Each symbol may be a terminal or a non-terminal.  Terminal symbols are listed