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
The next major set of tasks to tackle are delete and update. Version control systems typically version updates to a ?le and only store the differences between the ?les. Two system

Write a function called withdraw (in the file 'withdraw.m') that simulates withdrawing money from a bank account. The function takes a single input argument, a positive scaler doub

Write a Fortran LOGICAL FUNCTION, called "is_prime", which determines if a given integer value is a prime number or not (A prime number is a natural number which has only two disti

For this programming assignment, you are to develop a Fortran 90/95/2003 program to automate a useful task. The aim of the assignment is for you to reveal your competence in the Fo


What are the main pros and cons of assembly programming language?

Introduction Currently, Omega has 178 stores UK wide. Most cities and large towns within the UK are catered for by Omega. Omega began in 1960's selling various makes of telep

Often, DNA sequences are represented as a sequence of characters (String) and each character in the sequence corresponds with one of four nucleotides. A = adenine, C = cytosine,

Figure is a representation of the solar system. In a basic model of the same concentric orbits planets rotate around the sun. The closer the Planet in less time Sun completes a ful

what is a microprocessor? types of microprocessors? advantages disadvantages