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

Public Member Functions | Public Attributes | List of all members
CUpgrade Class Reference

#include <upgrade_structs.h>

Public Member Functions

void SetIcon (CIcon *icon)
 

Public Attributes

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

upgrade.cpp - The upgrade/allow functions.

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

Detailed Description

The main useable upgrades.

Constructor & Destructor Documentation

◆ CUpgrade()

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

◆ ~CUpgrade()

CUpgrade::~CUpgrade ( )

Member Function Documentation

◆ Get()

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

Get an upgrade

Parameters
identUpgrade identifier
Returns
Upgrade pointer or NULL if not found.

◆ New()

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

Create a new upgrade

Parameters
identUpgrade identifier

◆ SetIcon()

void CUpgrade::SetIcon ( CIcon icon)

Member Data Documentation

◆ Costs

int CUpgrade::Costs[MaxCosts]

numerical id

◆ Icon

CIcon* CUpgrade::Icon

costs for the upgrade

◆ ID

int CUpgrade::ID

upgrade label

◆ Ident

std::string CUpgrade::Ident

◆ Name

std::string CUpgrade::Name

identifier


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.