ScummVM API documentation
Titanic::CGameObject Class Reference
Inheritance diagram for Titanic::CGameObject:
Titanic::CNamedItem Titanic::CTreeItem Titanic::CMessageTarget Titanic::CSaveableObject Titanic::CAnnounce Titanic::CAnnoyBarbot Titanic::CAutoMusicPlayerBase Titanic::CAutoSoundEvent Titanic::CAutoSoundPlayer Titanic::CBackground Titanic::CBackgroundSoundMaker Titanic::CBarBell Titanic::CBarMenu Titanic::CBarMenuButton Titanic::CBelbotGetLight Titanic::CBottomOfWellMonitor Titanic::CBowlUnlocker Titanic::CBrainSlot Titanic::CBridgeDoor Titanic::CCallBot Titanic::CCallPellerator Titanic::CCarry Titanic::CCDROM Titanic::CCDROMComputer Titanic::CCDROMTray Titanic::CCharacter Titanic::CChevCode Titanic::CChevPanel Titanic::CChickenCooler Titanic::CClickResponder Titanic::CComputerScreen Titanic::CCookie Titanic::CCredits Titanic::CDeadArea Titanic::CDoorbotElevatorHandler Titanic::CDoorbotHomeHandler Titanic::CDropTarget Titanic::CEditControl Titanic::CElevatorActionArea Titanic::CEmptyNutBowl Titanic::CEndCredits Titanic::CEndCreditText Titanic::CEndExplodeShip Titanic::CEndGameCredits Titanic::CEndSequenceControl Titanic::CEnterBridge Titanic::CEnterExitFirstClassState Titanic::CEnterExitSecClassMiniLift Titanic::CEnterExitView Titanic::CEnterSecClassState Titanic::CExitLift Titanic::CExitPellerator Titanic::CFan Titanic::CFanControl Titanic::CFanDecrease Titanic::CFanIncrease Titanic::CFanNoises Titanic::CFloorIndicator Titanic::CGetLiftEye2 Titanic::CGlassSmasher Titanic::CGondolierBase Titanic::CHammerClip Titanic::CHeadSlot Titanic::CHeadSpinner Titanic::CIdleSummoner Titanic::CLeaveSecClassState Titanic::CLongStickDispenser Titanic::CMailMan Titanic::CMaitreDProdReceptor Titanic::CMissiveOMat Titanic::CMovePlayerTo Titanic::CMovieTester Titanic::CMusicPlayer Titanic::CNavHelmet Titanic::CNavigationComputer Titanic::CNutReplacer Titanic::CParrotLobbyObject Titanic::CParrotLoser Titanic::CParrotNutBowlActor Titanic::CParrotNutEater Titanic::CParrotTrigger Titanic::CPET Titanic::CPETClass1 Titanic::CPETClass2 Titanic::CPETClass3 Titanic::CPetControl Titanic::CPetDisabler Titanic::CPetGraphic Titanic::CPetGraphic2 Titanic::CPETMonitor Titanic::CPETPosition Titanic::CPETSentinal Titanic::CPETShowTranslation Titanic::CPETSounds Titanic::CPETTransition Titanic::CPETTransport Titanic::CPhonographLid Titanic::CPickUp Titanic::CPlaceHolder Titanic::CPlayerMeetsParrot Titanic::CPortHole Titanic::CReservedTable Titanic::CRobotController Titanic::CSearchPoint Titanic::CSGTDoors Titanic::CSGTNavigation Titanic::CSGTRestaurantDoors Titanic::CShipSettingButton Titanic::CShowCellpoints Titanic::CSplashAnimation Titanic::CStarControl Titanic::CStarlingPuret Titanic::CStaticImage Titanic::CSUBGlass Titanic::CSUBWrapper Titanic::CSweetBowl Titanic::CThrowTVDownWell Titanic::CTitaniaSpeech Titanic::CTitaniaStillControl Titanic::CToggleSwitch Titanic::CTOWParrotNav Titanic::CTriggerAutoMusicPlayer Titanic::CVolumeControl Titanic::PETLeaf

Public Member Functions

void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
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
 
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 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)
 

Static Public Member Functions

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)
 

Public Attributes

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 Member Functions

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
 

Protected Attributes

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
 

Static Protected Attributes

static CCreditText_credits
 

Additional Inherited Members

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

Member Function Documentation

◆ savePosition()

void Titanic::CGameObject::savePosition ( )
protected

Saves the current position the object is located at

◆ resetPosition()

void Titanic::CGameObject::resetPosition ( )
protected

Resets the object back to the previously saved starting position

◆ checkStartDragging()

bool Titanic::CGameObject::checkStartDragging ( CMouseDragStartMsg msg)
protected

Check for starting to drag the object

◆ gotoView()

void Titanic::CGameObject::gotoView ( const CString viewName,
const CString clipName 
)
protected

Goto a new view

◆ parseView()

CViewItem* Titanic::CGameObject::parseView ( const CString viewString)
protected

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

◆ loadMovie()

void Titanic::CGameObject::loadMovie ( const CString name,
bool  pendingFlag = true 
)
protected

Loads a movie

◆ loadImage()

void Titanic::CGameObject::loadImage ( const CString name,
bool  pendingFlag = true 
)
protected

Loads an image

◆ incTransitions()

void Titanic::CGameObject::incTransitions ( )
protected

Increments the number of active transitions

◆ decTransitions()

void Titanic::CGameObject::decTransitions ( )
protected

Decrements the number of active transitions

◆ lockMouse()

void Titanic::CGameObject::lockMouse ( )
protected

Locks/hides the mouse

◆ unlockMouse()

void Titanic::CGameObject::unlockMouse ( )
protected

Unlocks/shows the mouse

◆ hideMouse()

void Titanic::CGameObject::hideMouse ( )
protected

Hides the mouse cursor

◆ showMouse()

void Titanic::CGameObject::showMouse ( )
protected

Shows the mouse cursor

◆ disableMouse()

void Titanic::CGameObject::disableMouse ( )
protected

Disable the mouse

◆ enableMouse()

void Titanic::CGameObject::enableMouse ( )
protected

Enable the mouse

◆ mouseDisableControl()

void Titanic::CGameObject::mouseDisableControl ( )
protected

Disables user control of the mouse

◆ mouseEnableControl()

void Titanic::CGameObject::mouseEnableControl ( )
protected

Re-enables user control of the mouse

◆ mouseSetPosition()

void Titanic::CGameObject::mouseSetPosition ( const Point pt,
double  rate 
)
protected

Sets the mouse to a new position

◆ lockInputHandler()

void Titanic::CGameObject::lockInputHandler ( )
protected

Lock the input handler

◆ unlockInputHandler()

void Titanic::CGameObject::unlockInputHandler ( )
protected

Unlock the input handler

◆ loadSound()

