src/ColonyCell.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 COLONYCELL_H
00026 #define COLONYCELL_H
00027 
00028 #include <GL/glut.h>
00029 
00030 #include "ReachableCell.h"
00031 
00032 class Worshiper;
00033 class Colony;
00034 
00038 class ColonyCell  : public ReachableCell
00039 {
00040 protected:
00041 
00043   Colony *_colony;
00044 
00046   unsigned int _i;
00048   unsigned int _j;
00049 
00057   virtual void getColors(GLubyte &red, GLubyte &green, GLubyte &blue);
00058 
00059 public:
00060 
00068   ColonyCell(Colony *colony, unsigned int i, unsigned int j);
00069 
00073   virtual ~ColonyCell();
00074 
00080   unsigned int getHeight();
00081 
00087   unsigned int getWidth();
00088 
00094   Colony * getColony();
00095 
00102   virtual bool reachable(Worshiper *w);
00103 
00109   virtual Cell* makeActions();
00110 };
00111 
00112 #endif // COLONYCELL_H

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