ScummVM API documentation
Myst3::Inventory Class Reference
Inheritance diagram for Myst3::Inventory:
Myst3::Window Myst3::Drawable

Public Member Functions

 Inventory (Myst3Engine *vm)
 
Common::Rect getPosition () const override
 
Common::Rect getOriginalPosition () const override
 
void loadFromState ()
 
void updateState ()
 
void addItem (uint16 var, bool atEnd)
 
void addSaavedroChapter (uint16 var)
 
void addAll ()
 
void removeItem (uint16 var)
 
void reset ()
 
bool isMouseInside ()
 
void updateCursor ()
 
void reflow ()
 
uint16 hoveredItem ()
 
void useItem (uint16 var)
 
void draw () override
 
- Public Member Functions inherited from Myst3::Window
Common::Point getCenter () const
 
Common::Point screenPosToWindowPos (const Common::Point &screen) const
 
Common::Point scalePoint (const Common::Point &screen) const
 
- Public Member Functions inherited from Myst3::Drawable
virtual void drawOverlay ()
 
bool isConstrainedToWindow () const
 
bool is3D () const
 
bool isScaled () const
 

Additional Inherited Members

- Protected Attributes inherited from Myst3::Drawable
bool _isConstrainedToWindow
 
bool _is3D
 
bool _scaled
 

Member Function Documentation

◆ getPosition()

Common::Rect Myst3::Inventory::getPosition ( ) const
overridevirtual

Get the window position in screen coordinates

Implements Myst3::Window.

◆ getOriginalPosition()

Common::Rect Myst3::Inventory::getOriginalPosition ( ) const
overridevirtual

Get the window position in original (640x480) screen coordinates

Implements Myst3::Window.

◆ isMouseInside()

bool Myst3::Inventory::isMouseInside ( )

Is the mouse inside the inventory area

◆ updateCursor()

void Myst3::Inventory::updateCursor ( )

Change the cursor when it is hovering an item


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