ScummVM API documentation
Titanic::CTimeEventInfo Class Reference
Inheritance diagram for Titanic::CTimeEventInfo:
Titanic::ListItem Titanic::CSaveableObject

Public Member Functions

 CTimeEventInfo (uint ticks, bool repeated, uint firstDuration, uint repeatDuration, CTreeItem *target, int endVal, const CString &action)
 
void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
void postLoad (uint ticks, CProjectItem *project)
 
void preSave (uint ticks)
 
void postSave ()
 
bool update (uint ticks)
 
void setPersisent (bool val)
 
- Public Member Functions inherited from Titanic::CSaveableObject
virtual ClassDefgetType () const
 
bool isInstanceOf (const ClassDef *classDef) const
 
virtual void saveHeader (SimpleFile *file, int indent)
 
virtual void saveFooter (SimpleFile *file, int indent)
 

Public Attributes

int _lockCounter
 
uint _id
 
bool _repeated
 
uint _firstDuration
 
uint _repeatDuration
 
CTreeItem_target
 
uint _actionVal
 
CString _action
 
uint _timerCtr
 
uint _lastTimerTicks
 
uint _relativeTicks
 
bool _done
 
bool _persisent
 
CString _targetName
 
 CLASSDEF
 
- Public Attributes inherited from Titanic::ListItem
 CLASSDEF
 

Static Public Attributes

static uint _nextId
 
- Static Public Attributes inherited from Titanic::CSaveableObject
static ClassDef_type
 

Additional Inherited Members

- Static Public Member Functions inherited from Titanic::CSaveableObject
static void initClassList ()
 
static void freeClassList ()
 
static CSaveableObjectcreateInstance (const Common::String &name)
 

Member Function Documentation

◆ save()

void Titanic::CTimeEventInfo::save ( SimpleFile file,
int  indent 
)
overridevirtual

Save the data for the class to file

Reimplemented from Titanic::ListItem.

◆ load()

void Titanic::CTimeEventInfo::load ( SimpleFile file)
overridevirtual

Load the data for the class from file

Reimplemented from Titanic::ListItem.

◆ postLoad()

void Titanic::CTimeEventInfo::postLoad ( uint  ticks,
CProjectItem project 
)

Called after loading a game has finished

◆ preSave()

void Titanic::CTimeEventInfo::preSave ( uint  ticks)

Called when a game is about to be saved

◆ postSave()

void Titanic::CTimeEventInfo::postSave ( )

Called when a game has finished being saved

◆ setPersisent()

void Titanic::CTimeEventInfo::setPersisent ( bool  val)
inline

Flags whether the timer will be persisent across save & loads


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