ScummVM API documentation
Titanic::CMobile Class Reference
Inheritance diagram for Titanic::CMobile:
Titanic::CCharacter Titanic::CGameObject Titanic::CNamedItem Titanic::CTreeItem Titanic::CMessageTarget Titanic::CSaveableObject Titanic::CTransport Titanic::CGondolier Titanic::CLift Titanic::CPellerator Titanic::CPellerator Titanic::CServiceElevator Titanic::CLiftindicator

Public Member Functions

void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
- Public Member Functions inherited from Titanic::CGameObject
const CMovieClipListgetMovieClips () const override
 
void draw (CScreenManager *screenManager) override
 
Rect getBounds () const override
 
void freeSurface () override
 
void draw (CScreenManager *screenManager, const Rect &destRect, const Rect &srcRect)
 
void draw (CScreenManager *screenManager, const Point &destPos)
 
void draw (CScreenManager *screenManager, const Point &destPos, const Rect &srcRect)
 
virtual bool isPet () const
 
bool checkPoint (const Point &pt, bool ignoreSurface=false, bool visibleOnly=false)
 
bool findPoint (Quadrant quadrant, Point &pt)
 
void setPosition (const Point &newPos)
 
Point getControid () const
 
void playMovie (uint flags)
 
void playMovie (int startFrame, int endFrame, uint flags)
 
void playMovie (int startFrame, int endFrame, int initialFrame, uint flags)
 
bool hasActiveMovie () const
 
void stopMovie ()
 
void movieSetPlaying (bool flag)
 
int getMovieFrame () const
 
int getFrameNumber () const
 
void loadFrame (int frameNumber)
 
void loadSurface ()
 
void makeDirty ()
 
void makeDirty (const Rect &r)
 
void setVisible (bool val)
 
PassengerClass getPassengerClass () const
 
PassengerClass getPriorClass () const
 
void setMailDest (uint roomFlags)
 
bool surfaceHasFrame () const
 
Found find (const CString &name, CGameObject **item, int findAreas)
 
CGameObjectgetHiddenObject (const CString &name) const
 
void dragMove (const Point &pt)
 
CGameObjectgetDraggingObject () const
 
void createCredits ()
 
void setText (const CString &str, int border=0, int borderRight=0)
 
void setTextHasBorders (bool hasBorders)
 
void setTextBounds ()
 
void setTextColor (byte r, byte g, byte b)
 
void setTextFontNumber (int fontNumber)
 
int getTextWidth () const
 
void scrollTextUp ()
 
void scrollTextDown ()
 
CTextCursorgetTextCursor () const
 
Movement getMovement () const
 
CRoomItemgetRoom () const
 
CNodeItemgetNode () const
 
CViewItemgetView () const
 
CString getRoomName () const
 
CString getRoomNodeName () const
 
void addMail (uint destRoomFlags)
 
void sendMail (uint currRoomFlags, uint newRoomFlags)
 
CString getFullViewName ()
 
CPetControlgetPetControl () const
 
void petAddToCarryParcel (CGameObject *obj)
 
void petAddToInventory ()
 
CTreeItempetContainerRemove (CGameObject *obj)
 
bool petCheckNode (const CString &name)
 
bool petDismissBot (const CString &name)
 
bool petDoorOrBellbotPresent () const
 
void petDisplayMessage (int unused, StringId stringId)
 
void petDisplayMessage (int unused, const CString &str)
 
void petDisplayMessage (StringId stringId, int param=0)
 
void petDisplayMessage (const CString &str, int param=0)
 
int petGetRoomsWellEntry () const
 
void petHide ()
 
void petHideCursor ()
 
void petHighlightGlyph (int id)
 
void petInvChange ()
 
void petMoveToHiddenRoom ()
 
void petReassignRoom (PassengerClass passClassNum)
 
void petSetArea (PetArea newArea) const
 
void petSetRemoteTarget ()
 
void petSetRoomsWellEntry (int entryNum)
 
void petSetRoomsElevatorBroken (bool flag)
 
void petShow ()
 
void petIncAreaLocks ()
 
void petDecAreaLocks ()
 
void petShowCursor ()
 
void petOnSummonBot (const CString &name, int val)
 
CStarControlgetStarControl () const
 
void starFn (StarControlAction action)
 
bool starIsSolved () const
 
void startTalking (CTrueTalkNPC *npc, uint id, CViewItem *view=nullptr)
 
void startTalking (const CString &name, uint id, CViewItem *view=nullptr)
 
void setTalking (CTrueTalkNPC *npc, bool viewFlag, CViewItem *view=nullptr)
 
void talkSetDialRegion (const CString &name, int dialNum, int regionNum)
 
int talkGetDialRegion (const CString &name, int dialNum)
 
void movieEvent (int frameNumber)
 
void movieEvent ()
 
void stateSetSoundMakerAllowed (bool flag)
 
void stateChangeSeason ()
 
Season stateGetSeason () const
 
void stateSetParrotMet ()
 
bool stateGetParrotMet () const
 
void incParrotResponse ()
 
int getParrotResponse () const
 
uint getNodeChangedCtr () const
 
uint getNodeEnterTicks () const
 
- Public Member Functions inherited from Titanic::CNamedItem
CString dumpItem (int indent) const 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)
 
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 bool connectsTo (CViewItem *destView) const
 
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)
 

Public Attributes

 CLASSDEF
 
- Public Attributes inherited from Titanic::CCharacter
 CLASSDEF
 
- Public Attributes inherited from Titanic::CGameObject
Rect _bounds
 
bool _isPendingMail
 
uint _destRoomFlags
 
uint _roomFlags
 
bool _handleMouseFlag
 
CursorId _cursorId
 
bool _visible
 
 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

Point _pos1
 
int _fieldDC
 
- Protected Attributes inherited from Titanic::CCharacter
int _startFrame
 
int _endFrame
 
int _fieldC4
 
CString _charName
 
- Protected Attributes inherited from Titanic::CGameObject
double _unused1
 
double _unused2
 
double _unused3
 
bool _nonvisual
 
byte _toggleR
 
byte _toggleG
 
byte _toggleB
 
CMovieClipList _movieClips
 
int _initialFrame
 
CMovieRangeInfoList _movieRangeInfoList
 
int _frameNumber
 
CTextControl_text
 
uint _textBorder
 
uint _textBorderRight
 
Common::Point _savedPos
 
CVideoSurface_surface
 
CString _resource
 
int _unused4
 

Additional Inherited Members

- Static Public Member Functions inherited from Titanic::CGameObject
static void init ()
 
static void deinit ()
 
static bool compareRoomFlags (RoomFlagsComparison compareType, uint flags1, uint flags2)
 
- Static Public Member Functions inherited from Titanic::CSaveableObject
static void initClassList ()
 
static void freeClassList ()
 
static CSaveableObjectcreateInstance (const Common::String &name)
 
- Static Public Attributes inherited from Titanic::CSaveableObject
static ClassDef_type
 
- Protected Member Functions inherited from Titanic::CGameObject
void savePosition ()
 
void resetPosition ()
 
bool checkStartDragging (CMouseDragStartMsg *msg)
 
void gotoView (const CString &viewName, const CString &clipName)
 
CViewItemparseView (const CString &viewString)
 
void loadMovie (const CString &name, bool pendingFlag=true)
 
void loadImage (const CString &name, bool pendingFlag=true)
 
void incTransitions ()
 
void decTransitions ()
 
void lockMouse ()
 
void unlockMouse ()
 
void hideMouse ()
 
void showMouse ()
 
void disableMouse ()
 
void enableMouse ()
 
void mouseDisableControl ()
 
void mouseEnableControl ()
 
void mouseSetPosition (const Point &pt, double rate)
 
void lockInputHandler ()
 
void unlockInputHandler ()
 
void loadSound (const CString &name)
 
int playSound (const CString &name, uint volume=100, int balance=0, bool repeated=false)
 
int playSound (const CString &name, CProximity &prox)
 
int queueSound (const CString &name, uint priorHandle, uint volume=100, int balance=0, bool repeated=false, Audio::Mixer::SoundType soundType=Audio::Mixer::kPlainSoundType)
 
void stopSound (int handle, uint seconds=0)
 
bool isSoundActive (int handle) const
 
void setSoundVolume (int handle, uint percent, uint seconds)
 
void playAmbientSound (const CString &resName, VolumeMode mode, bool initialMute, bool repeated, int handleIndex, Audio::Mixer::SoundType soundType=Audio::Mixer::kMusicSoundType)
 
void stopAmbientSound (bool transition, int handleIndex)
 
void setAmbientSoundVolume (VolumeMode mode, uint seconds, int handleIndex)
 
void stopSoundChannel (bool channel3)
 
int addTimer (int endVal, uint firstDuration, uint repeatDuration)
 
int addTimer (uint firstDuration, uint repeatDuration=0)
 
void stopTimer (int id)
 
int startAnimTimer (const CString &action, uint firstDuration, uint repeatDuration=0)
 
void stopAnimTimer (int id)
 
void sleep (uint milli)
 
Point getMousePos () const
 
bool compareViewNameTo (const CString &name) const
 
bool compareRoomNameTo (const CString &name)
 
CGameObjectgetMailManFirstObject () const
 
CGameObjectgetMailManNextObject (CGameObject *prior) const
 
CGameObjectfindMailByFlags (RoomFlagsComparison compareType, uint roomFlags)
 
CGameObjectgetNextMail (CGameObject *prior)
 
CGameObjectfindRoomObject (const CString &name) const
 
CGameObjectfindInRoom (const CString &name)
 
void moveToView ()
 
void moveToView (const CString &name)
 
bool changeView (const CString &viewName, const CString &clipName)
 
bool changeView (const CString &viewName)
 
void playClip (const CString &name, uint flags=0)
 
void playClip (uint startFrame, uint endFrame)
 
bool playCutscene (uint startFrame, uint endFrame)
 
void playRandomClip (const char *const *names, uint flags=0)
 
CString getViewFullName () const
 
bool clipExistsByStart (const CString &name, int startFrame=0) const
 
bool clipExistsByEnd (const CString &name, int endFrame=0) const
 
void petClear () const
 
CMailMangetMailMan () const
 
CDontSaveFileItemgetDontSave () const
 
CTreeItemgetDontSaveChild (ClassDef *classDef) const
 
CRoomItemgetHiddenRoom () const
 
CRoomItemlocateRoom (const CString &name) const
 
CTreeItemfindUnder (CTreeItem *parent, const CString &name) const
 
CRoomItemfindRoomByName (const CString &name)
 
CMusicRoomgetMusicRoom () const
 
void setPassengerClass (PassengerClass newClass)
 
void setToggleColor (byte r, byte g, byte b)
 
int getClipDuration (const CString &name, int frameRate=14) const
 
uint32 getTicksCount ()
 
Common::SeekableReadStreamgetResource (const CString &name)
 
bool mailExists (uint roomFlags) const
 
CGameObjectfindMail (uint roomFlags) const
 
void resetMail ()
 
void petLockInput ()
 
void petUnlockInput ()
 
void quitGame ()
 
void setMovieFrameRate (double rate)
 
int getRandomNumber (int max, int *oldVal=nullptr)
 
bool isBotDisallowedLocation ()
 
- Protected Member Functions inherited from Titanic::CMessageTarget
virtual const MSGMAPgetMessageMap () const
 
- Static Protected Member Functions inherited from Titanic::CMessageTarget
static const MSGMAPgetThisMessageMap ()
 
- Static Protected Attributes inherited from Titanic::CGameObject
static CCreditText_credits
 

Member Function Documentation

◆ save()

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

Save the data for the class to file

Reimplemented from Titanic::CCharacter.

◆ load()

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

Load the data for the class from file

Reimplemented from Titanic::CCharacter.


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