ScummVM API documentation
MutationOfJB::GameScreen Class Reference
Inheritance diagram for MutationOfJB::GameScreen:
MutationOfJB::GuiScreen MutationOfJB::InventoryObserver MutationOfJB::ButtonWidgetCallback MutationOfJB::InventoryWidgetCallback MutationOfJB::GameWidgetCallback

Public Member Functions

 GameScreen (Game &game, Graphics::Screen *screen)
 
bool init ()
 
void handleEvent (const Common::Event &event) override
 
void onInventoryChanged () override
 
void onButtonClicked (ButtonWidget *) override
 
void onInventoryItemHovered (InventoryWidget *widget, int posInWidget) override
 
void onInventoryItemClicked (InventoryWidget *widget, int posInWidget) override
 
void onGameDoorClicked (GameWidget *, Door *door) override
 
void onGameStaticClicked (GameWidget *, Static *stat) override
 
void onGameEntityHovered (GameWidget *, const Common::String &entity) override
 
ConversationWidgetgetConversationWidget ()
 
void showConversationWidget (bool show)
 
void refreshAfterSceneChanged ()
 
- Public Member Functions inherited from MutationOfJB::GuiScreen
 GuiScreen (Game &game, Graphics::Screen *screen)
 
GamegetGame ()
 
void markDirty ()
 
void update ()
 
void addWidget (Widget *widget)
 

Additional Inherited Members

- Protected Types inherited from MutationOfJB::GuiScreen
typedef Common::Array< Widget * > Widgets
 
- Protected Member Functions inherited from MutationOfJB::GuiScreen
const WidgetsgetWidgets () const
 
- Protected Attributes inherited from MutationOfJB::GuiScreen
Game_game
 
Graphics::Screen_screen
 

Member Function Documentation

◆ handleEvent()

void MutationOfJB::GameScreen::handleEvent ( const Common::Event event)
overridevirtual

Lets all visible widgets handle core events.

Parameters
eventScummVM event.

Reimplemented from MutationOfJB::GuiScreen.

◆ onInventoryItemHovered()

void MutationOfJB::GameScreen::onInventoryItemHovered ( InventoryWidget widget,
int  posInWidget 
)
overridevirtual

Called when the user hovers an inventory item with the mouse or when stops hovering an item.

Parameters
widgetInventory widget.
posInWidgetItem position in the widget or -1 if none.

Implements MutationOfJB::InventoryWidgetCallback.

◆ onInventoryItemClicked()

void MutationOfJB::GameScreen::onInventoryItemClicked ( InventoryWidget widget,
int  posInWidget 
)
overridevirtual

Called when the user clicks on an inventory item.

Parameters
widgetInventory widget.
posInWidgetItem position in the widget.

Implements MutationOfJB::InventoryWidgetCallback.


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