ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <inventory.h>

Inheritance diagram for Myst3::Inventory:
Collaboration diagram for Myst3::Inventory:

List of all members.

Classes

struct  InventoryItem
struct  ItemData

Public Member Functions

 Inventory (Myst3Engine *vm)
virtual ~Inventory ()
Common::Rect getPosition () const override
 Get the window position in screen coordinates.
Common::Rect getOriginalPosition () const override
 Get the window position in original (640x480) screen coordinates.
void loadFromState ()
void updateState ()
void addItem (uint16 var, bool atEnd)
void addSaavedroChapter (uint16 var)
void addAll ()
void removeItem (uint16 var)
void reset ()
bool isMouseInside ()
 Is the mouse inside the inventory area.
void updateCursor ()
 Change the cursor when it is hovering an item.
void reflow ()
uint16 hoveredItem ()
void useItem (uint16 var)
void draw () override

Private Types

typedef Common::List
< InventoryItem
ItemList

Private Member Functions

const ItemDatagetData (uint16 var)
void initializeTexture ()
bool hasItem (uint16 var)
void openBook (uint16 age, uint16 room, uint16 node)
void closeAllBooks ()

Private Attributes

Myst3Engine_vm
Texture_texture
ItemList _inventory

Static Private Attributes

static const ItemData _availableItems [8]

Detailed Description

Definition at line 39 of file inventory.h.


Member Typedef Documentation

Definition at line 76 of file inventory.h.


Constructor & Destructor Documentation

Myst3::Inventory::Inventory ( Myst3Engine vm  ) 

Definition at line 43 of file inventory.cpp.

Myst3::Inventory::~Inventory (  )  [virtual]

Definition at line 51 of file inventory.cpp.


Member Function Documentation

void Myst3::Inventory::addAll (  ) 

Definition at line 139 of file inventory.cpp.

void Myst3::Inventory::addItem ( uint16  var,
bool  atEnd 
)

Definition at line 106 of file inventory.cpp.

void Myst3::Inventory::addSaavedroChapter ( uint16  var  ) 

Definition at line 270 of file inventory.cpp.

void Myst3::Inventory::closeAllBooks (  )  [private]

Definition at line 247 of file inventory.cpp.

void Myst3::Inventory::draw (  )  [override, virtual]

Reimplemented from Myst3::Drawable.

Definition at line 69 of file inventory.cpp.

const Inventory::ItemData & Myst3::Inventory::getData ( uint16  var  )  [private]

Definition at line 153 of file inventory.cpp.

Common::Rect Myst3::Inventory::getOriginalPosition (  )  const [override, virtual]

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

Implements Myst3::Window.

Definition at line 313 of file inventory.cpp.

Common::Rect Myst3::Inventory::getPosition (  )  const [override, virtual]

Get the window position in screen coordinates.

Implements Myst3::Window.

Definition at line 294 of file inventory.cpp.

bool Myst3::Inventory::hasItem ( uint16  var  )  [private]

Definition at line 144 of file inventory.cpp.

uint16 Myst3::Inventory::hoveredItem (  ) 

Definition at line 199 of file inventory.cpp.

void Myst3::Inventory::initializeTexture (  )  [private]

Definition at line 55 of file inventory.cpp.

bool Myst3::Inventory::isMouseInside (  ) 

Is the mouse inside the inventory area.

Definition at line 64 of file inventory.cpp.

void Myst3::Inventory::loadFromState (  ) 

Definition at line 278 of file inventory.cpp.

void Myst3::Inventory::openBook ( uint16  age,
uint16  room,
uint16  node 
) [private]

Definition at line 258 of file inventory.cpp.

void Myst3::Inventory::reflow (  ) 

Definition at line 162 of file inventory.cpp.

void Myst3::Inventory::removeItem ( uint16  var  ) 

Definition at line 125 of file inventory.cpp.

void Myst3::Inventory::reset (  ) 

Definition at line 100 of file inventory.cpp.

void Myst3::Inventory::updateCursor (  ) 

Change the cursor when it is hovering an item.

Definition at line 319 of file inventory.cpp.

void Myst3::Inventory::updateState (  ) 

Definition at line 286 of file inventory.cpp.

void Myst3::Inventory::useItem ( uint16  var  ) 

Definition at line 211 of file inventory.cpp.


Member Data Documentation

Initial value:
 {
    {   0, 41, 47, 481 },
    {  41, 38, 50, 480 },
    {  79, 38, 49, 279 },
    { 117, 34, 48, 277 },
    { 151, 35, 44, 345 },
    { 186, 35, 44, 398 },
    { 221, 35, 44, 447 },
    {   0,  0,  0,   0 }
}

Definition at line 85 of file inventory.h.

Definition at line 91 of file inventory.h.

Definition at line 90 of file inventory.h.

Definition at line 88 of file inventory.h.


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


Generated on Sat Mar 23 2019 05:08:35 for ResidualVM by doxygen 1.7.1
curved edge   curved edge