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

Public Member Functions

void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
bool getResourceKey (CResourceKey *key)
 
void leaveView (CViewItem *newView)
 
void preEnterView (CViewItem *newView)
 
void enterView (CViewItem *newView)
 
CLinkItem * findLink (CViewItem *newView)
 
CString getFullViewName () const
 
CString getNodeViewName () const
 
void getPosition (double &xp, double &yp, double &zp)
 
- 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 CViewItem * findView () const
 
virtual CNodeItem * findNode () const
 
virtual CRoomItem * findRoom () const
 
- Public Member Functions inherited from Titanic::CTreeItem
void dump (int indent)
 
virtual CString dumpItem (int indent) const
 
void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
virtual CGameManager * getGameManager () 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 const CString getName () const
 
virtual bool isEquals (const CString &name, bool startsWith=false) const
 
virtual int compareTo (const CString &name, int maxLen=0) const
 
virtual const CMovieClipList * getMovieClips () const
 
virtual bool connectsTo (CViewItem *destView) const
 
virtual void draw (CScreenManager *screenManager)
 
virtual Rect getBounds () const
 
virtual void freeSurface ()
 
CTreeItem * getParent () const
 
CProjectItem * getRoot () const
 
CTreeItem * getNextSibling () const
 
CTreeItem * getPriorSibling () const
 
CTreeItem * getLastSibling ()
 
CTreeItem * getFirstChild () const
 
CTreeItem * getLastChild () const
 
CTreeItem * scan (CTreeItem *item) const
 
CTreeItem * findChildInstanceOf (ClassDef *classDef) const
 
CTreeItem * findNextInstanceOf (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)
 
CNamedItem * findByName (const CString &name, bool subMatch=false)
 
void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
- Public Member Functions inherited from Titanic::CSaveableObject
virtual ClassDef * getType () const
 
bool isInstanceOf (const ClassDef *classDef) const
 
virtual void save (SimpleFile *file, int indent)
 
virtual void load (SimpleFile *file)
 
virtual void saveHeader (SimpleFile *file, int indent)
 
virtual void saveFooter (SimpleFile *file, int indent)
 

Public Attributes

int _viewNumber
 
double _angle
 
 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 _field24
 
CResourceKey _resourceKey
 
Point _viewPos
 

Additional Inherited Members

- Static Public Member Functions inherited from Titanic::CSaveableObject
static void initClassList ()
 
static void freeClassList ()
 
static CSaveableObject * createInstance (const Common::String &name)
 
- Static Public Attributes inherited from Titanic::CSaveableObject
static ClassDef * _type
 
- Protected Member Functions inherited from Titanic::CMessageTarget
virtual const MSGMAP * getMessageMap () const
 
- Static Protected Member Functions inherited from Titanic::CMessageTarget
static const MSGMAP * getThisMessageMap ()
 

Member Function Documentation

◆ save()

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

Save the data for the class to file

Reimplemented from Titanic::CNamedItem.

◆ load()

void Titanic::CViewItem::load ( SimpleFile *  file)
overridevirtual

Load the data for the class from file

Reimplemented from Titanic::CNamedItem.

◆ getResourceKey()

bool Titanic::CViewItem::getResourceKey ( CResourceKey *  key)

Get the resource key for the view

◆ leaveView()

void Titanic::CViewItem::leaveView ( CViewItem *  newView)

Called when leaving the view

◆ preEnterView()

void Titanic::CViewItem::preEnterView ( CViewItem *  newView)

Called on an old view just left, and about to enter a new view

◆ enterView()

void Titanic::CViewItem::enterView ( CViewItem *  newView)

Called when a new view is being entered

◆ findLink()

CLinkItem * Titanic::CViewItem::findLink ( CViewItem *  newView)

Finds a link which connects to another designated view

◆ getFullViewName()

CString Titanic::CViewItem::getFullViewName ( ) const

Return the full Id of the current view in a room.node.view tuplet form

◆ getNodeViewName()

CString Titanic::CViewItem::getNodeViewName ( ) const

Return the Id of the current view in a room.node.view tuplet form

◆ getPosition()

void Titanic::CViewItem::getPosition ( double &  xp,
double &  yp,
double &  zp 
)

Gets the relative position of the view within the owning room


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