$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
#include <upgrade_structs.h>
upgrade.cpp - The upgrade/allow functions. | |
CUpgrade (const std::string &ident) | |
~CUpgrade () | |
static CUpgrade * | New (const std::string &ident) |
static CUpgrade * | Get (const std::string &ident) |
Public Member Functions | |
void | SetIcon (CIcon *icon) |
Public Attributes | |
std::string | Ident |
int | ID |
identifier | |
int | Costs [MaxCosts] |
numerical id | |
CIcon * | Icon |
costs for the upgrade |
CUpgrade::CUpgrade | ( | const std::string & | ident | ) |
CUpgrade::~CUpgrade | ( | ) |
CUpgrade * CUpgrade::New | ( | const std::string & | ident | ) | [static] |
Create a new upgrade
ident | Upgrade identifier |
CUpgrade * CUpgrade::Get | ( | const std::string & | ident | ) | [static] |
Get an upgrade
ident | Upgrade identifier |
void CUpgrade::SetIcon | ( | CIcon * | icon | ) |
std::string CUpgrade::Ident |
int CUpgrade::ID |
identifier
int CUpgrade::Costs[MaxCosts] |
numerical id
costs for the upgrade