____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"00001 // ____ _ __ 00002 // / __ )____ _____ | | / /___ ___________ 00003 // / __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/ 00004 // / /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ ) 00005 // /_____/\____/____/ |__/|__/\__,_/_/ /____/ 00006 // 00007 // A futuristic real-time strategy game. 00008 // This file is part of Bos Wars. 00009 // 00011 // 00012 // (c) Copyright 1999-2007 by Vladi Belperchinov-Shabanski and 00013 // Jimmy Salmon 00014 // 00015 // This program is free software; you can redistribute it and/or modify 00016 // it under the terms of the GNU General Public License as published by 00017 // the Free Software Foundation; only version 2 of the License. 00018 // 00019 // This program is distributed in the hope that it will be useful, 00020 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 // GNU General Public License for more details. 00023 // 00024 // You should have received a copy of the GNU General Public License 00025 // along with this program; if not, write to the Free Software 00026 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00027 // 02111-1307, USA. 00028 00029 #ifndef __UPGRADE_STRUCTS_H__ 00030 #define __UPGRADE_STRUCTS_H__ 00031 00033 00034 /*---------------------------------------------------------------------------- 00035 -- Declarations 00036 ----------------------------------------------------------------------------*/ 00037 00038 class CUnitType; 00039 class CVariable; 00040 class CIcon; 00041 00045 enum CostType { 00046 EnergyCost, 00047 MagmaCost, 00048 00049 MaxCosts 00050 }; 00051 00055 extern int DefaultResources[MaxCosts]; 00056 00060 extern int DefaultResourcesLow[MaxCosts]; 00061 00065 extern int DefaultResourcesMedium[MaxCosts]; 00066 00070 extern int DefaultResourcesHigh[MaxCosts]; 00071 00075 extern std::string DefaultResourceNames[MaxCosts]; 00076 00080 class CUnitStats { 00081 public: 00082 CUnitStats() : Variables(NULL) {} 00083 00084 CVariable *Variables; 00085 }; 00086 00087 /*---------------------------------------------------------------------------- 00088 -- upgrades and modifiers 00089 ----------------------------------------------------------------------------*/ 00090 00104 class CAllow { 00105 public: 00106 CAllow() { this->Clear(); } 00107 00108 void Clear() { 00109 memset(Units, 0, sizeof(Units)); 00110 } 00111 00112 int Units[UnitTypeMax]; 00113 }; 00114 00116 00117 #endif // !__UPGRADE_STRUCTS_H__
1.5.6