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

#include <ChallengeGenerals.h>

Public Member Functions

 ChallengeGenerals (void)
 
 ~ChallengeGenerals (void)
 
void init (void)
 
const GeneralPersona * getChallengeGenerals () const
 
const FieldParse * getFieldParse (void) const
 
const GeneralPersona * getPlayerGeneralByCampaignName (AsciiString name) const
 
const GeneralPersona * getGeneralByGeneralName (AsciiString name) const
 
const GeneralPersona * getGeneralByTemplateName (AsciiString name) const
 
void setCurrentPlayerTemplateNum (Int playerTemplateNum)
 
Int getCurrentPlayerTemplateNum (void)
 
void setCurrentDifficulty (GameDifficulty diff)
 
const GameDifficulty getCurrentDifficulty (void)
 

Static Protected Attributes

static const FieldParse s_fieldParseTable []
 

Detailed Description

Definition at line 123 of file ChallengeGenerals.h.

Constructor & Destructor Documentation

◆ ChallengeGenerals()

ChallengeGenerals::ChallengeGenerals ( void )

Definition at line 48 of file ChallengeGenerals.cpp.

◆ ~ChallengeGenerals()

ChallengeGenerals::~ChallengeGenerals ( void )

Definition at line 54 of file ChallengeGenerals.cpp.

Member Function Documentation

◆ getChallengeGenerals()

const GeneralPersona * ChallengeGenerals::getChallengeGenerals ( ) const
inline

Definition at line 138 of file ChallengeGenerals.h.

◆ getCurrentDifficulty()

const GameDifficulty ChallengeGenerals::getCurrentDifficulty ( void )
inline

Definition at line 148 of file ChallengeGenerals.h.

◆ getCurrentPlayerTemplateNum()

Int ChallengeGenerals::getCurrentPlayerTemplateNum ( void )
inline

Definition at line 145 of file ChallengeGenerals.h.

◆ getFieldParse()

const FieldParse * ChallengeGenerals::getFieldParse ( void ) const
inline

Definition at line 139 of file ChallengeGenerals.h.

◆ getGeneralByGeneralName()

const GeneralPersona * ChallengeGenerals::getGeneralByGeneralName ( AsciiString name) const

Definition at line 145 of file ChallengeGenerals.cpp.

◆ getGeneralByTemplateName()

const GeneralPersona * ChallengeGenerals::getGeneralByTemplateName ( AsciiString name) const

Definition at line 156 of file ChallengeGenerals.cpp.

◆ getPlayerGeneralByCampaignName()

const GeneralPersona * ChallengeGenerals::getPlayerGeneralByCampaignName ( AsciiString name) const

Definition at line 133 of file ChallengeGenerals.cpp.

◆ init()

void ChallengeGenerals::init ( void )

Definition at line 60 of file ChallengeGenerals.cpp.

◆ setCurrentDifficulty()

void ChallengeGenerals::setCurrentDifficulty ( GameDifficulty diff)
inline

Definition at line 147 of file ChallengeGenerals.h.

◆ setCurrentPlayerTemplateNum()

void ChallengeGenerals::setCurrentPlayerTemplateNum ( Int playerTemplateNum)
inline

Definition at line 144 of file ChallengeGenerals.h.

Member Data Documentation

◆ s_fieldParseTable

const FieldParse ChallengeGenerals::s_fieldParseTable
staticprotected
Initial value:
=
{
{ "GeneralPersona0", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[0] ) },
{ "GeneralPersona1", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[1] ) },
{ "GeneralPersona2", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[2] ) },
{ "GeneralPersona3", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[3] ) },
{ "GeneralPersona4", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[4] ) },
{ "GeneralPersona5", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[5] ) },
{ "GeneralPersona6", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[6] ) },
{ "GeneralPersona7", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[7] ) },
{ "GeneralPersona8", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[8] ) },
{ "GeneralPersona9", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[9] ) },
{ "GeneralPersona10", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[10] ) },
{ "GeneralPersona11", ChallengeGenerals::parseGeneralPersona, NULL, offsetof( ChallengeGenerals, m_position[11] ) },
{ 0, 0, 0, 0 }
}
#define NULL
Definition BaseType.h:92

Definition at line 104 of file ChallengeGenerals.h.


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