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 GENETICBEHAVIOUR_H 00026 #define GENETICBEHAVIOUR_H 00027 00028 #include "Behaviour.h" 00029 00030 class GeneticCode; 00031 00035 class GeneticBehaviour : public Behaviour 00036 { 00037 protected: 00038 00040 GeneticCode * _code; 00041 00042 public: 00043 00047 GeneticBehaviour(); 00048 00054 GeneticBehaviour(GeneticCode * c); 00055 00059 virtual ~GeneticBehaviour(); 00060 00064 virtual void think(); 00065 00071 inline GeneticCode * getGeneticCode() const { 00072 return _code; 00073 } 00074 00075 }; 00076 00077 #endif // GENETICBEHAVIOUR_H