ScummVM API documentation
Titanic::CProjectItem Class Reference
Inheritance diagram for Titanic::CProjectItem:
Titanic::CFileItem Titanic::CTreeItem Titanic::CMessageTarget Titanic::CSaveableObject

Public Member Functions

void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
CGameManagergetGameManager () const override
 
void setGameManager (CGameManager *gameManager)
 
CPetControlgetPetControl () const
 
void resetGameManager ()
 
void loadGame (int slotId)
 
void saveGame (int slotId, const CString &desc)
 
void clear ()
 
void setFilename (const CString &name)
 
CRoomItemfindFirstRoom () const
 
CRoomItemfindNextRoom (CRoomItem *priorRoom) const
 
CDontSaveFileItemgetDontSaveFileItem () const
 
CRoomItemfindHiddenRoom ()
 
CViewItemfindView (int roomNumber, int nodeNumber, int viewNumber)
 
CViewItemparseView (const CString &viewString)
 
bool changeView (const CString &viewName, const CString &clipName)
 
bool changeView (const CString &viewName)
 
- Public Member Functions inherited from Titanic::CFileItem
bool isFileItem () const override
 
CString formFilename () const
 
CString getFilename () 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 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 CMovieClipListgetMovieClips () const
 
virtual bool connectsTo (CViewItem *destView) 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 SaveStateList getSavegameList (const MetaEngine *metaEngine, const Common::String &target)
 
static void writeSavegameHeader (SimpleFile *file, TitanicSavegameHeader &header)
 
static WARN_UNUSED_RESULT bool readSavegameHeader (SimpleFile *file, TitanicSavegameHeader &header, bool skipThumbnail=true)
 
- Static Public Member Functions inherited from Titanic::CSaveableObject
static void initClassList ()
 
static void freeClassList ()
 
static CSaveableObjectcreateInstance (const Common::String &name)
 

Public Attributes

 CLASSDEF
 
- Public Attributes inherited from Titanic::CFileItem
 CLASSDEF
 
- Public Attributes inherited from Titanic::CTreeItem
 CLASSDEF
 
- Public Attributes inherited from Titanic::CMessageTarget
 CLASSDEF
 

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

◆ getSavegameList()

static SaveStateList Titanic::CProjectItem::getSavegameList ( const MetaEngine metaEngine,
const Common::String target 
)
static

Load a list of savegames

◆ writeSavegameHeader()

static void Titanic::CProjectItem::writeSavegameHeader ( SimpleFile file,
TitanicSavegameHeader header 
)
static

Write out the header information for a savegame

◆ readSavegameHeader()

static WARN_UNUSED_RESULT bool Titanic::CProjectItem::readSavegameHeader ( SimpleFile file,
TitanicSavegameHeader header,
bool  skipThumbnail = true 
)
static

Read in the header information for a savegame

◆ save()

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

Save the data for the class to file

Reimplemented from Titanic::CFileItem.

◆ load()

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

Load the data for the class from file

Reimplemented from Titanic::CFileItem.

◆ getGameManager()

CGameManager* Titanic::CProjectItem::getGameManager ( ) const
overridevirtual

Get the game manager for the project

Reimplemented from Titanic::CTreeItem.

◆ setGameManager()

void Titanic::CProjectItem::setGameManager ( CGameManager gameManager)

Sets the game manager for the project, if not already set

◆ getPetControl()

CPetControl* Titanic::CProjectItem::getPetControl ( ) const

Get a reference to the PET control

◆ resetGameManager()

void Titanic::CProjectItem::resetGameManager ( )

Resets the game manager field

◆ loadGame()

void Titanic::CProjectItem::loadGame ( int  slotId)

Load the entire project data for a given slot Id

◆ saveGame()

void Titanic::CProjectItem::saveGame ( int  slotId,
const CString desc 
)

Save the entire project data to a given savegame slot

◆ clear()

void Titanic::CProjectItem::clear ( )

Clear any currently loaded project

◆ setFilename()

void Titanic::CProjectItem::setFilename ( const CString name)
inline

Set the proejct's name

◆ findFirstRoom()

CRoomItem* Titanic::CProjectItem::findFirstRoom ( ) const

Returns a reference to the first room item in the project

◆ findNextRoom()

CRoomItem* Titanic::CProjectItem::findNextRoom ( CRoomItem priorRoom) const

Returns a reference to the next room following the specified room

◆ getDontSaveFileItem()

CDontSaveFileItem* Titanic::CProjectItem::getDontSaveFileItem ( ) const

Returns the don't save file item, if it exists in the project

◆ findHiddenRoom()

CRoomItem* Titanic::CProjectItem::findHiddenRoom ( )

Finds the hidden room node of the project

◆ findView()

CViewItem* Titanic::CProjectItem::findView ( int  roomNumber,
int  nodeNumber,
int  viewNumber 
)

Finds a view

◆ parseView()

CViewItem* Titanic::CProjectItem::parseView ( const CString viewString)

Parses a view into it's components of room, node, and view, and locates the designated view

◆ changeView() [1/2]

bool Titanic::CProjectItem::changeView ( const CString viewName,
const CString clipName 
)

Change the view

◆ changeView() [2/2]

bool Titanic::CProjectItem::changeView ( const CString viewName)

Change the view


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