00001 /* $Id: ai_accounting.hpp 18562 2009-12-20 12:29:16Z rubidium $ */ 00002 00003 /* 00004 * This file is part of OpenTTD. 00005 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. 00006 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00007 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. 00008 */ 00009 00012 #ifndef AI_ACCOUNTING_HPP 00013 #define AI_ACCOUNTING_HPP 00014 00015 #include "ai_object.hpp" 00016 00030 class AIAccounting : public AIObject { 00031 public: 00032 static const char *GetClassName() { return "AIAccounting"; } 00033 00039 AIAccounting(); 00040 00046 ~AIAccounting(); 00047 00054 Money GetCosts(); 00055 00061 void ResetCosts(); 00062 00063 private: 00064 Money last_costs; 00065 }; 00066 00067 #endif /* AI_ACCOUNTING_HPP */