$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

CUpgrade Class Reference

#include <upgrade_structs.h>

List of all members.


upgrade.cpp - The upgrade/allow functions.

 CUpgrade (const std::string &ident)
 ~CUpgrade ()
static CUpgradeNew (const std::string &ident)
static CUpgradeGet (const std::string &ident)

Public Member Functions

void SetIcon (CIcon *icon)

Public Attributes

std::string Ident
int ID
 identifier
int Costs [MaxCosts]
 numerical id
CIconIcon
 costs for the upgrade

Detailed Description

The main useable upgrades.

Constructor & Destructor Documentation

CUpgrade::CUpgrade ( const std::string &  ident  ) 

CUpgrade::~CUpgrade (  ) 


Member Function Documentation

CUpgrade * CUpgrade::New ( const std::string &  ident  )  [static]

Create a new upgrade

Parameters:
ident Upgrade identifier

CUpgrade * CUpgrade::Get ( const std::string &  ident  )  [static]

Get an upgrade

Parameters:
ident Upgrade identifier
Returns:
Upgrade pointer or NULL if not found.

void CUpgrade::SetIcon ( CIcon icon  ) 


Member Data Documentation

std::string CUpgrade::Ident

identifier

int CUpgrade::Costs[MaxCosts]

numerical id

costs for the upgrade


The documentation for this class was generated from the following files:
(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.