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

#include <InGameUI.h>

Inherits MemoryPoolObject.

Public Member Functions

 SuperweaponInfo (ObjectID id, UnsignedInt timestamp, Bool hiddenByScript, Bool hiddenByScience, Bool ready, Bool evaReadyPlayed, const AsciiString &superweaponNormalFont, Int superweaponNormalPointSize, Bool superweaponNormalBold, Color c, const SpecialPowerTemplate *spt)
 
const SpecialPowerTemplategetSpecialPowerTemplate () const
 
void setFont (const AsciiString &superweaponNormalFont, Int superweaponNormalPointSize, Bool superweaponNormalBold)
 
void setText (const UnicodeString &name, const UnicodeString &time)
 
void drawName (Int x, Int y, Color color, Color dropColor)
 
void drawTime (Int x, Int y, Color color, Color dropColor)
 
Real getHeight () const
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 

Public Attributes

AsciiString m_powerName
 
ObjectID m_id
 
UnsignedInt m_timestamp
 seconds shown in display string
 
Bool m_hiddenByScript
 
Bool m_hiddenByScience
 
Bool m_ready
 Stores if we were ready last draw, since readyness can change without time changing.
 
Bool m_evaReadyPlayed
 Stores if Eva announced superweapon is ready.
 
Bool m_forceUpdateText
 

Additional Inherited Members

- Protected Member Functions inherited from MemoryPoolObject
virtual ~MemoryPoolObject ()
 
void * operator new (size_t s)
 
void operator delete (void *p)
 
virtual MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

Definition at line 172 of file InGameUI.h.

Constructor & Destructor Documentation

◆ SuperweaponInfo()

SuperweaponInfo::SuperweaponInfo ( ObjectID id,
UnsignedInt timestamp,
Bool hiddenByScript,
Bool hiddenByScience,
Bool ready,
Bool evaReadyPlayed,
const AsciiString & superweaponNormalFont,
Int superweaponNormalPointSize,
Bool superweaponNormalBold,
Color c,
const SpecialPowerTemplate * spt )

Definition at line 259 of file InGameUI.cpp.

Member Function Documentation

◆ drawName()

void SuperweaponInfo::drawName ( Int x,
Int y,
Color color,
Color dropColor )

Definition at line 326 of file InGameUI.cpp.

◆ drawTime()

void SuperweaponInfo::drawTime ( Int x,
Int y,
Color color,
Color dropColor )

Definition at line 334 of file InGameUI.cpp.

◆ getHeight()

Real SuperweaponInfo::getHeight ( ) const

Definition at line 343 of file InGameUI.cpp.

◆ getSpecialPowerTemplate()

const SpecialPowerTemplate * SuperweaponInfo::getSpecialPowerTemplate ( ) const
inline

Definition at line 199 of file InGameUI.h.

◆ setFont()

void SuperweaponInfo::setFont ( const AsciiString & superweaponNormalFont,
Int superweaponNormalPointSize,
Bool superweaponNormalBold )

Definition at line 310 of file InGameUI.cpp.

◆ setText()

void SuperweaponInfo::setText ( const UnicodeString & name,
const UnicodeString & time )

Definition at line 319 of file InGameUI.cpp.

Member Data Documentation

◆ m_evaReadyPlayed

Bool SuperweaponInfo::m_evaReadyPlayed

Stores if Eva announced superweapon is ready.

Definition at line 213 of file InGameUI.h.

◆ m_forceUpdateText

Bool SuperweaponInfo::m_forceUpdateText

Definition at line 215 of file InGameUI.h.

◆ m_hiddenByScience

Bool SuperweaponInfo::m_hiddenByScience

Definition at line 211 of file InGameUI.h.

◆ m_hiddenByScript

Bool SuperweaponInfo::m_hiddenByScript

Definition at line 210 of file InGameUI.h.

◆ m_id

ObjectID SuperweaponInfo::m_id

Definition at line 208 of file InGameUI.h.

◆ m_powerName

AsciiString SuperweaponInfo::m_powerName

Definition at line 207 of file InGameUI.h.

◆ m_ready

Bool SuperweaponInfo::m_ready

Stores if we were ready last draw, since readyness can change without time changing.

Definition at line 212 of file InGameUI.h.

◆ m_timestamp

UnsignedInt SuperweaponInfo::m_timestamp

seconds shown in display string

Definition at line 209 of file InGameUI.h.


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