#include <SidesList.h>
Inherits SubsystemInterface, and Snapshot.
Public Types | |
| enum | { MAX_TEAM_DEPTH = 3 } |
Static Public Member Functions | |
| static Bool | ParseSidesDataChunk (DataChunkInput &file, DataChunkInfo *info, void *userData) |
| Reads sides (including build list info && player dicts.) | |
| static void | WriteSidesDataChunk (DataChunkOutput &chunkWriter) |
| Writes sides (including build list info.) | |
Protected Member Functions | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess (void) |
| Bool | validateAllyEnemyList (const AsciiString &tname, AsciiString &allies) |
Protected Attributes | |
| Int | m_numSides |
| SidesInfo | m_sides [MAX_PLAYER_COUNT] |
| Int | m_numSkirmishSides |
| SidesInfo | m_skirmishSides [MAX_PLAYER_COUNT] |
| TeamsInfoRec | m_teamrec |
| TeamsInfoRec | m_skirmishTeamrec |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
This is a singleton class that maintains the list of Sides. In RTS it is associated with the Player singleton.
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, as it doesn't instantiate the Player subsystem
jba.
Definition at line 135 of file SidesList.h.
| anonymous enum |
| Enumerator | |
|---|---|
| MAX_TEAM_DEPTH | |
Definition at line 184 of file SidesList.h.
| SidesList::SidesList | ( | void | ) |
SidesList - Constructor.
Definition at line 206 of file SidesList.cpp.
| SidesList::~SidesList | ( | void | ) |
SidesList - Destructor -
Definition at line 213 of file SidesList.cpp.
| void SidesList::addPlayerByTemplate | ( | AsciiString | playerTemplateName | ) |
Definition at line 672 of file SidesList.cpp.
| void SidesList::addSide | ( | const Dict * | d | ) |
Definition at line 602 of file SidesList.cpp.
| void SidesList::addSkirmishTeam | ( | const Dict * | d | ) |
Definition at line 614 of file SidesList.cpp.
| void SidesList::addTeam | ( | const Dict * | d | ) |
Definition at line 609 of file SidesList.cpp.
| void SidesList::clear | ( | void | ) |
SidesList - clear -
Definition at line 228 of file SidesList.cpp.
|
protectedvirtual |
| void SidesList::emptySides | ( | ) |
Definition at line 584 of file SidesList.cpp.
| void SidesList::emptyTeams | ( | ) |
Definition at line 596 of file SidesList.cpp.
| SidesInfo * SidesList::findSideInfo | ( | AsciiString | name, |
| Int * | index = NULL ) |
Definition at line 395 of file SidesList.cpp.
| SidesInfo * SidesList::findSkirmishSideInfo | ( | AsciiString | name, |
| Int * | index = NULL ) |
Definition at line 409 of file SidesList.cpp.
| TeamsInfo * SidesList::findTeamInfo | ( | AsciiString | name, |
| Int * | index = NULL ) |
Definition at line 390 of file SidesList.cpp.
|
inline |
Definition at line 153 of file SidesList.h.
|
inline |
Definition at line 159 of file SidesList.h.
|
inline |
Definition at line 172 of file SidesList.h.
|
inline |
Definition at line 165 of file SidesList.h.
Definition at line 219 of file SidesList.h.
Definition at line 230 of file SidesList.h.
Definition at line 214 of file SidesList.h.
Definition at line 209 of file SidesList.h.
|
inlinevirtual |
Implements SubsystemInterface.
Definition at line 144 of file SidesList.h.
Definition at line 565 of file SidesList.cpp.
|
protectedvirtual |
|
static |
Reads sides (including build list info && player dicts.)
SidesList::ParseSidesDataChunk - read a Sides chunk. Format is the newer CHUNKY format. See SidesList::WriteSidesDataChunk for the writer. Input: DataChunkInput
Definition at line 243 of file SidesList.cpp.
| void SidesList::prepareForMP_or_Skirmish | ( | void | ) |
Definition at line 478 of file SidesList.cpp.
| void SidesList::removeSide | ( | Int | i | ) |
Definition at line 619 of file SidesList.cpp.
| void SidesList::removeTeam | ( | Int | i | ) |
Definition at line 633 of file SidesList.cpp.
|
virtual |
|
inlinevirtual |
Implements SubsystemInterface.
Definition at line 145 of file SidesList.h.
|
protected |
Definition at line 638 of file SidesList.cpp.
| Bool SidesList::validateSides | ( | void | ) |
Definition at line 725 of file SidesList.cpp.
|
static |
Writes sides (including build list info.)
SidesList::WriteSidesDataChunk - Writes a Sides chunk. Format is the newer CHUNKY format. See SidesList::ParseSidesDataChunk for the reader. Input: DataChunkInput
Definition at line 329 of file SidesList.cpp.
|
protectedvirtual |
Xfer method Version Info: 1: Initial version
Implements Snapshot.
Definition at line 854 of file SidesList.cpp.
|
protected |
Definition at line 196 of file SidesList.h.
|
protected |
Definition at line 199 of file SidesList.h.
|
protected |
Definition at line 197 of file SidesList.h.
|
protected |
Definition at line 200 of file SidesList.h.
|
protected |
Definition at line 203 of file SidesList.h.
|
protected |
Definition at line 202 of file SidesList.h.