ScummVM API documentation
Draci::Game Class Reference

Public Member Functions

 Game (DraciEngine *vm)
 
void init ()
 
void start ()
 
void loop (LoopSubstatus substatus, bool shouldExit)
 
int nextRoomNum () const
 
int prevRoomNum () const
 
Common::Point findNearestWalkable (int x, int y) const
 
void heroAnimationFinished ()
 
void stopWalking ()
 
void walkHero (int x, int y, SightDirection dir)
 
void setHeroPosition (const Common::Point &p)
 
const Common::PointgetHeroPosition () const
 
const Common::PointgetHeroLoadingPosition () const
 
void positionAnimAsHero (Animation *anim)
 
void positionHeroAsAnim (Animation *anim)
 
int playHeroAnimation (int anim_index)
 
void loadOverlays ()
 
void loadWalkingMap (int mapID)
 
void switchWalkingAnimations (bool enabled)
 
uint getNumObjects () const
 
GameObjectgetObject (uint objNum)
 
const GameObjectgetObjectWithAnimation (const Animation *anim) const
 
void deleteObjectAnimations ()
 
void deleteAnimationsAfterIndex (int lastAnimIndex)
 
int getVariable (int varNum) const
 
void setVariable (int varNum, int value)
 
const PersongetPerson (int personID) const
 
int getRoomNum () const
 
void setRoomNum (int num)
 
int getPreviousRoomNum () const
 
void rememberRoomNumAsPrevious ()
 
void scheduleEnteringRoomUsingGate (int room, int gate)
 
void pushNewRoom ()
 
void popNewRoom ()
 
double getPers0 () const
 
double getPersStep () const
 
int getMusicTrack () const
 
void setMusicTrack (int num)
 
int getItemStatus (int itemID) const
 
void setItemStatus (int itemID, int status)
 
GameItemgetItem (int id)
 
GameItemgetCurrentItem () const
 
void setCurrentItem (GameItem *item)
 
int getPreviousItemPosition () const
 
void setPreviousItemPosition (int pos)
 
void removeItem (GameItem *item)
 
void loadItemAnimation (GameItem *item)
 
void putItem (GameItem *item, int position)
 
void addItem (int itemID)
 
int getEscRoom () const
 
int getMapRoom () const
 
int getMapID () const
 
int getMarkedAnimationIndex () const
 
void setMarkedAnimationIndex (int index)
 
void setLoopStatus (LoopStatus status)
 
void setLoopSubstatus (LoopSubstatus status)
 
LoopStatus getLoopStatus () const
 
LoopSubstatus getLoopSubstatus () const
 
bool gameShouldQuit () const
 
void setQuit (bool quit)
 
bool shouldExitLoop () const
 
void setExitLoop (bool exit)
 
bool isReloaded () const
 
void setIsReloaded (bool value)
 
bool isPositionLoaded ()
 
void setPositionLoaded (bool value)
 
void setSpeechTiming (uint tick, uint duration)
 
void shiftSpeechAndFadeTick (int delta)
 
void inventoryInit ()
 
void inventoryDraw ()
 
void inventoryDone ()
 
void inventoryReload ()
 
void inventorySwitch (int action)
 
void dialogueMenu (int dialogueID)
 
int dialogueDraw ()
 
void dialogueInit (int dialogID)
 
void dialogueDone ()
 
bool isDialogueBegin () const
 
bool shouldExitDialogue () const
 
void setDialogueExit (bool exit)
 
int getDialogueBlockNum () const
 
int getDialogueVar (int dialogueID) const
 
void setDialogueVar (int dialogueID, int value)
 
int getCurrentDialogue () const
 
int getDialogueCurrentBlock () const
 
int getDialogueLastBlock () const
 
int getDialogueLinesNum () const
 
int getCurrentDialogueOffset () const
 
void schedulePalette (int paletteID)
 
int getScheduledPalette () const
 
void initializeFading (int phases)
 
void setEnableQuickHero (bool value)
 
bool getEnableQuickHero () const
 
void setWantQuickHero (bool value)
 
bool getWantQuickHero () const
 
void setEnableSpeedText (bool value)
 
bool getEnableSpeedText () const
 
void synchronize (Common::Serializer &s, uint8 saveVersion)
 

Member Function Documentation

◆ getMarkedAnimationIndex()

int Draci::Game::getMarkedAnimationIndex ( ) const
inline

The GPL command Mark sets the animation index (which specifies the order in which animations were loaded in) which is then used by the Release command to delete all animations that have an index greater than the one marked.


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