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

#include <GlobalLanguage.h>

Inherits SubsystemInterface.

Public Types

typedef std::list< AsciiStringStringList
 
typedef StringList::iterator StringListIt
 

Public Member Functions

 GlobalLanguage ()
 
virtual ~GlobalLanguage ()
 
void init ()
 
void reset ()
 
void update ()
 
Int adjustFontSize (Int theFontSize)
 
- Public Member Functions inherited from SubsystemInterface
 SubsystemInterface ()
 
virtual ~SubsystemInterface ()
 
virtual void postProcessLoad ()
 
virtual void draw (void)
 
void UPDATE (void)
 
void DRAW (void)
 
AsciiString getName (void)
 
void setName (AsciiString name)
 

Static Public Member Functions

static void parseFontFileName (INI *ini, void *instance, void *store, const void *userData)
 
static void parseFontDesc (INI *ini, void *instance, void *store, const void *userData)
 

Public Attributes

AsciiString m_unicodeFontName
 
AsciiString m_unicodeFontFileName
 
Bool m_useHardWrap
 
Int m_militaryCaptionSpeed
 
Int m_militaryCaptionDelayMS
 
FontDesc m_copyrightFont
 
FontDesc m_messageFont
 
FontDesc m_militaryCaptionTitleFont
 
FontDesc m_militaryCaptionFont
 
FontDesc m_superweaponCountdownNormalFont
 
FontDesc m_superweaponCountdownReadyFont
 
FontDesc m_namedTimerCountdownNormalFont
 
FontDesc m_namedTimerCountdownReadyFont
 
FontDesc m_drawableCaptionFont
 
FontDesc m_defaultWindowFont
 
FontDesc m_defaultDisplayStringFont
 
FontDesc m_tooltipFontName
 
FontDesc m_nativeDebugDisplay
 
FontDesc m_drawGroupInfoFont
 
FontDesc m_creditsTitleFont
 
FontDesc m_creditsPositionFont
 
FontDesc m_creditsNormalFont
 
Real m_resolutionFontSizeAdjustment
 
StringList m_localFonts
 

Additional Inherited Members

- Protected Attributes inherited from SubsystemInterface
AsciiString m_name
 

Detailed Description

Definition at line 69 of file GlobalLanguage.h.

Member Typedef Documentation

◆ StringList

Definition at line 109 of file GlobalLanguage.h.

◆ StringListIt

typedef StringList::iterator GlobalLanguage::StringListIt

Definition at line 110 of file GlobalLanguage.h.

Constructor & Destructor Documentation

◆ GlobalLanguage()

GlobalLanguage::GlobalLanguage ( )

Definition at line 110 of file GlobalLanguage.cpp.

◆ ~GlobalLanguage()

GlobalLanguage::~GlobalLanguage ( )
virtual

Definition at line 124 of file GlobalLanguage.cpp.

Member Function Documentation

◆ adjustFontSize()

Int GlobalLanguage::adjustFontSize ( Int theFontSize)

Definition at line 192 of file GlobalLanguage.cpp.

◆ init()

void GlobalLanguage::init ( )
virtual
  • Assign any default values to data required for the class
    • Allocate any memory and resources needed throughout the lifetime of the class

Implements SubsystemInterface.

Definition at line 136 of file GlobalLanguage.cpp.

◆ parseFontDesc()

void GlobalLanguage::parseFontDesc ( INI * ini,
void * instance,
void * store,
const void * userData )
static

Definition at line 177 of file GlobalLanguage.cpp.

◆ parseFontFileName()

void GlobalLanguage::parseFontFileName ( INI * ini,
void * instance,
void * store,
const void * userData )
static

Definition at line 185 of file GlobalLanguage.cpp.

◆ reset()

void GlobalLanguage::reset ( )
virtual
  • Any system should be able to reset all data and go back to an empty state that is ready to accept a completely new set of data. Reset() can expect to be used in the context of resetting the engine in order to start or load a new game.
    • Do NOT free and re-allocate resources needed, where possible reorganize and re-initialize the resources already allocated.
    • After a reset, the system does not need to be in EXACTLY the same state as a fresh instantiation. If there are persistent state information for the system make sure you maintain it while restoring or re-initializing other transient parts.

Implements SubsystemInterface.

Definition at line 174 of file GlobalLanguage.cpp.

