ScummVM API documentation
Stark::Global Class Reference

#include <global.h>

Public Member Functions

Resources::RootgetRoot () const
 
Resources::LevelgetLevel () const
 
CurrentgetCurrent () const
 
bool isFastForward () const
 
uint getMillisecondsPerGameloop () const
 
Resources::GlobalItemTemplategetApril () const
 
Resources::KnowledgeSetgetInventory () const
 
void setRoot (Resources::Root *root)
 
void setLevel (Resources::Level *level)
 
void setCurrent (Current *current)
 
void setFastForward ()
 
void setNormalSpeed ()
 
void setMillisecondsPerGameloop (uint millisecondsPerGameloop)
 
void setApril (Resources::GlobalItemTemplate *april)
 
void setInventory (Resources::KnowledgeSet *inventory)
 
int32 getCurrentChapter ()
 
bool hasInventoryItem (const Common::String &itemName) const
 
void setCurrentChapter (int32 value)
 
Common::String getCharacterName (int32 id)
 

Detailed Description

Global resources holder object

Member Function Documentation

◆ getCurrentChapter()

int32 Stark::Global::getCurrentChapter ( )

Retrieve the current chapter number from the global resource tree

◆ hasInventoryItem()

bool Stark::Global::hasInventoryItem ( const Common::String itemName) const

Check if the player has an inventory item using its name

◆ setCurrentChapter()

void Stark::Global::setCurrentChapter ( int32  value)

Change the current chapter

◆ getCharacterName()

Common::String Stark::Global::getCharacterName ( int32  id)

Get the name of a character by its id


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