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
 
CGameManager * getGameManager () const override
 
void setGameManager (CGameManager *gameManager)
 
CPetControl * getPetControl () const
 
void resetGameManager ()
 
void loadGame (int slotId)
 
void saveGame (int slotId, const CString &desc)
 
void clear ()
 
void setFilename (const CString &name)
 
CRoomItem * findFirstRoom () const
 
CRoomItem * findNextRoom (CRoomItem *priorRoom) const
 
CDontSaveFileItem * getDontSaveFileItem () const
 
CRoomItem * findHiddenRoom ()
 
CViewItem * findView (int roomNumber, int nodeNumber, int viewNumber)
 
CViewItem * parseView (const CString &viewString)
 
bool changeView (const CString &viewName, const CString &clipName)
 
bool changeView (const CString &viewName)
 
- Public Member Functions inherited from Titanic::CFileItem
void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
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 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)
 

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 CSaveableObject * createInstance (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 MSGMAP * getMessageMap () const
 
- Static Protected Member Functions inherited from Titanic::CMessageTarget
static const MSGMAP * getThisMessageMap ()
 

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: