00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef FOODCELL_H
00026 #define FOODCELL_H
00027
00028 #include "ReachableCell.h"
00029
00033 class FoodCell : public ReachableCell
00034 {
00035 protected:
00036
00038 unsigned int _max;
00039
00041 unsigned int _inc;
00042
00044 unsigned int _value;
00045
00053 FoodCell(unsigned int max, unsigned int inc, unsigned int value);
00054
00055 public:
00056
00060 virtual ~FoodCell();
00061
00067 unsigned int getMax();
00068
00074 unsigned int getInc();
00075
00081 virtual unsigned int getFood();
00082
00089 virtual unsigned int addFood(unsigned int inc);
00090
00097 virtual unsigned int subFood(unsigned int inc);
00098
00104 virtual Cell* makeActions();
00105 };
00106
00107 #endif // FOODCELL_H