ScummVM API documentation
Stark::GameInterface Class Reference

#include <gameinterface.h>

Public Member Functions

bool skipCurrentSpeeches ()
 
void walkTo (const Common::Point &mouse)
 
VisualImageXMGgetActionImage (uint32 itemIndex, bool active)
 
VisualImageXMGgetCursorImage (uint32 itemIndex)
 
bool itemHasAction (Resources::ItemVisual *item, int32 action)
 
bool itemHasActionAt (Resources::ItemVisual *item, const Common::Point &position, int32 action)
 
int32 itemGetDefaultActionAt (Resources::ItemVisual *item, const Common::Point &position)
 
void itemDoAction (Resources::ItemVisual *item, uint32 action)
 
void itemDoActionAt (Resources::ItemVisual *item, uint32 action, const Common::Point &position)
 
Common::String getItemTitle (Resources::ItemVisual *object)
 
Common::String getItemTitleAt (Resources::ItemVisual *object, const Common::Point &pos)
 
Resources::ActionArray listActionsPossibleForObject (Resources::ItemVisual *item)
 
Resources::ActionArray listActionsPossibleForObjectAt (Resources::ItemVisual *item, const Common::Point &pos)
 
Resources::ActionArray listStockActionsPossibleForObject (Resources::ItemVisual *item)
 
Resources::ActionArray listStockActionsPossibleForObjectAt (Resources::ItemVisual *item, const Common::Point &pos)
 
bool isAprilWalking () const
 
void setAprilRunning ()
 
Common::Array< Common::PointlistExitPositions ()
 

Detailed Description

Facade object for the user interface to interact with the game world

Member Function Documentation

◆ skipCurrentSpeeches()

bool Stark::GameInterface::skipCurrentSpeeches ( )

Skip currently playing speeches

Returns
true if at least one speech was skipped

◆ walkTo()

void Stark::GameInterface::walkTo ( const Common::Point mouse)

Make April try to go to the location under the cursor

◆ itemHasAction()

bool Stark::GameInterface::itemHasAction ( Resources::ItemVisual item,
int32  action 
)

Can the item be used for an action. -1 for all actions

◆ itemGetDefaultActionAt()

int32 Stark::GameInterface::itemGetDefaultActionAt ( Resources::ItemVisual item,
const Common::Point position 
)

Get the item's default action

◆ itemDoAction()

void Stark::GameInterface::itemDoAction ( Resources::ItemVisual item,
uint32  action 
)

Do an action on the item

◆ getItemTitle()

Common::String Stark::GameInterface::getItemTitle ( Resources::ItemVisual object)

Get the item's name

◆ listActionsPossibleForObject()

Resources::ActionArray Stark::GameInterface::listActionsPossibleForObject ( Resources::ItemVisual item)

List the actions available for an item in the current game state

◆ listStockActionsPossibleForObject()

Resources::ActionArray Stark::GameInterface::listStockActionsPossibleForObject ( Resources::ItemVisual item)

List the stock actions available for an item in the current game state (hand, mouth, eye)

◆ isAprilWalking()

bool Stark::GameInterface::isAprilWalking ( ) const

Check if April is doing a walk movement

◆ setAprilRunning()

void Stark::GameInterface::setAprilRunning ( )

Make April run if she is walking

◆ listExitPositions()

Common::Array<Common::Point> Stark::GameInterface::listExitPositions ( )

List all the exit positions


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