void Titanic::CGameObject::loadSound ( const CString name)
protected

Load a sound

◆ playSound() [1/2]

int Titanic::CGameObject::playSound ( const CString name,
uint  volume = 100,
int  balance = 0,
bool  repeated = false 
)
protected

Plays a sound

Parameters
nameFilename of sound to play
volumeVolume level
balanceSound balance (not actually used in original)
repeatedIf true, sound will repeat indefinitely

◆ playSound() [2/2]

int Titanic::CGameObject::playSound ( const CString name,
CProximity prox 
)
protected

Plays a sound

Parameters
nameFilename of sound to play
proxProximity object with the sound data

◆ queueSound()

int Titanic::CGameObject::queueSound ( const CString name,
uint  priorHandle,
uint  volume = 100,
int  balance = 0,
bool  repeated = false,
Audio::Mixer::SoundType  soundType = Audio::Mixer::kPlainSoundType 
)
protected

Queues a sound to play after a specified one finishes

Parameters
nameFilename of sound to play
priorHandleSound to wait until finished before playing
volumeVolume level
balanceSound balance (not actually used by original)
repeatedIf true, sound will repeat indefinitely

◆ stopSound()

void Titanic::CGameObject::stopSound ( int  handle,
uint  seconds = 0 
)
protected

Stop a sound

Parameters
handleSound handle
secondsOptional number of seconds to transition sound off

◆ isSoundActive()

bool Titanic::CGameObject::isSoundActive ( int  handle) const
protected

Returns true if a sound with the specified handle is active

◆ setSoundVolume()

void Titanic::CGameObject::setSoundVolume ( int  handle,
uint  percent,
uint  seconds 
)
protected

Sets the volume for a sound

Parameters
handleSound handle
volumeVolume percentage (0 to 100)
secondsNumber of seconds to transition to the new volume

◆ playAmbientSound()

void Titanic::CGameObject::playAmbientSound ( const CString resName,
VolumeMode  mode,
bool  initialMute,
bool  repeated,
int  handleIndex,
Audio::Mixer::SoundType  soundType = Audio::Mixer::kMusicSoundType 
)
protected

Plays an ambient sound, and saves it's handle in the ambient sound handles list

Parameters
resNameFilename of sound to play
modeVolume mode level
initialMuteIf set, sound transitions in from mute over 2 seconds
repeatedFlag for repeating sounds
handleIndexSlot 0 to 3 in the shared sound handle list to store the sound's handle
soundTypeSpecifies whether the sound is a sound effect or music

◆ stopAmbientSound()

void Titanic::CGameObject::stopAmbientSound ( bool  transition,
int  handleIndex 
)
protected

Stops playing an ambient sound

Parameters
transitionIf set, the sound transitions to silent before stopping
handleIndexIndex of sound to stop. If -1, all ambient sounds are stopped

◆ setAmbientSoundVolume()

void Titanic::CGameObject::setAmbientSoundVolume ( VolumeMode  mode,
uint  seconds,
int  handleIndex 
)
protected

Updates the volume for an ambient sound based on the specified mode's volume

Parameters
modeVolume level mode
secondsNumber of seconds to transition to new volume
handleIndexIndex of ambient sound to update. If -1, all ambient sounds are updated

◆ stopSoundChannel()

void Titanic::CGameObject::stopSoundChannel ( bool  channel3)
protected

Stops sound channel 3 or 0

◆ addTimer() [1/2]

int Titanic::CGameObject::addTimer ( int  endVal,
uint  firstDuration,
uint  repeatDuration 
)
protected

Adds a timer

◆ addTimer() [2/2]

int Titanic::CGameObject::addTimer ( uint  firstDuration,
uint  repeatDuration = 0 
)
protected

Adds a timer

◆ stopTimer()

void Titanic::CGameObject::stopTimer ( int  id)
protected

Stops a timer

◆ startAnimTimer()

int Titanic::CGameObject::startAnimTimer ( const CString action,
uint  firstDuration,
uint  repeatDuration = 0 
)
protected

Start an animation timer

◆ stopAnimTimer()

void Titanic::CGameObject::stopAnimTimer ( int  id)
protected

Stop an animation timer

◆ sleep()

void Titanic::CGameObject::sleep ( uint  milli)
protected

Causes the game to sleep for the specified time

◆ getMousePos()

Point Titanic::CGameObject::getMousePos ( ) const
protected

Get the current mouse cursor position

◆ compareRoomNameTo()

bool Titanic::CGameObject::compareRoomNameTo ( const CString name)
protected

Compare the name of the parent room to the item to a passed string

◆ getMailManFirstObject()

CGameObject* Titanic::CGameObject::getMailManFirstObject ( ) const
protected

Gets the first object under the system MailMan

◆ getMailManNextObject()

CGameObject* Titanic::CGameObject::getMailManNextObject ( CGameObject prior) const
protected

Gets the next object under the system MailMan

◆ findMailByFlags()

CGameObject* Titanic::CGameObject::findMailByFlags ( RoomFlagsComparison  compareType,
uint  roomFlags 
)
protected

Find mail by room flags

◆ getNextMail()

CGameObject* Titanic::CGameObject::getNextMail ( CGameObject prior)
protected

Find next mail from a given prior one

◆ findRoomObject()

CGameObject* Titanic::CGameObject::findRoomObject ( const CString name) const
protected

Finds an object by name within the object's room

◆ findInRoom()

CGameObject* Titanic::CGameObject::findInRoom ( const CString name)
protected

FInds an object under the current room

◆ moveToView() [1/2]

void Titanic::CGameObject::moveToView ( )
protected

Moves the object to be under the current view

◆ moveToView() [2/2]

void Titanic::CGameObject::moveToView ( const CString name)
protected

Moves the object to be under the specified view

◆ changeView() [1/2]

bool Titanic::CGameObject::changeView ( const CString viewName,
const CString clipName 
)
protected

Change the view

◆ changeView() [2/2]

bool Titanic::CGameObject::changeView ( const CString viewName)
protected

Change the view

◆ playClip() [1/2]

void Titanic::CGameObject::playClip ( const CString name,
uint  flags = 0 
)
protected

Play an arbitrary clip

◆ playClip() [2/2]

void Titanic::CGameObject::playClip ( uint  startFrame,
uint  endFrame 
)
protected

Play a clip

◆ playCutscene()

bool Titanic::CGameObject::playCutscene ( uint  startFrame,
uint  endFrame 
)
protected

Play a cutscene

Returns
True if the cutscene was not interrupted

◆ playRandomClip()

void Titanic::CGameObject::playRandomClip ( const char *const *  names,
uint  flags = 0 
)
protected

Play a clip randomly from a passed list of names

◆ getViewFullName()

CString Titanic::CGameObject::getViewFullName ( ) const
protected

Return the current view/node/room as a single string