◆ update()

void GlobalLanguage::update ( )
inlinevirtual
  • Update methods are the place to do system per frame processing. You should call the system update once each time through the game loop to service the system.
    • Note that currently the GameClient and GameLogic will be updating at different rates where the logic is running real time, and the client will adjust how many loops can be done during one server time slice in order to improve performance on low end machines.

Implements SubsystemInterface.

Definition at line 78 of file GlobalLanguage.h.

Member Data Documentation

◆ m_copyrightFont

FontDesc GlobalLanguage::m_copyrightFont

Definition at line 85 of file GlobalLanguage.h.

◆ m_creditsNormalFont

FontDesc GlobalLanguage::m_creditsNormalFont

Definition at line 101 of file GlobalLanguage.h.

◆ m_creditsPositionFont

FontDesc GlobalLanguage::m_creditsPositionFont

Definition at line 100 of file GlobalLanguage.h.

◆ m_creditsTitleFont

FontDesc GlobalLanguage::m_creditsTitleFont

Definition at line 99 of file GlobalLanguage.h.

◆ m_defaultDisplayStringFont

FontDesc GlobalLanguage::m_defaultDisplayStringFont

Definition at line 95 of file GlobalLanguage.h.

◆ m_defaultWindowFont

FontDesc GlobalLanguage::m_defaultWindowFont

Definition at line 94 of file GlobalLanguage.h.

◆ m_drawableCaptionFont

FontDesc GlobalLanguage::m_drawableCaptionFont

Definition at line 93 of file GlobalLanguage.h.

◆ m_drawGroupInfoFont

FontDesc GlobalLanguage::m_drawGroupInfoFont

Definition at line 98 of file GlobalLanguage.h.

◆ m_localFonts

StringList GlobalLanguage::m_localFonts

Definition at line 112 of file GlobalLanguage.h.

◆ m_messageFont

FontDesc GlobalLanguage::m_messageFont

Definition at line 86 of file GlobalLanguage.h.

◆ m_militaryCaptionDelayMS

Int GlobalLanguage::m_militaryCaptionDelayMS

Definition at line 84 of file GlobalLanguage.h.

◆ m_militaryCaptionFont

FontDesc GlobalLanguage::m_militaryCaptionFont

Definition at line 88 of file GlobalLanguage.h.

◆ m_militaryCaptionSpeed

Int GlobalLanguage::m_militaryCaptionSpeed

Definition at line 83 of file GlobalLanguage.h.

◆ m_militaryCaptionTitleFont

FontDesc GlobalLanguage::m_militaryCaptionTitleFont

Definition at line 87 of file GlobalLanguage.h.

◆ m_namedTimerCountdownNormalFont

FontDesc GlobalLanguage::m_namedTimerCountdownNormalFont

Definition at line 91 of file GlobalLanguage.h.

◆ m_namedTimerCountdownReadyFont

FontDesc GlobalLanguage::m_namedTimerCountdownReadyFont

Definition at line 92 of file GlobalLanguage.h.

◆ m_nativeDebugDisplay

FontDesc GlobalLanguage::m_nativeDebugDisplay

Definition at line 97 of file GlobalLanguage.h.

◆ m_resolutionFontSizeAdjustment

Real GlobalLanguage::m_resolutionFontSizeAdjustment

Definition at line 103 of file GlobalLanguage.h.

◆ m_superweaponCountdownNormalFont

FontDesc GlobalLanguage::m_superweaponCountdownNormalFont

Definition at line 89 of file GlobalLanguage.h.

◆ m_superweaponCountdownReadyFont

FontDesc GlobalLanguage::m_superweaponCountdownReadyFont

Definition at line 90 of file GlobalLanguage.h.

◆ m_tooltipFontName

FontDesc GlobalLanguage::m_tooltipFontName

Definition at line 96 of file GlobalLanguage.h.

◆ m_unicodeFontFileName

AsciiString GlobalLanguage::m_unicodeFontFileName

Definition at line 81 of file GlobalLanguage.h.

◆ m_unicodeFontName

AsciiString GlobalLanguage::m_unicodeFontName

Definition at line 80 of file GlobalLanguage.h.

◆ m_useHardWrap

Bool GlobalLanguage::m_useHardWrap

Definition at line 82 of file GlobalLanguage.h.


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