ScummVM API documentation
Titanic::CLinkItem Class Reference
Inheritance diagram for Titanic::CLinkItem:
Titanic::CNamedItem Titanic::CTreeItem Titanic::CMessageTarget Titanic::CSaveableObject

Public Member Functions

void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
bool connectsTo (CViewItem *destView) const override
 
virtual void setDestination (int roomNumber, int nodeNumber, int viewNumber, int linkMode)
 
virtual CViewItemgetDestView () const
 
virtual CNodeItemgetDestNode () const
 
virtual CRoomItemgetDestRoom () const
 
CMovieClipgetClip () const
 
Movement getMovement () const
 
bool findPoint (Quadrant quadrant, Point &pt)
 
- Public Member Functions inherited from Titanic::CNamedItem
CString dumpItem (int indent) const override
 
void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
const CString getName () const override
 
bool isEquals (const CString &name, bool startsWith=false) const override
 
virtual CViewItemfindView () const
 
virtual CNodeItemfindNode () const
 
virtual CRoomItemfindRoom () const
 
- Public Member Functions inherited from Titanic::CTreeItem
void dump (int indent)
 
void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
virtual CGameManagergetGameManager () const
 
virtual bool isFileItem () const
 
virtual bool isRoomItem () const
 
virtual bool isNodeItem () const
 
virtual bool isViewItem () const
 
virtual bool isLinkItem () const
 
virtual bool isPlaceHolderItem () const
 
virtual bool isNamedItem () const
 
virtual bool isGameObject () const
 
virtual bool isGameObjectDescItem () const
 
virtual int compareTo (const CString &name, int maxLen=0) const
 
virtual const CMovieClipListgetMovieClips () const
 
virtual void draw (CScreenManager *screenManager)
 
virtual Rect getBounds () const
 
virtual void freeSurface ()
 
CTreeItemgetParent () const
 
CProjectItemgetRoot () const
 
CTreeItemgetNextSibling () const
 
CTreeItemgetPriorSibling () const
 
CTreeItemgetLastSibling ()
 
CTreeItemgetFirstChild () const
 
CTreeItemgetLastChild () const
 
CTreeItemscan (CTreeItem *item) const
 
CTreeItemfindChildInstanceOf (ClassDef *classDef) const
 
CTreeItemfindNextInstanceOf (ClassDef *classDef, CTreeItem *startItem) const
 
void addUnder (CTreeItem *newParent)
 
void setParent (CTreeItem *newParent)
 
void addSibling (CTreeItem *item)
 
void moveUnder (CTreeItem *newParent)
 
void destroyAll ()
 
int destroyChildren ()
 
void detach ()
 
void attach (CTreeItem *item)
 
CNamedItemfindByName (const CString &name, bool subMatch=false)
 
- 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)
 

Static Public Member Functions

static Movement getMovementFromCursor (CursorId cursorId)
 
- Static Public Member Functions inherited from Titanic::CSaveableObject
static void initClassList ()
 
static void freeClassList ()
 
static CSaveableObjectcreateInstance (const Common::String &name)
 

Public Attributes

Rect _bounds
 
CursorId _cursorId
 
 CLASSDEF
 
- Public Attributes inherited from Titanic::CNamedItem
CString _name
 
 CLASSDEF
 
- Public Attributes inherited from Titanic::CTreeItem
 CLASSDEF
 
- Public Attributes inherited from Titanic::CMessageTarget
 CLASSDEF
 

Protected Attributes

int _roomNumber
 
int _nodeNumber
 
int _viewNumber
 
int _linkMode
 

Additional Inherited Members

- Static Public Attributes inherited from Titanic::CSaveableObject
static ClassDef_type
 
- Protected Member Functions inherited from Titanic::CMessageTarget
virtual const MSGMAPgetMessageMap () const
 
- Static Protected Member Functions inherited from Titanic::CMessageTarget
static const MSGMAPgetThisMessageMap ()
 

Member Function Documentation

◆ save()

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

Save the data for the class to file

Reimplemented from Titanic::CSaveableObject.

◆ load()

void Titanic::CLinkItem::load ( SimpleFile file)
overridevirtual

Load the data for the class from file

Reimplemented from Titanic::CSaveableObject.

◆ connectsTo()

bool Titanic::CLinkItem::connectsTo ( CViewItem destView) const
overridevirtual

Returns true if the given item connects to another specified view

Reimplemented from Titanic::CTreeItem.

◆ setDestination()

virtual void Titanic::CLinkItem::setDestination ( int  roomNumber,
int  nodeNumber,
int  viewNumber,
int  linkMode 
)
virtual

Set the destination for the link item

◆ getDestView()

virtual CViewItem* Titanic::CLinkItem::getDestView ( ) const
virtual

Get the destination view for the link item

◆ getDestNode()

virtual CNodeItem* Titanic::CLinkItem::getDestNode ( ) const
virtual

Get the destination node for the link item

◆ getDestRoom()

virtual CRoomItem* Titanic::CLinkItem::getDestRoom ( ) const
virtual

Get the destination view for the link item

◆ getClip()

CMovieClip* Titanic::CLinkItem::getClip ( ) const

Get the movie clip, if any, that's used when the link is used

◆ getMovement()

Movement Titanic::CLinkItem::getMovement ( ) const

Get the movement, if any, the cursor represents

◆ findPoint()

bool Titanic::CLinkItem::findPoint ( Quadrant  quadrant,
Point pt 
)

Returns a point that falls within the link. Used for simulating mouse clicks for movement when arrow keys are pressed

Parameters
quadrantQuadrant (edge) to return point for
ptReturn point
Returns
True if a point was found

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