◆ clipExistsByStart()

bool Titanic::CGameObject::clipExistsByStart ( const CString name,
int  startFrame = 0 
) const
protected

Returns true if a clip exists in the list with a given name and starting frame number

◆ clipExistsByEnd()

bool Titanic::CGameObject::clipExistsByEnd ( const CString name,
int  endFrame = 0 
) const
protected

Returns true if a clip exists in the list with a given name and ending frame number

◆ petClear()

void Titanic::CGameObject::petClear ( ) const
protected

Clear the PET display

◆ getMailMan()

CMailMan* Titanic::CGameObject::getMailMan ( ) const
protected

Returns the MailMan

◆ getDontSave()

CDontSaveFileItem* Titanic::CGameObject::getDontSave ( ) const
protected

Gets the don't save container object

◆ getDontSaveChild()

CTreeItem* Titanic::CGameObject::getDontSaveChild ( ClassDef classDef) const
protected

Returns a child of the Dont Save area of the project of the given class

◆ getHiddenRoom()

CRoomItem* Titanic::CGameObject::getHiddenRoom ( ) const
protected

Returns the special hidden room container

◆ locateRoom()

CRoomItem* Titanic::CGameObject::locateRoom ( const CString name) const
protected

Locates a room with the given name

◆ findUnder()

CTreeItem* Titanic::CGameObject::findUnder ( CTreeItem parent,
const CString name 
) const
protected

Scan the specified room for an item by name

◆ findRoomByName()

CRoomItem* Titanic::CGameObject::findRoomByName ( const CString name)
protected

Finds a room by name

◆ getMusicRoom()

CMusicRoom* Titanic::CGameObject::getMusicRoom ( ) const
protected

Returns the music room instance from the game manager

◆ setPassengerClass()

void Titanic::CGameObject::setPassengerClass ( PassengerClass  newClass)
protected

Set's the player's passenger class

◆ setToggleColor()

void Titanic::CGameObject::setToggleColor ( byte  r,
byte  g,
byte  b 
)
protected

Sets color RGB for toggles

Remarks
The color set isn't actually used anywhere

◆ getClipDuration()

int Titanic::CGameObject::getClipDuration ( const CString name,
int  frameRate = 14 
) const
protected

Gets the duration of a specified clip in milliseconds

◆ getTicksCount()

uint32 Titanic::CGameObject::getTicksCount ( )
protected

Returns the current system tick count

◆ getResource()

Common::SeekableReadStream* Titanic::CGameObject::getResource ( const CString name)
protected

Gets a resource from the DAT file

◆ mailExists()

bool Titanic::CGameObject::mailExists ( uint  roomFlags) const
protected

Returns true if a mail with a specified Id exists

◆ findMail()

CGameObject* Titanic::CGameObject::findMail ( uint  roomFlags) const
protected

Returns a specified mail, if one exists

◆ resetMail()

void Titanic::CGameObject::resetMail ( )
protected

Resets the Mail Man value

◆ petLockInput()

void Titanic::CGameObject::petLockInput ( )
protected

Locks the PET, disabling all input. Can be called multiple times

◆ petUnlockInput()

void Titanic::CGameObject::petUnlockInput ( )
protected

Unlocks PET input

◆ quitGame()

void Titanic::CGameObject::quitGame ( )
protected

Flag to quit the game

◆ setMovieFrameRate()

void Titanic::CGameObject::setMovieFrameRate ( double  rate)
protected

Set the frame rate for the currently loaded movie

◆ getRandomNumber()

int Titanic::CGameObject::getRandomNumber ( int  max,
int *  oldVal = nullptr 
)
protected

Gets a new random number

◆ isBotDisallowedLocation()

bool Titanic::CGameObject::isBotDisallowedLocation ( )
protected

Returns true if the current location is one that Doorbot/Bellbot shouldn't be allowed to be summoned to, but isn't disallowed by the original game

◆ init()

static void Titanic::CGameObject::init ( )
static

Initializes statics

◆ deinit()

static void Titanic::CGameObject::deinit ( )
static

Deinitializes statics

◆ save()

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

Save the data for the class to file

Reimplemented from Titanic::CSaveableObject.

Reimplemented in Titanic::CPetControl, Titanic::CSuccUBus, Titanic::CBarbot, Titanic::CParrot, Titanic::CArboretumGate, Titanic::CBedhead, Titanic::CTrueTalkNPC, Titanic::CSGTStateRoom, Titanic::CMissiveOMat, Titanic::CTelevision, Titanic::CDoorbot, Titanic::CMaitreD, Titanic::CBomb, Titanic::CStarControl, Titanic::CGondolierSlider, Titanic::CHeadSlot, Titanic::CParrotLobbyLinkUpdater, Titanic::CLight, Titanic::CTitania, Titanic::CDeskbot, Titanic::CLiftBot, Titanic::CCellPointButton, Titanic::CGondolierMixer, Titanic::CLightSwitch, Titanic::CLift, Titanic::CServiceElevator, Titanic::CEditControl, Titanic::CBellBot, Titanic::CBilgeSuccUBus, Titanic::CAutoSoundPlayer, Titanic::CPhonograph, Titanic::CRestaurantCylinderHolder, Titanic::CMusicPlayer, Titanic::CFanNoises, Titanic::CHammerDispensorButton, Titanic::CIdleSummoner, Titanic::CLongStickDispenser, Titanic::CSauceDispensor, Titanic::CLiftindicator, Titanic::CEnterExitSecClassMiniLift, Titanic::CCaptainsWheel, Titanic::CChickenDispensor, Titanic::CUpLighter, Titanic::CSTButton, Titanic::CChevCode, Titanic::CLemonDispensor, Titanic::CRestaurantPhonograph, Titanic::CSGTNavigation, Titanic::CSpeechDispensor, Titanic::CSUBGlass, Titanic::CExitPellerator, Titanic::CSeasonalMusicPlayer, Titanic::CBarBell, Titanic::CBrainSlot, Titanic::CChevPanel, Titanic::CodeWheel, Titanic::CFanControl, Titanic::CGondolierBase, Titanic::CMaitreDProdReceptor, Titanic::CCallPellerator, Titanic::CParrotSuccUBus, Titanic::CBarMenu, Titanic::CNavHelmet, Titanic::CParrotNutBowlActor, Titanic::CParrotNutEater, Titanic::CSeasonalAdjustment, Titanic::CShipSetting, Titanic::CSliderButton, Titanic::CDoorAutoSoundEvent, Titanic::CAutoMusicPlayerBase, Titanic::CSeasonNoises, Titanic::CPET, Titanic::CSeasonBackground, Titanic::CWheelHotSpot, Titanic::CEnterExitView, Titanic::CTitaniaSpeech, Titanic::CTurnOnTurnOff, Titanic::CAnnounce, Titanic::CBottomOfWellMonitor, Titanic::CBridgeView, Titanic::CBrokenPellerator, Titanic::CBrokenPelleratorFroz, Titanic::CCDROM, Titanic::CEmmaControl, Titanic::CHammerDispensor, Titanic::CHeadSmashLever, Titanic::CNoseHolder, Titanic::CServiceElevatorWindow, Titanic::CSGTStateControl, Titanic::CShipSettingButton, Titanic::CThrowTVDownWell, Titanic::CPellerator, Titanic::CMusicControl, Titanic::CBilgeDispensorEvent, Titanic::CExitArboretum, Titanic::CScraliontisTable, Titanic::CCharacter, Titanic::CPETShowTranslation, Titanic::CAutoAnimate, Titanic::CBrokenPellBase, Titanic::CCage, Titanic::CCDROMTray, Titanic::CEjectPhonographButton, Titanic::CEndExplodeShip, Titanic::CEndGameCredits, Titanic::CGetLiftEye2, Titanic::CPickUpHose, Titanic::CPortHole, Titanic::CSGTDoors, Titanic::CWheelButton, Titanic::CGondolierSong, Titanic::CRestrictedAutoMusicPlayer, Titanic::CBowlUnlocker, Titanic::CChickenCooler, Titanic::CComputer, Titanic::CDeadArea, Titanic::CEmptyNutBowl, Titanic::CMissiveOMatButton, Titanic::CParrotLobbyObject, Titanic::CPhonographLid, Titanic::CStartAction, Titanic::CToggleSwitch, Titanic::CRestaurantPanHandler, Titanic::CSummonBots, Titanic::CTurnOnPlaySound, Titanic::CArbBackground, Titanic::CBelbotGetLight, Titanic::CComputerScreen, Titanic::CCookie, Titanic::CEndCreditText, Titanic::CFan, Titanic::CHammerClip, Titanic::CMaitreDBody, Titanic::CPETSentinal, Titanic::CPETSounds, Titanic::CBarShelfVisCentre, Titanic::CPlayMusicButton, Titanic::CReservedTable, Titanic::CSeasonBarrel, Titanic::CDrawer, Titanic::CShowCellpoints, Titanic::CStarlingPuret, Titanic::CVolumeControl, Titanic::CEnterExitMiniLift, Titanic::CEnterSecClassState, Titanic::CCallBot, Titanic::CStarlings, Titanic::CAutoMusicPlayer, Titanic::CAutoSoundPlayerADSR, Titanic::CNodeAutoSoundPlayer, Titanic::CMultiDropTarget, Titanic::CTurnOnObject, Titanic::CBarMenuButton, Titanic::CCDROMComputer, Titanic::CCredits, Titanic::CCreditsButton, Titanic::CDeskClickResponder, Titanic::CDoorbotElevatorHandler, Titanic::CEndCredits, Titanic::CEndSequenceControl, Titanic::CGamesConsole, Titanic::CGondolierFace, Titanic::CLittleLiftButton, Titanic::CMaitreDLegs, Titanic::CMusicRoomStopPhonographButton, Titanic::CMusicSystemLock, Titanic::CNavHelmetOff, Titanic::CNavHelmetOn, Titanic::CPetDisabler, Titanic::CRecordPhonographButton, Titanic::CSUBWrapper, Titanic::CWheelSpin, Titanic::CMoveObjectButton, Titanic::CAutoSoundEvent, Titanic::CEnterBridge, Titanic::CExitTiania, Titanic::CMovePlayerTo, Titanic::CPanFromPel, Titanic::CRestrictedMove, Titanic::CRobotController, Titanic::CBirdSong, Titanic::CViewAutoSoundPlayer, Titanic::CElevatorActionArea, Titanic::CMovieTester, Titanic::CParrotLobbyViewObject, Titanic::CParrotPerchHolder, Titanic::CParrotTrigger, Titanic::CPETPosition, Titanic::CPickUp, Titanic::CSearchPoint, Titanic::CDeskchair, Titanic::CSGTRestaurantDoors, Titanic::CGondolier, Titanic::CTransport, Titanic::CWheelSpinHorn, Titanic::CEnterBombRoom, Titanic::CExitBridge, Titanic::CExitLift, Titanic::CMovePlayerInParrotRoom, Titanic::CMovePlayerToFrom, Titanic::CMultiMove, Titanic::CMobile, Titanic::CPetDragChev, Titanic::CBackgroundSoundMaker, Titanic::CEnterViewTogglesOtherMusic, Titanic::CViewTogglesOtherMusic, Titanic::CAnnoyBarbot, Titanic::CBridgeDoor, Titanic::CCloseBrokenPel, Titanic::CGondolierChest, Titanic::CMusicConsoleButton, Titanic::CMusicRoomPhonograph, Titanic::CNoNutBowl, Titanic::CPlayerMeetsParrot, Titanic::CPETTransport, Titanic::CPickUpBarGlass, Titanic::CPickUpSpeechCentre, Titanic::CLemonOnBar, Titanic::CTVOnBar, Titanic::CArmchair, Titanic::CBasin, Titanic::CChestOfDrawers, Titanic::CDesk, Titanic::CSGTTV, Titanic::CToilet, Titanic::CVase, Titanic::CWashstand, Titanic::CSweetBowl, Titanic::CMusicSliderPitch, Titanic::CMusicSliderSpeed, Titanic::CMusicSwitchInversion, Titanic::CMusicSwitchReverse, Titanic::CMusicVoiceMute, Titanic::CToggleButton, Titanic::CRoomAutoSoundPlayer, Titanic::CRoomTriggerAutoMusicPlayer, Titanic::CTriggerAutoMusicPlayer, Titanic::CWaterLappingSounds, Titanic::CMailMan, Titanic::CDoorbotHomeHandler, Titanic::CEarSweetBowl, Titanic::CGlassSmasher, Titanic::CHeadSmashEvent, Titanic::CHeadSpinner, Titanic::CMaitreDArmHolder, Titanic::CNutReplacer, Titanic::CPETMonitor, Titanic::CPETPellerator, Titanic::CPickUpLemon, Titanic::CPickUpVisCentre, Titanic::CPlayOnAct, Titanic::CBedfoot, Titanic::SGTNav, Titanic::CStopPhonographButton, Titanic::CTitaniaStillControl, Titanic::CPellerator, Titanic::CUselessLever, Titanic::CActButton, Titanic::CChangesSeasonButton, Titanic::CStatusChangeButton, Titanic::CServiceElevatorDoor, Titanic::CExitStateRoom, Titanic::CTripDownCanal, Titanic::CFanDecrease, Titanic::CFanIncrease, Titanic::CFloorIndicator, Titanic::CNullPortHole, Titanic::CParrotLobbyController, Titanic::CParrotLoser, Titanic::CPETLift, Titanic::CPETTransition, Titanic::CPlaceHolder, Titanic::CReplacementEar, Titanic::CThirdClassCanal, Titanic::CTOWParrotNav, Titanic::CChevLeftOff, Titanic::CChevLeftOn, Titanic::CChevRightOff, Titanic::CChevRightOn, Titanic::CChevSendRecSwitch, Titanic::CElevatorButton, Titanic::CGetFromSucc, Titanic::CHelmetOnOff, Titanic::CHomePhoto, Titanic::CIconNavAction, Titanic::CIconNavDown, Titanic::CIconNavLeft, Titanic::CIconNavRight, Titanic::CIconNavUp, Titanic::CKeybrdButt, Titanic::CSendToSucc, Titanic::CSmallChevLeftOff, Titanic::CSmallChevLeftOn, Titanic::CSmallChevRightOff, Titanic::CSmallChevRightOn, Titanic::CEnterExitFirstClassState, Titanic::CPetModeOff, Titanic::CPetModeOn, Titanic::CPetModePanel, Titanic::CDomeFromTopOfWell, Titanic::CStaticImage, Titanic::CLeaveSecClassState, Titanic::CMusicalInstrument, Titanic::CNavigationComputer, Titanic::CPETClass1, Titanic::CPETClass2, Titanic::CPETClass3, Titanic::CSGTUpperDoorsSound, Titanic::CSplashAnimation, Titanic::CIconNavButt, Titanic::CIconNavImage, Titanic::CIconNavReceive, Titanic::CIconNavSend, Titanic::CMusicSlider, Titanic::CMusicSwitch, Titanic::CSGTSelector, Titanic::CTextDown, Titanic::CTextSkrew, Titanic::CTextUp, Titanic::CPetGraphic, Titanic::CPetGraphic2, Titanic::PETLeaf, Titanic::CPetPannel1, Titanic::CPetPannel2, Titanic::CPetPannel3, and Titanic::CBilgeAutoSoundEvent.

◆ load()

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

Load the data for the class from file

Reimplemented from Titanic::CSaveableObject.

Reimplemented in Titanic::CPetControl, Titanic::CSuccUBus, Titanic::CBarbot, Titanic::CParrot, Titanic::CArboretumGate, Titanic::CBedhead, Titanic::CTrueTalkNPC, Titanic::CSGTStateRoom, Titanic::CMissiveOMat, Titanic::CTelevision, Titanic::CDoorbot, Titanic::CMaitreD, Titanic::CBomb, Titanic::CStarControl, Titanic::CGondolierSlider, Titanic::CHeadSlot, Titanic::CParrotLobbyLinkUpdater, Titanic::CLight, Titanic::CTitania, Titanic::CDeskbot, Titanic::CLiftBot, Titanic::CCellPointButton, Titanic::CGondolierMixer, Titanic::CLightSwitch, Titanic::CLift, Titanic::CServiceElevator, Titanic::CEditControl, Titanic::CBellBot, Titanic::CBilgeSuccUBus, Titanic::CAutoSoundPlayer, Titanic::CPhonograph, Titanic::CRestaurantCylinderHolder, Titanic::CMusicPlayer, Titanic::CFanNoises, Titanic::CHammerDispensorButton, Titanic::CIdleSummoner, Titanic::CLongStickDispenser, Titanic::CSauceDispensor, Titanic::CLiftindicator, Titanic::CEnterExitSecClassMiniLift, Titanic::CCaptainsWheel, Titanic::CChickenDispensor, Titanic::CUpLighter, Titanic::CSTButton, Titanic::CChevCode, Titanic::CLemonDispensor, Titanic::CRestaurantPhonograph, Titanic::CSGTNavigation, Titanic::CSpeechDispensor, Titanic::CSUBGlass, Titanic::CExitPellerator, Titanic::CSeasonalMusicPlayer, Titanic::CBarBell, Titanic::CBrainSlot, Titanic::CChevPanel, Titanic::CodeWheel, Titanic::CFanControl, Titanic::CGondolierBase, Titanic::CMaitreDProdReceptor, Titanic::CCallPellerator, Titanic::CParrotSuccUBus, Titanic::CBarMenu, Titanic::CNavHelmet, Titanic::CParrotNutBowlActor, Titanic::CParrotNutEater, Titanic::CSeasonalAdjustment, Titanic::CShipSetting, Titanic::CSliderButton, Titanic::CDoorAutoSoundEvent, Titanic::CAutoMusicPlayerBase, Titanic::CSeasonNoises, Titanic::CPET, Titanic::CSeasonBackground, Titanic::CWheelHotSpot, Titanic::CEnterExitView, Titanic::CTitaniaSpeech, Titanic::CTurnOnTurnOff, Titanic::CAnnounce, Titanic::CBottomOfWellMonitor, Titanic::CBridgeView, Titanic::CBrokenPellerator, Titanic::CBrokenPelleratorFroz, Titanic::CCDROM, Titanic::CEmmaControl, Titanic::CHammerDispensor, Titanic::CHeadSmashLever, Titanic::CNoseHolder, Titanic::CServiceElevatorWindow, Titanic::CSGTStateControl, Titanic::CShipSettingButton, Titanic::CThrowTVDownWell, Titanic::CPellerator, Titanic::CMusicControl, Titanic::CBilgeDispensorEvent, Titanic::CExitArboretum, Titanic::CScraliontisTable, Titanic::CCharacter, Titanic::CPETShowTranslation, Titanic::CAutoAnimate, Titanic::CBrokenPellBase, Titanic::CCage, Titanic::CCDROMTray, Titanic::CEjectPhonographButton, Titanic::CEndExplodeShip, Titanic::CEndGameCredits, Titanic::CGetLiftEye2, Titanic::CPickUpHose, Titanic::CPortHole, Titanic::CSGTDoors, Titanic::CWheelButton, Titanic::CGondolierSong, Titanic::CRestrictedAutoMusicPlayer, Titanic::CBowlUnlocker, Titanic::CChickenCooler, Titanic::CComputer, Titanic::CDeadArea, Titanic::CEmptyNutBowl, Titanic::CMissiveOMatButton, Titanic::CParrotLobbyObject, Titanic::CPhonographLid, Titanic::CStartAction, Titanic::CToggleSwitch, Titanic::CRestaurantPanHandler, Titanic::CSummonBots, Titanic::CTurnOnPlaySound, Titanic::CArbBackground, Titanic::CBelbotGetLight, Titanic::CComputerScreen, Titanic::CCookie, Titanic::CEndCreditText, Titanic::CFan, Titanic::CHammerClip, Titanic::CMaitreDBody, Titanic::CPETSentinal, Titanic::CPETSounds, Titanic::CBarShelfVisCentre, Titanic::CPlayMusicButton, Titanic::CReservedTable, Titanic::CSeasonBarrel, Titanic::CDrawer, Titanic::CShowCellpoints, Titanic::CStarlingPuret, Titanic::CVolumeControl, Titanic::CMusicVoiceMute, Titanic::CEnterExitMiniLift, Titanic::CEnterSecClassState, Titanic::CCallBot, Titanic::CStarlings, Titanic::CAutoMusicPlayer, Titanic::CAutoSoundPlayerADSR, Titanic::CNodeAutoSoundPlayer, Titanic::CMultiDropTarget, Titanic::CTurnOnObject, Titanic::CBarMenuButton, Titanic::CCDROMComputer, Titanic::CCredits, Titanic::CCreditsButton, Titanic::CDeskClickResponder, Titanic::CDoorbotElevatorHandler, Titanic::CEndCredits, Titanic::CEndSequenceControl, Titanic::CGamesConsole, Titanic::CGondolierFace, Titanic::CLittleLiftButton, Titanic::CMaitreDLegs, Titanic::CMusicRoomStopPhonographButton, Titanic::CMusicSystemLock, Titanic::CNavHelmetOff, Titanic::CNavHelmetOn, Titanic::CPetDisabler, Titanic::CRecordPhonographButton, Titanic::CSUBWrapper, Titanic::CWheelSpin, Titanic::CMoveObjectButton, Titanic::CAutoSoundEvent, Titanic::CEnterBridge, Titanic::CExitTiania, Titanic::CMovePlayerTo, Titanic::CPanFromPel, Titanic::CRestrictedMove, Titanic::CRobotController, Titanic::CBirdSong, Titanic::CViewAutoSoundPlayer, Titanic::CElevatorActionArea, Titanic::CMovieTester, Titanic::CParrotLobbyViewObject, Titanic::CParrotPerchHolder, Titanic::CParrotTrigger, Titanic::CPETPosition, Titanic::CPickUp, Titanic::CSearchPoint, Titanic::CDeskchair, Titanic::CSGTRestaurantDoors, Titanic::CGondolier, Titanic::CTransport, Titanic::CWheelSpinHorn, Titanic::CEnterBombRoom, Titanic::CExitBridge, Titanic::CExitLift, Titanic::CMovePlayerInParrotRoom, Titanic::CMovePlayerToFrom, Titanic::CMultiMove, Titanic::CMobile, Titanic::CPetDragChev, Titanic::CBackgroundSoundMaker, Titanic::CEnterViewTogglesOtherMusic, Titanic::CViewTogglesOtherMusic, Titanic::CAnnoyBarbot, Titanic::CBridgeDoor, Titanic::CCloseBrokenPel, Titanic::CGondolierChest, Titanic::CMusicConsoleButton, Titanic::CMusicRoomPhonograph, Titanic::CNoNutBowl, Titanic::CPlayerMeetsParrot, Titanic::CPETTransport, Titanic::CPickUpBarGlass, Titanic::CPickUpSpeechCentre, Titanic::CLemonOnBar, Titanic::CTVOnBar, Titanic::CArmchair, Titanic::CBasin, Titanic::CChestOfDrawers, Titanic::CDesk, Titanic::CSGTTV, Titanic::CToilet, Titanic::CVase, Titanic::CWashstand, Titanic::CSweetBowl, Titanic::CMusicSliderPitch, Titanic::CMusicSliderSpeed, Titanic::CMusicSwitchInversion, Titanic::CMusicSwitchReverse, Titanic::CToggleButton, Titanic::CRoomAutoSoundPlayer, Titanic::CRoomTriggerAutoMusicPlayer, Titanic::CTriggerAutoMusicPlayer, Titanic::CWaterLappingSounds, Titanic::CMailMan, Titanic::CDoorbotHomeHandler, Titanic::CEarSweetBowl, Titanic::CGlassSmasher, Titanic::CHeadSmashEvent, Titanic::CHeadSpinner, Titanic::CMaitreDArmHolder, Titanic::CNutReplacer, Titanic::CPETMonitor, Titanic::CPETPellerator, Titanic::CPickUpLemon, Titanic::CPickUpVisCentre, Titanic::CPlayOnAct, Titanic::CBedfoot, Titanic::SGTNav, Titanic::CStopPhonographButton, Titanic::CTitaniaStillControl, Titanic::CPellerator, Titanic::CUselessLever, Titanic::CActButton, Titanic::CChangesSeasonButton, Titanic::CStatusChangeButton, Titanic::CServiceElevatorDoor, Titanic::CExitStateRoom, Titanic::CTripDownCanal, Titanic::CFanDecrease, Titanic::CFanIncrease, Titanic::CFloorIndicator, Titanic::CNullPortHole, Titanic::CParrotLobbyController, Titanic::CParrotLoser, Titanic::CPETLift, Titanic::CPETTransition, Titanic::CPlaceHolder, Titanic::CReplacementEar, Titanic::CThirdClassCanal, Titanic::CTOWParrotNav, Titanic::CChevLeftOff, Titanic::CChevLeftOn, Titanic::CChevRightOff, Titanic::CChevRightOn, Titanic::CChevSendRecSwitch, Titanic::CElevatorButton, Titanic::CGetFromSucc, Titanic::CHelmetOnOff, Titanic::CHomePhoto, Titanic::CIconNavAction, Titanic::CIconNavDown, Titanic::CIconNavLeft, Titanic::CIconNavRight, Titanic::CIconNavUp, Titanic::CKeybrdButt, Titanic::CSendToSucc, Titanic::CSmallChevLeftOff, Titanic::CSmallChevLeftOn, Titanic::CSmallChevRightOff, Titanic::CSmallChevRightOn, Titanic::CEnterExitFirstClassState, Titanic::CPetModeOff, Titanic::CPetModeOn, Titanic::CPetModePanel, Titanic::CDomeFromTopOfWell, Titanic::CStaticImage, Titanic::CLeaveSecClassState, Titanic::CMusicalInstrument, Titanic::CNavigationComputer, Titanic::CPETClass1, Titanic::CPETClass2, Titanic::CPETClass3, Titanic::CSGTUpperDoorsSound, Titanic::CSplashAnimation, Titanic::CIconNavButt, Titanic::CIconNavImage, Titanic::CIconNavReceive, Titanic::CIconNavSend, Titanic::CMusicSlider, Titanic::CMusicSwitch, Titanic::CSGTSelector, Titanic::CTextDown, Titanic::CTextSkrew, Titanic::CTextUp, Titanic::CPetGraphic, Titanic::CPetGraphic2, Titanic::PETLeaf, Titanic::CPetPannel1, Titanic::CPetPannel2, Titanic::CPetPannel3, and Titanic::CBilgeAutoSoundEvent.

◆ getMovieClips()

const CMovieClipList* Titanic::CGameObject::getMovieClips ( ) const
inlineoverridevirtual

Returns the clip list, if any, associated with the item

Reimplemented from Titanic::CTreeItem.

◆ draw() [1/4]

void Titanic::CGameObject::draw ( CScreenManager screenManager)
overridevirtual

Allows the item to draw itself

Reimplemented from Titanic::CTreeItem.

Reimplemented in Titanic::CPetControl, and Titanic::CStarControl.

◆ getBounds()

Rect Titanic::CGameObject::getBounds ( ) const
overridevirtual

Gets the bounds occupied by the item

Reimplemented from Titanic::CTreeItem.

Reimplemented in Titanic::CPetControl.

◆ freeSurface()

void Titanic::CGameObject::freeSurface ( )
overridevirtual

Free up any surface the object used

Reimplemented from Titanic::CTreeItem.

◆ draw() [2/4]

void Titanic::CGameObject::draw ( CScreenManager screenManager,
const Rect destRect,
const Rect srcRect 
)

Allows the item to draw itself

◆ draw() [3/4]

void Titanic::CGameObject::draw ( CScreenManager screenManager,
const Point destPos 
)

Allows the item to draw itself

◆ draw() [4/4]

void Titanic::CGameObject::draw ( CScreenManager screenManager,
const Point destPos,
const Rect srcRect 
)

Allows the item to draw itself

◆ isPet()

virtual bool Titanic::CGameObject::isPet ( ) const
virtual

Returns true if the item is the PET control

◆ checkPoint()

bool Titanic::CGameObject::checkPoint ( const Point pt,
bool  ignoreSurface = false,
bool  visibleOnly = false 
)

Checks the passed point is validly in the object, with extra checking of object flags status

◆ findPoint()

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

Returns a point that falls within the object. 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

◆ setPosition()

void Titanic::CGameObject::setPosition ( const Point newPos)

Set the position of the object

◆ getControid()

Point Titanic::CGameObject::getControid ( ) const

Get the centre of the game object's bounds

◆ playMovie() [1/3]

void Titanic::CGameObject::playMovie ( uint  flags)

Change the object's status

◆ playMovie() [2/3]

void Titanic::CGameObject::playMovie ( int  startFrame,
int  endFrame,
uint  flags 
)

Play the movie specified in _resource

◆ playMovie() [3/3]

void Titanic::CGameObject::playMovie ( int  startFrame,
int  endFrame,
int  initialFrame,
uint  flags 
)

Play the movie specified in _resource

◆ hasActiveMovie()

bool Titanic::CGameObject::hasActiveMovie ( ) const

Returns true if the object has a currently active movie

◆ stopMovie()

void Titanic::CGameObject::stopMovie ( )

Stops any movie currently playing for the object

◆ movieSetPlaying()

void Titanic::CGameObject::movieSetPlaying ( bool  flag)

Overrides whether the object's movie is playing or paused

◆ getMovieFrame()

int Titanic::CGameObject::getMovieFrame ( ) const

Get the current movie frame

◆ getFrameNumber()

int Titanic::CGameObject::getFrameNumber ( ) const
inline

Returns the object's frame number

◆ loadFrame()

void Titanic::CGameObject::loadFrame ( int  frameNumber)

Loads a frame

◆ loadSurface()

void Titanic::CGameObject::loadSurface ( )

Load the surface

◆ makeDirty() [1/2]

void Titanic::CGameObject::makeDirty ( )

Marks the area occupied by the object as dirty, requiring re-rendering

◆ makeDirty() [2/2]

void Titanic::CGameObject::makeDirty ( const Rect r)

Marks the area in the passed rect as dirty, and requiring re-rendering

◆ setVisible()

void Titanic::CGameObject::setVisible ( bool  val)

Sets whether the object is visible

◆ getPassengerClass()

PassengerClass Titanic::CGameObject::getPassengerClass ( ) const

Return the player's passenger class

◆ getPriorClass()

PassengerClass Titanic::CGameObject::getPriorClass ( ) const

Return the player's previous passenger class

◆ setMailDest()

void Titanic::CGameObject::setMailDest ( uint  roomFlags)

Sets the mail identifier for an object

◆ surfaceHasFrame()

bool Titanic::CGameObject::surfaceHasFrame ( ) const

Returns true if there's an attached surface which has a frame ready for display

◆ find()

Found Titanic::CGameObject::find ( const CString name,
CGameObject **  item,
int  findAreas 
)

Finds an item in various system areas

◆ getHiddenObject()

CGameObject* Titanic::CGameObject::getHiddenObject ( const CString name) const

Returns a hidden object

◆ dragMove()

void Titanic::CGameObject::dragMove ( const Point pt)

Support function for drag moving

◆ getDraggingObject()

CGameObject* Titanic::CGameObject::getDraggingObject ( ) const

Returns the currently dragging item (if any) if it's a game object

◆ compareRoomFlags()

static bool Titanic::CGameObject::compareRoomFlags ( RoomFlagsComparison  compareType,
uint  flags1,
uint  flags2 
)
static

Compares two sets of room flags together

◆ createCredits()

void Titanic::CGameObject::createCredits ( )

Sets up credits text

◆ setText()

void Titanic::CGameObject::setText ( const CString str,
int  border = 0,
int  borderRight = 0 
)

Set up the text and borders for the object

◆ setTextHasBorders()

void Titanic::CGameObject::setTextHasBorders ( bool  hasBorders)

Sets whether the text will use borders

◆ setTextBounds()

void Titanic::CGameObject::setTextBounds ( )

Sets the bounds for a previously defined text area

◆ setTextColor()

void Titanic::CGameObject::setTextColor ( byte  r,
byte  g,
byte  b 
)

Sets the color for the object's text

◆ setTextFontNumber()

void Titanic::CGameObject::setTextFontNumber ( int  fontNumber)

Sets the font number to use for text

◆ getTextWidth()

int Titanic::CGameObject::getTextWidth ( ) const

Gets the width of the text contents

◆ scrollTextUp()

void Titanic::CGameObject::scrollTextUp ( )

Scroll text up

◆ scrollTextDown()

void Titanic::CGameObject::scrollTextDown ( )

Scroll text down

◆ getTextCursor()

CTextCursor* Titanic::CGameObject::getTextCursor ( ) const

Returns the text cursor

◆ getMovement()

Movement Titanic::CGameObject::getMovement ( ) const

Get the movement, if any, the cursor represents

◆ getRoom()

CRoomItem* Titanic::CGameObject::getRoom ( ) const

Return the current room

◆ getNode()

CNodeItem* Titanic::CGameObject::getNode ( ) const

Return the current node

◆ getView()

CViewItem* Titanic::CGameObject::getView ( ) const

Return the current room

◆ getRoomName()

CString Titanic::CGameObject::getRoomName ( ) const

Get the current room name

◆ getRoomNodeName()

CString Titanic::CGameObject::getRoomNodeName ( ) const

Get the current node and room in the form "room.node"

◆ addMail()

void Titanic::CGameObject::addMail ( uint  destRoomFlags)

Adds an object to the mail list

◆ sendMail()

void Titanic::CGameObject::sendMail ( uint  currRoomFlags,
uint  newRoomFlags 
)

Sends a pending mail object to a given destination

◆ getFullViewName()

CString Titanic::CGameObject::getFullViewName ( )

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

◆ getPetControl()

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

Returns the PET control

◆ petAddToCarryParcel()

void Titanic::CGameObject::petAddToCarryParcel ( CGameObject obj)

Moves a specified item to the carry parcel

◆ petAddToInventory()

void Titanic::CGameObject::petAddToInventory ( )

Add the item to the inventory

◆ petDismissBot()

bool Titanic::CGameObject::petDismissBot ( const CString name)

Dismiss a bot

◆ petDoorOrBellbotPresent()

bool Titanic::CGameObject::petDoorOrBellbotPresent ( ) const

Is Doorbot or Bellbot present in the current view

◆ petDisplayMessage() [1/4]

void Titanic::CGameObject::petDisplayMessage ( int  unused,
StringId  stringId 
)

Display a message in the PET

◆ petDisplayMessage() [2/4]

void Titanic::CGameObject::petDisplayMessage ( int  unused,
const CString str 
)

Display a message in the PET

◆ petDisplayMessage() [3/4]

void Titanic::CGameObject::petDisplayMessage ( StringId  stringId,
int  param = 0 
)

Display a message in the PET

◆ petDisplayMessage() [4/4]

void Titanic::CGameObject::petDisplayMessage ( const CString str,
int  param = 0 
)

Display a message in the PET

◆ petGetRoomsWellEntry()

int Titanic::CGameObject::petGetRoomsWellEntry ( ) const

Gets the entry number used when last arriving at the well

◆ petHide()

void Titanic::CGameObject::petHide ( )

Hide the PET

◆ petHideCursor()

void Titanic::CGameObject::petHideCursor ( )

Hides the text cursor in the current section, if applicable

◆ petHighlightGlyph()

void Titanic::CGameObject::petHighlightGlyph ( int  id)

Highlights a glyph in the currently active PET section

◆ petInvChange()

void Titanic::CGameObject::petInvChange ( )

Called when the status of an item in the inventory has changed

◆ petMoveToHiddenRoom()

void Titanic::CGameObject::petMoveToHiddenRoom ( )

Moves the item from it's original position to be under the hidden room

◆ petReassignRoom()

void Titanic::CGameObject::petReassignRoom ( PassengerClass  passClassNum)

Gives the player a new assigned room in the specified passenger class

◆ petSetArea()

void Titanic::CGameObject::petSetArea ( PetArea  newArea) const

Sets a new area in the PET

◆ petSetRemoteTarget()

void Titanic::CGameObject::petSetRemoteTarget ( )

Set the remote target in the PET to this object

◆ petSetRoomsWellEntry()

void Titanic::CGameObject::petSetRoomsWellEntry ( int  entryNum)

Sets the entry number for arriving at the well

◆ petSetRoomsElevatorBroken()

void Titanic::CGameObject::petSetRoomsElevatorBroken ( bool  flag)

Sets the flag for whether elevator 4 has yet been fixed

◆ petShow()

void Titanic::CGameObject::petShow ( )

Show the PET

◆ petIncAreaLocks()

void Titanic::CGameObject::petIncAreaLocks ( )

Increment the number of PET area (tab) locks

◆ petDecAreaLocks()

void Titanic::CGameObject::petDecAreaLocks ( )

Decrement the number of PET area (tab) locks

◆ petShowCursor()

void Titanic::CGameObject::petShowCursor ( )

Shows the text cursor in the current section, if applicable

◆ petOnSummonBot()

void Titanic::CGameObject::petOnSummonBot ( const CString name,
int  val 
)

Summon a bot

◆ getStarControl()

CStarControl* Titanic::CGameObject::getStarControl ( ) const

Returns the star control

◆ starFn()

void Titanic::CGameObject::starFn ( StarControlAction  action)

Executes an action in the StarControl subsystem

◆ starIsSolved()

bool Titanic::CGameObject::starIsSolved ( ) const

Returns true if the starmap puzzle has been solved

◆ startTalking() [1/2]

void Titanic::CGameObject::startTalking ( CTrueTalkNPC npc,
uint  id,
CViewItem view = nullptr 
)

Start a conversation with the NPC

◆ startTalking() [2/2]

void Titanic::CGameObject::startTalking ( const CString name,
uint  id,
CViewItem view = nullptr 
)

Start a conversation with the NPC

◆ setTalking()

void Titanic::CGameObject::setTalking ( CTrueTalkNPC npc,
bool  viewFlag,
CViewItem view = nullptr 
)

Start a conversation with the NPC

◆ talkSetDialRegion()

void Titanic::CGameObject::talkSetDialRegion ( const CString name,
int  dialNum,
int  regionNum 
)

Sets a dial region for a given NPC

◆ talkGetDialRegion()

int Titanic::CGameObject::talkGetDialRegion ( const CString name,
int  dialNum 
)

Gets a dial region for a given NPC

◆ movieEvent() [1/2]

void Titanic::CGameObject::movieEvent ( int  frameNumber)

Signal a movie event for the given frame

◆ movieEvent() [2/2]

void Titanic::CGameObject::movieEvent ( )

Signal a movie event at the end of all currently playing ranges

◆ stateSetSoundMakerAllowed()

void Titanic::CGameObject::stateSetSoundMakerAllowed ( bool  flag)

Sets whether a background sound maker is allowed for the rooms if available

◆ stateChangeSeason()

void Titanic::CGameObject::stateChangeSeason ( )

Change to the next season

◆ stateGetSeason()

Season Titanic::CGameObject::stateGetSeason ( ) const

Returns the currently active season

◆ stateSetParrotMet()

void Titanic::CGameObject::stateSetParrotMet ( )

Sets the flag for the parrot having been met

◆ stateGetParrotMet()

bool Titanic::CGameObject::stateGetParrotMet ( ) const

Returns whether the parrot has been met

◆ incParrotResponse()

void Titanic::CGameObject::incParrotResponse ( )

Moves the parrot to the next idle response

◆ getParrotResponse()

int Titanic::CGameObject::getParrotResponse ( ) const

Gets the index to use for parrot idle responses

◆ getNodeChangedCtr()

uint Titanic::CGameObject::getNodeChangedCtr ( ) const

Gets the game state node changed counter

◆ getNodeEnterTicks()

uint Titanic::CGameObject::getNodeEnterTicks ( ) const

Gets the game state node enter ticks


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