Fight Class Reference

#include <Fight.h>

Inheritance diagram for Fight:

Inheritance graph
[legend]

Public Member Functions

 Fight ()
 Empty constructor of a Fight.
virtual ~Fight ()
 Empty destructor.
virtual unsigned int resolve (Cell *c)=0
 Make all the fights needed in a Cell.

Detailed Description

< The fight strategy interface

Definition at line 33 of file Fight.h.


Member Function Documentation

virtual unsigned int Fight::resolve ( Cell c  )  [pure virtual]

Make all the fights needed in a Cell.

Parameters:
c the cell in which the fights had to take place
Returns:
the amount of food produced by the deads

Implemented in UntilVictoryFight.

Referenced by World::fight().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on Sat Feb 2 22:23:14 2008 for Teapot Colony Wars by  doxygen 1.5.4