src/FoodCell.h

Go to the documentation of this file.
00001 
00008 /*
00009 This file is part of Teapot Colony Wars.
00010 
00011 Teapot Colony Wars is free software: you can redistribute it and/or modify
00012 it under the terms of the GNU General Public License as published by
00013 the Free Software Foundation, either version 2 of the License, or
00014 (at your option) any later version.
00015 
00016 Teapot Colony Wars is distributed in the hope that it will be useful,
00017 but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 GNU General Public License for more details.
00020 
00021 You should have received a copy of the GNU General Public License
00022 along with Teapot Colony Wars.  If not, see <http://www.gnu.org/licenses/>.
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

Generated on Sat Feb 2 22:22:54 2008 for Teapot Colony Wars by  doxygen 1.5.4