blob: ed45fae3cc5d156073455e0ab6d5bbd18a0a9647 [file] [log] [blame]
#ifndef PreyDef
#define PreyDef
class Prey : public Cell {
protected:
int timeToReproduce;
void moveFrom(Coordinate from, Coordinate to);
Cell *reproduce(Coordinate anOffset);
public:
Prey(Coordinate &aCoord) : Cell(aCoord) {
timeToReproduce = TimeToReproduce;
image = DefaultPreyImage;
}
void process(void) {
Coordinate toCoord;
toCoord = getEmptyNeighborCoord();
moveFrom(*offset,toCoord);
}
};
#endif