ScummVM API documentation
Titanic::CPetRoomsGlyph Class Reference
Inheritance diagram for Titanic::CPetRoomsGlyph:
Titanic::CPetGlyph Titanic::ListItem Titanic::CSaveableObject

Public Member Functions

 CPetRoomsGlyph (uint flags)
 
bool setup (CPetControl *petControl, CPetGlyphs *owner) override
 
void drawAt (CScreenManager *screenManager, const Point &pt, bool isHighlighted) override
 
void draw2 (CScreenManager *screenManager) override
 
void selectGlyph (const Point &topLeft, const Point &pt) override
 
bool dragGlyph (const Point &topLeft, CMouseDragStartMsg *msg) override
 
void getTooltip (CTextControl *text) override
 
void saveGlyph (SimpleFile *file, int indent) override
 
bool proc33 (CPetGlyph *glyph) override
 
virtual void loadFlags (SimpleFile *file, int val)
 
void setRoomFlags (uint flags)
 
uint getRoomFlags () const
 
void setFlag (uint val)
 
void setMode (RoomGlyphMode mode)
 
void changeClass (PassengerClass newClassNum)
 
bool isAssigned () const
 
bool isCurrentlyAssigned () const
 
bool isPreviouslyAssigned () const
 
- Public Member Functions inherited from Titanic::CPetGlyph
virtual bool reset ()
 
virtual void enter ()
 
virtual void leave ()
 
virtual void updateTooltip ()
 
virtual Rect getBounds () const
 
virtual bool MouseButtonDownMsg (const Point &pt)
 
virtual bool MouseDragStartMsg (CMouseDragStartMsg *msg)
 
virtual bool MouseDragMoveMsg (CMouseDragMoveMsg *msg)
 
virtual bool MouseDragEndMsg (CMouseDragEndMsg *msg)
 
virtual bool MouseButtonUpMsg (const Point &pt)
 
virtual bool MouseDoubleClickMsg (const CMouseDoubleClickMsg *msg)
 
virtual bool KeyCharMsg (int key)
 
virtual bool VirtualKeyCharMsg (CVirtualKeyCharMsg *msg)
 
virtual void unhighlightCurrent ()
 
virtual void highlightCurrent (const Point &pt)
 
virtual void glyphFocused (const Point &topLeft, bool flag)
 
virtual bool contains (const Point &delta, const Point &pt)
 
virtual bool isValid () const
 
virtual bool enterHighlighted ()
 
virtual void leaveHighlighted ()
 
virtual CGameObjectgetObjectAt ()
 
virtual bool doAction (CGlyphAction *action)
 
void translate (const Point &pt)
 
void translateBack (const Point &pt)
 
CPetGlyphsgetOwner ()
 
CPetControlgetPetControl () const
 
void setName (const CString &name, CPetControl *petControl)
 
bool isHighlighted () const
 
- Public Member Functions inherited from Titanic::ListItem
void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
- Public Member Functions inherited from Titanic::CSaveableObject
virtual ClassDefgetType () const
 
bool isInstanceOf (const ClassDef *classDef) const
 
virtual void saveHeader (SimpleFile *file, int indent)
 
virtual void saveFooter (SimpleFile *file, int indent)
 

Additional Inherited Members

- Static Public Member Functions inherited from Titanic::CSaveableObject
static void initClassList ()
 
static void freeClassList ()
 
static CSaveableObjectcreateInstance (const Common::String &name)
 
- Public Attributes inherited from Titanic::CPetGlyph
CPetGfxElement _element
 
CPetGlyphs_owner
 
- Public Attributes inherited from Titanic::ListItem
 CLASSDEF
 
- Static Public Attributes inherited from Titanic::CSaveableObject
static ClassDef_type
 
- Protected Member Functions inherited from Titanic::CPetGlyph
CPetSectiongetPetSection () const
 

Member Function Documentation

◆ setup()

bool Titanic::CPetRoomsGlyph::setup ( CPetControl petControl,
CPetGlyphs owner 
)
overridevirtual

Setup the glyph

Reimplemented from Titanic::CPetGlyph.

◆ drawAt()

void Titanic::CPetRoomsGlyph::drawAt ( CScreenManager screenManager,
const Point pt,
bool  isHighlighted 
)
overridevirtual

Draw the glyph at a specified position

Reimplemented from Titanic::CPetGlyph.

◆ draw2()

void Titanic::CPetRoomsGlyph::draw2 ( CScreenManager screenManager)
inlineoverridevirtual

Handles any secondary drawing of the glyph

Reimplemented from Titanic::CPetGlyph.

◆ selectGlyph()

void Titanic::CPetRoomsGlyph::selectGlyph ( const Point topLeft,
const Point pt 
)
overridevirtual

Selects a glyph

Reimplemented from Titanic::CPetGlyph.

◆ dragGlyph()

bool Titanic::CPetRoomsGlyph::dragGlyph ( const Point topLeft,
CMouseDragStartMsg msg 
)
overridevirtual

Called when a glyph drag starts

Reimplemented from Titanic::CPetGlyph.

◆ getTooltip()

void Titanic::CPetRoomsGlyph::getTooltip ( CTextControl text)
overridevirtual

Returns the tooltip text for when the glyph is selected

Reimplemented from Titanic::CPetGlyph.

◆ saveGlyph()

void Titanic::CPetRoomsGlyph::saveGlyph ( SimpleFile file,
int  indent 
)
overridevirtual

Saves the data for the glyph

Reimplemented from Titanic::CPetGlyph.

◆ loadFlags()

virtual void Titanic::CPetRoomsGlyph::loadFlags ( SimpleFile file,
int  val 
)
virtual

Loads flags for the glyph

◆ setRoomFlags()

void Titanic::CPetRoomsGlyph::setRoomFlags ( uint  flags)
inline

Set the room flags for the glyph

◆ getRoomFlags()

uint Titanic::CPetRoomsGlyph::getRoomFlags ( ) const
inline

Get the room flags for the glyph

◆ setFlag()

void Titanic::CPetRoomsGlyph::setFlag ( uint  val)
inline

Set mail status flag

◆ setMode()

void Titanic::CPetRoomsGlyph::setMode ( RoomGlyphMode  mode)
inline

Sets the mode of the glyph

◆ changeClass()

void Titanic::CPetRoomsGlyph::changeClass ( PassengerClass  newClassNum)

Change the current class

◆ isAssigned()

bool Titanic::CPetRoomsGlyph::isAssigned ( ) const
inline

Returns true if the room is either currently or previously assigned

◆ isCurrentlyAssigned()

bool Titanic::CPetRoomsGlyph::isCurrentlyAssigned ( ) const
inline

Returns true if the room is the one currently assigned to the player

◆ isPreviouslyAssigned()

bool Titanic::CPetRoomsGlyph::isPreviouslyAssigned ( ) const
inline

Returns true if the room was previously assigned to the player


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