$treeview $search $mathjax
Stratagus  2.2.7
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

src/include/upgrade_structs.h File Reference

#include <vector>

Go to the source code of this file.


Classes

class  CUnitStats
class  CUpgrade
class  CUpgradeModifier
class  CAllow
class  CUpgradeTimers

upgrade_structs.h - The upgrade/allow headerfile.

#define FoodCost   MaxCosts
#define ScoreCost   (MaxCosts + 1)
#define ManaResCost   (MaxCosts + 2)
enum  CostType {
  TimeCost, GoldCost, WoodCost, OilCost,
  Cost4, Cost5, Cost6, MaxCosts
}
int DefaultResources [MaxCosts]
int DefaultResourcesLow [MaxCosts]
int DefaultResourcesMedium [MaxCosts]
int DefaultResourcesHigh [MaxCosts]
int DefaultIncomes [MaxCosts]
 Orc wall.
std::string DefaultActions [MaxCosts]
std::string DefaultResourceNames [MaxCosts]
int DefaultResourceAmounts [MaxCosts]
int DefaultResourceMaxAmounts [MaxCosts]
std::vector< CUpgrade * > AllUpgrades
int GetResourceIdByName (const char *resourceName)
int GetResourceIdByName (lua_State *l, const char *resourceName)

Define Documentation

#define FoodCost   MaxCosts

#define ManaResCost   (MaxCosts + 2)

#define ScoreCost   (MaxCosts + 1)


Enumeration Type Documentation

enum CostType

Indices into costs/resource/income array.

Enumerator:
TimeCost 
GoldCost  time in game cycles
WoodCost  gold resource
OilCost  wood resource
Cost4  oil resource
Cost5  resource 4
Cost6  resource 5
MaxCosts  resource 6

how many different costs


Function Documentation

int GetResourceIdByName ( lua_State *  l,
const char *  resourceName 
)

int GetResourceIdByName ( const char *  resourceName  ) 


Variable Documentation

std::vector<CUpgrade *> AllUpgrades

std::string DefaultActions[MaxCosts]

Default action for the resources.

int DefaultIncomes[MaxCosts]

Orc wall.

Default incomes for a new player.

int DefaultResourceAmounts[MaxCosts]

Default amounts for the resources.

Default max amounts for the resources.

std::string DefaultResourceNames[MaxCosts]

Default names for the resources.

int DefaultResources[MaxCosts]

Default resources for a new player.

int DefaultResourcesHigh[MaxCosts]

Default resources for a new player with high resources.

int DefaultResourcesLow[MaxCosts]

Default resources for a new player with low resources.

int DefaultResourcesMedium[MaxCosts]

Default resources for a new player with mid resources.

(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.