ScummVM API documentation
Titanic::CPetInventory Class Reference

#include <pet_inventory.h>

Inheritance diagram for Titanic::CPetInventory:
Titanic::CPetSection

Public Member Functions

bool setup (CPetControl *petControl) override
 
bool reset () override
 
void draw (CScreenManager *screenManager) override
 
Rect getBounds () const override
 
void changed (int changeType) override
 
void enterRoom (CRoomItem *room) override
 
bool MouseButtonDownMsg (CMouseButtonDownMsg *msg) override
 
bool MouseDragStartMsg (CMouseDragStartMsg *msg) override
 
bool MouseButtonUpMsg (CMouseButtonUpMsg *msg) override
 
bool MouseDoubleClickMsg (CMouseDoubleClickMsg *msg) override
 
bool VirtualKeyCharMsg (CVirtualKeyCharMsg *msg) override
 
bool MouseWheelMsg (CMouseWheelMsg *msg) override
 
CGameObjectdragEnd (const Point &pt) const override
 
bool isValid (CPetControl *petControl) override
 
void load (SimpleFile *file, int param) override
 
void postLoad () override
 
void save (SimpleFile *file, int indent) override
 
void enter (PetArea oldArea) override
 
void leave () override
 
CTextControlgetText () override
 
CGameObjectgetBackground (int index) const override
 
void change (CGameObject *item)
 
void itemRemoved (CGameObject *item)
 
void itemsChanged ()
 
void highlightItem (CGameObject *item)
 
CGameObjectgetTransformAnimation (int index)
 
void playMovie (CGameObject *movie, bool repeat=true)
 
- Public Member Functions inherited from Titanic::CPetSection
virtual bool MouseDragMoveMsg (CMouseDragMoveMsg *msg)
 
virtual bool MouseDragEndMsg (CMouseDragEndMsg *msg)
 
virtual bool KeyCharMsg (CKeyCharMsg *msg)
 
virtual bool checkDragEnd (CGameObject *item)
 
virtual void displayMessage (const CString &msg)
 
virtual void proc23 ()
 
virtual void timerExpired (int val)
 
virtual void removeText (int duration)
 
virtual void removeText ()
 
virtual void stopTextTimer ()
 
virtual CPetElementgetElement (uint id)
 
virtual void displayNPCName (CGameObject *npc)
 
virtual void proc33 ()
 
virtual void setNPC (const CString &name)
 
virtual void resetNPC ()
 
virtual void showCursor ()
 
virtual void hideCursor ()
 
virtual void highlight (int id)
 
CPetControlgetPetControl () const
 
uint getColor (uint index)
 
const uint * getColorTable (int tableNum=-1)
 

Additional Inherited Members

- Public Attributes inherited from Titanic::CPetSection
CPetControl_petControl
 
- Protected Member Functions inherited from Titanic::CPetSection
void areaChanged (PetArea area)
 
CString getActiveNPCName () const
 
void copyColors (uint tableNum, uint colors[5])
 

Detailed Description

Handles displaying the player's inventory in the PET

Member Function Documentation

◆ setup()

bool Titanic::CPetInventory::setup ( CPetControl petControl)
overridevirtual

Sets up the section

Reimplemented from Titanic::CPetSection.

◆ reset()

bool Titanic::CPetInventory::reset ( )
overridevirtual

Sets up the section

Reimplemented from Titanic::CPetSection.

◆ draw()

void Titanic::CPetInventory::draw ( CScreenManager screenManager)
overridevirtual

Draw the section

Reimplemented from Titanic::CPetSection.

◆ getBounds()

Rect Titanic::CPetInventory::getBounds ( ) const
overridevirtual

Get the bounds for the section

Reimplemented from Titanic::CPetSection.

◆ changed()

void Titanic::CPetInventory::changed ( int  changeType)
overridevirtual

Called when a general change occurs

Reimplemented from Titanic::CPetSection.

◆ enterRoom()

void Titanic::CPetInventory::enterRoom ( CRoomItem room)
overridevirtual

Called when a new room is entered

Reimplemented from Titanic::CPetSection.

◆ MouseButtonDownMsg()

bool Titanic::CPetInventory::MouseButtonDownMsg ( CMouseButtonDownMsg msg)
overridevirtual

Following are handlers for the various messages that the PET can pass onto the currently active section/area

Reimplemented from Titanic::CPetSection.

◆ dragEnd()

CGameObject* Titanic::CPetInventory::dragEnd ( const Point pt) const
overridevirtual

Returns item a drag-drop operation has dropped on, if any

Reimplemented from Titanic::CPetSection.

◆ isValid()

bool Titanic::CPetInventory::isValid ( CPetControl petControl)
overridevirtual

Returns true if the object is in a valid state

Reimplemented from Titanic::CPetSection.

◆ load()

void Titanic::CPetInventory::load ( SimpleFile file,
int  param 
)
overridevirtual

Load the data for the class from file

Reimplemented from Titanic::CPetSection.

◆ postLoad()

void Titanic::CPetInventory::postLoad ( )
overridevirtual

Called after a game has been loaded

Reimplemented from Titanic::CPetSection.

◆ save()

void Titanic::CPetInventory::save ( SimpleFile file,
int  indent 
)
overridevirtual

Save the data for the class to file

Reimplemented from Titanic::CPetSection.

◆ enter()

void Titanic::CPetInventory::enter ( PetArea  oldArea)
overridevirtual

Called when a section is switched to

Reimplemented from Titanic::CPetSection.

◆ leave()

void Titanic::CPetInventory::leave ( )
overridevirtual

Called when a section is being left, to switch to another area

Reimplemented from Titanic::CPetSection.

◆ getText()

CTextControl* Titanic::CPetInventory::getText ( )
inlineoverridevirtual

Get a reference to the tooltip text associated with the section

Reimplemented from Titanic::CPetSection.

◆ getBackground()

CGameObject* Titanic::CPetInventory::getBackground ( int  index) const
overridevirtual

Special retrieval of glyph background image

Reimplemented from Titanic::CPetSection.

◆ itemRemoved()

void Titanic::CPetInventory::itemRemoved ( CGameObject item)

Called when an item has been removed from the PET

◆ itemsChanged()

void Titanic::CPetInventory::itemsChanged ( )

Called when the items under the PET have changed

◆ highlightItem()

void Titanic::CPetInventory::highlightItem ( CGameObject item)

Called when the inventory can't be shown after adding an item

◆ getTransformAnimation()

CGameObject* Titanic::CPetInventory::getTransformAnimation ( int  index)

Gets the object, if any, containing the transformation animation played when pieces of Titania are added to the inventory for the first time.

◆ playMovie()

void Titanic::CPetInventory::playMovie ( CGameObject movie,
bool  repeat = true 
)

Play the animated movie for an object


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