Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
SidesInfo Class Reference

#include <SidesList.h>

Public Member Functions

 SidesInfo (void)
 
 SidesInfo (const SidesInfo &thatref)
 
 ~SidesInfo (void)
 
void init (const Dict *d)
 
void clear ()
 
DictgetDict ()
 
void addToBuildList (BuildListInfo *pBuildList, Int position)
 
Int removeFromBuildList (BuildListInfo *pBuildList)
 
void reorderInBuildList (BuildListInfo *pBuildList, Int newPosition)
 
BuildListInfogetBuildList (void)
 Gets the build list.
 
void releaseBuildList (void)
 Used when the build list is passed to class Player.
 
ScriptListgetScriptList (void)
 
void setScriptList (ScriptList *pScriptList)
 
SidesInfooperator= (const SidesInfo &that)
 

Protected Attributes

BuildListInfom_pBuildList
 linked list.
 
Dict m_dict
 general player dict.
 
ScriptListm_scripts
 linked list.
 

Detailed Description

This is a class that describes a Side, including build list. Note that a side corresponds to a Player in the game. The lightweight Side is used to give the WB Editor somewhere to hang build lists.

Definition at line 56 of file SidesList.h.

Constructor & Destructor Documentation

◆ SidesInfo() [1/2]

SidesInfo::SidesInfo ( void )

SidesInfo - Constructor.

Definition at line 65 of file SidesList.cpp.

◆ SidesInfo() [2/2]

SidesInfo::SidesInfo ( const SidesInfo & thatref)

Definition at line 71 of file SidesList.cpp.

◆ ~SidesInfo()

SidesInfo::~SidesInfo ( void )

SidesInfo - Destructor -

Definition at line 81 of file SidesList.cpp.

Member Function Documentation

◆ addToBuildList()

void SidesInfo::addToBuildList ( BuildListInfo * pBuildList,
Int position )

SidesInfo::addToBuildList - Adds a build list entry as the nth entry.

Definition at line 133 of file SidesList.cpp.

◆ clear()

void SidesInfo::clear ( )
inline

Definition at line 68 of file SidesList.h.

◆ getBuildList()

BuildListInfo * SidesInfo::getBuildList ( void )
inline

Gets the build list.

Definition at line 73 of file SidesList.h.

◆ getDict()

Dict * SidesInfo::getDict ( )
inline

Definition at line 69 of file SidesList.h.

◆ getScriptList()

ScriptList * SidesInfo::getScriptList ( void )
inline

Definition at line 75 of file SidesList.h.

◆ init()

void SidesInfo::init ( const Dict * d)

Definition at line 86 of file SidesList.cpp.

◆ operator=()

SidesInfo & SidesInfo::operator= ( const SidesInfo & that)

Definition at line 99 of file SidesList.cpp.

◆ releaseBuildList()

void SidesInfo::releaseBuildList ( void )
inline

Used when the build list is passed to class Player.

Definition at line 74 of file SidesList.h.

◆ removeFromBuildList()

Int SidesInfo::removeFromBuildList ( BuildListInfo * pBuildList)

SidesInfo::removeFromBuildList - Removes a build list entry. Returns the position in the list that the item occupied.

Definition at line 174 of file SidesList.cpp.

◆ reorderInBuildList()

void SidesInfo::reorderInBuildList ( BuildListInfo * pBuildList,
Int newPosition )

SidesInfo::reorderInBuildList - Reorders a build list entry as the nth entry.

Definition at line 163 of file SidesList.cpp.

◆ setScriptList()

void SidesInfo::setScriptList ( ScriptList * pScriptList)
inline

Definition at line 76 of file SidesList.h.

Member Data Documentation

◆ m_dict

Dict SidesInfo::m_dict
protected

general player dict.

Definition at line 60 of file SidesList.h.

◆ m_pBuildList

BuildListInfo* SidesInfo::m_pBuildList
protected

linked list.

Definition at line 59 of file SidesList.h.

◆ m_scripts

ScriptList* SidesInfo::m_scripts
protected

linked list.

Definition at line 61 of file SidesList.h.


The documentation for this class was generated from the following files: