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 #include "RenewableFood.h" 00026 00027 #include "Image.h" 00028 00029 GLuint RenewableFood::_tex_name = 0; 00030 00031 GLuint RenewableFood::getTexName() { 00032 if(_tex_name == 0) { 00033 Image texture("./textures/RenewableFood.bmp"); 00034 _tex_name = texture.genTexture2D(); 00035 } 00036 00037 return _tex_name; 00038 } 00039 00040 RenewableFood::RenewableFood(unsigned int max, unsigned int inc) : 00041 FoodCell(max, inc, max) { 00042 00043 } 00044 00045 RenewableFood::~RenewableFood() { 00046 00047 }