ScummVM API documentation
Asylum::ScriptManager Class Reference
Inheritance diagram for Asylum::ScriptManager:
Common::Serializable

Public Member Functions

 ScriptManager (AsylumEngine *engine)
 
void load (Common::SeekableReadStream *stream)
 
bool process ()
 
void resetAll ()
 
void reset (uint32 count=0)
 
void queueScript (int32 scriptIndex, ActorIndex actorIndex)
 
bool isInQueue (int32 scriptIndex) const
 
void removeFromQueue (uint32 entryIndex)
 
void resetQueue ()
 
void saveLoadWithSerializer (Common::Serializer &s)
 
void saveQueue (Common::Serializer &s)
 

Member Function Documentation

◆ load()

void Asylum::ScriptManager::load ( Common::SeekableReadStream stream)

Loads the script entries

Parameters
streamthe script data stream

◆ process()

bool Asylum::ScriptManager::process ( )

Process the current script

◆ resetAll()

void Asylum::ScriptManager::resetAll ( )

Fully resets script manager state (used while changing scenes)

◆ reset()

void Asylum::ScriptManager::reset ( uint32  count = 0)

Resets the queue and local variables

◆ queueScript()

void Asylum::ScriptManager::queueScript ( int32  scriptIndex,
ActorIndex  actorIndex 
)

Initialize the script element at actionIndex to the actor at actorIndex

◆ isInQueue()

bool Asylum::ScriptManager::isInQueue ( int32  scriptIndex) const

Query if 'scriptIndex' is in queue.

Parameters
scriptIndexZero-based index of the script.
Returns
true if in queue, false if not.

◆ removeFromQueue()

void Asylum::ScriptManager::removeFromQueue ( uint32  entryIndex)

Remove a script element from the queue

◆ resetQueue()

void Asylum::ScriptManager::resetQueue ( )

Resets the queue.


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