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

#include <LanguageFilter.h>

Inherits SubsystemInterface.

Public Member Functions

 LanguageFilter ()
 
 ~LanguageFilter ()
 
void init ()
 
void reset ()
 
void update ()
 
void filterLine (UnicodeString &line)
 
- 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)
 

Protected Member Functions

Bool readWord (File *file1, UnsignedShort *buf)
 
void unHaxor (UnicodeString &word)
 

Protected Attributes

LangMap m_wordList
 
LangMap m_subWordList
 
- Protected Attributes inherited from SubsystemInterface
AsciiString m_name
 

Detailed Description

Definition at line 74 of file LanguageFilter.h.

Constructor & Destructor Documentation

◆ LanguageFilter()

LanguageFilter::LanguageFilter ( )

Definition at line 41 of file LanguageFilter.cpp.

◆ ~LanguageFilter()

LanguageFilter::~LanguageFilter ( )

Definition at line 48 of file LanguageFilter.cpp.

Member Function Documentation

◆ filterLine()

void LanguageFilter::filterLine ( UnicodeString & line)

Definition at line 89 of file LanguageFilter.cpp.

◆ init()

void LanguageFilter::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 52 of file LanguageFilter.cpp.

◆ readWord()

Bool LanguageFilter::readWord ( File * file1,
UnsignedShort * buf )
protected

Definition at line 162 of file LanguageFilter.cpp.

◆ reset()

void LanguageFilter::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 80 of file LanguageFilter.cpp.

◆ unHaxor()

void LanguageFilter::unHaxor ( UnicodeString & word)
protected

Definition at line 121 of file LanguageFilter.cpp.

◆ update()

void LanguageFilter::update ( )
virtual
  • 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 84 of file LanguageFilter.cpp.

Member Data Documentation

◆ m_subWordList

LangMap LanguageFilter::m_subWordList
protected

Definition at line 88 of file LanguageFilter.h.

◆ m_wordList

LangMap LanguageFilter::m_wordList
protected

Definition at line 87 of file LanguageFilter.h.


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