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

Public Member Functions

void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
void draw (CScreenManager *screenManager) override
 
Rect getBounds () const override
 
void reset ()
 
void postLoad ()
 
void enterNode (CNodeItem *node)
 
void enterRoom (CRoomItem *room)
 
void resetRemoteTarget ()
 
void setRemoteTarget (CGameObject *item)
 
PetArea setArea (PetArea newSection, bool forceChange=false)
 
void hideCursor ()
 
void showCursor ()
 
void highlightGlyph (int id)
 
CGameObjectgetHiddenObject (const CString &name)
 
CRoomItemgetHiddenRoom ()
 
void drawSquares (CScreenManager *screenManager, int count)
 
bool contains (const Point &pt) const
 
CGameObjectdragEnd (const Point &pt) const
 
bool checkDragEnd (CGameObject *item) const
 
void displayMessage (StringId stringId, int param=0) const
 
void displayMessage (const CString &str, int param=0) const
 
void addTranslation (StringId id1, StringId id2)
 
void clearTranslation ()
 
CGameObjectgetFirstObject () const
 
CGameObjectgetNextObject (CGameObject *prior) const
 
void addToInventory (CGameObject *item)
 
void removeFromInventory (CGameObject *item, CTreeItem *newParent, bool refreshUI=true, bool sendMsg=true)
 
void removeFromInventory (CGameObject *item, bool refreshUI=true, bool sendMsg=true)
 
void invChange (CGameObject *item)
 
void moveToHiddenRoom (CTreeItem *item)
 
void setAreaChangeType (int changeType)
 
bool checkNode (const CString &name)
 
void syncSoundSettings ()
 
void playSound (int soundNum)
 
int canSummonBot (const CString &name)
 
void summonBot (const CString &name, int val)
 
void onSummonBot (const CString &name, int val)
 
bool dismissBot (const CString &name)
 
bool isDoorOrBellbotPresent () const
 
void startPetTimer (uint timerIndex, uint firstDuration, uint duration, CPetSection *target)
 
void stopPetTimer (uint timerIndex)
 
bool isInputLocked () const
 
void incInputLocks ()
 
void decInputLocks ()
 
bool isAreaUnlocked () const
 
void incAreaLocks ()
 
void decAreaLocks ()
 
bool isSuccUBusActive () const
 
void setActiveNPC (const CString &name)
 
void setActiveNPC (CTrueTalkNPC *npc)
 
void refreshNPC ()
 
void resetActiveNPC ()
 
void convResetNPC ()
 
void resetDials0 ()
 
void convResetDials (int flag=1)
 
void convAddLine (const CString &line)
 
void reassignRoom (PassengerClass passClassNum)
 
bool changeLocationClass (PassengerClass newClassNum)
 
bool isInAssignedRoom () const
 
uint getRoomFlags () const
 
void setRoomsElevatorNum (int elevNum)
 
int getRoomsElevatorNum () const
 
void setRoomsFloorNum (int floorNum)
 
int getRoomsFloorNum () const
 
void setRoomsRoomNum (int roomNum)
 
int getRoomsRoomNum () const
 
void setRoomsWellEntry (int entryNum)
 
int getRoomsWellEntry () const
 
void setRoomsSublevel (int level)
 
int getRoomsSublevel () const
 
void resetRoomsHighlight ()
 
int getAssignedRoomFlags () const
 
uint getSpecialRoomFlags (const CString &name)
 
PassengerClass getMailDestClass (const CRoomFlags &roomFlags) const
 
bool isSuccUBusDest (uint roomFlags)
 
int getAssignedRoomNum () const
 
int getAssignedFloorNum () const
 
int getAssignedElevatorNum () const
 
void setRoomsElevatorBroken (bool flag)
 
bool isFirstClassSuite () const
 
bool isSuccUBusRoom (const CRoomFlags &roomFlags)
 
void phonographAction (const CString &action)
 
void starsSetButtons (int matchIndex, bool isMarkerClose)
 
void starsSetReference ()
 
- Public Member Functions inherited from Titanic::CGameObject
const CMovieClipListgetMovieClips () 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

PetArea _currentArea
 
CTreeItem_activeNPC
 
CGameObject_remoteTarget
 
 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 Member Functions

bool MouseButtonDownMsg (CMouseButtonDownMsg *msg)
 
bool MouseDragStartMsg (CMouseDragStartMsg *msg)
 
bool MouseDragMoveMsg (CMouseDragMoveMsg *msg)
 
bool MouseDragEndMsg (CMouseDragEndMsg *msg)
 
bool MouseButtonUpMsg (CMouseButtonUpMsg *msg)
 
bool MouseDoubleClickMsg (CMouseDoubleClickMsg *msg)
 
bool MouseWheelMsg (CMouseWheelMsg *msg)
 
bool KeyCharMsg (CKeyCharMsg *msg)
 
bool VirtualKeyCharMsg (CVirtualKeyCharMsg *msg)
 
bool TimerMsg (CTimerMsg *msg)
 
- 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
 

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
 
- Static Protected Member Functions inherited from Titanic::CMessageTarget
static const MSGMAPgetThisMessageMap ()
 
- 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
 
- Static Protected Attributes inherited from Titanic::CGameObject
static CCreditText_credits
 

Member Function Documentation

◆ save()

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

Save the data for the class to file

Reimplemented from Titanic::CGameObject.

◆ load()

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

Load the data for the class from file

Reimplemented from Titanic::CGameObject.

◆ draw()

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

Allows the item to draw itself

Reimplemented from Titanic::CGameObject.

◆ getBounds()

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

Gets the bounds occupied by the item

Reimplemented from Titanic::CGameObject.

◆ reset()

void Titanic::CPetControl::reset ( )

Resets the PET, including all the sections within it

◆ postLoad()

void Titanic::CPetControl::postLoad ( )

Called after loading a game has finished

◆ enterNode()

void Titanic::CPetControl::enterNode ( CNodeItem node)

Called when a new node is entered

◆ enterRoom()

void Titanic::CPetControl::enterRoom ( CRoomItem room)

Called when a new room is entered

◆ resetRemoteTarget()

void Titanic::CPetControl::resetRemoteTarget ( )

Called to reset the remote target

◆ setRemoteTarget()

void Titanic::CPetControl::setRemoteTarget ( CGameObject item)

Set the remote target

◆ setArea()

PetArea Titanic::CPetControl::setArea ( PetArea  newSection,
bool  forceChange = false 
)

Sets the currently viewed area within the PET

◆ hideCursor()

void Titanic::CPetControl::hideCursor ( )

Hides the text cursor in the current section, if applicable

◆ showCursor()

void Titanic::CPetControl::showCursor ( )

Shows the text cursor in the current section, if applicable

◆ highlightGlyph()

void Titanic::CPetControl::highlightGlyph ( int  id)

Highlights a glyph item in the currently active section, if applicable

◆ getHiddenObject()

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

Returns a game object used by the PET by name from within the special hidden room container

◆ getHiddenRoom()

CRoomItem* Titanic::CPetControl::getHiddenRoom ( )

Returns a reference to the special hidden room container

◆ drawSquares()

void Titanic::CPetControl::drawSquares ( CScreenManager screenManager,
int  count 
)

Draws squares for showing glyphs inside

◆ contains()

bool Titanic::CPetControl::contains ( const Point pt) const
inline

Returns true if the point is within the PET's draw bounds

◆ dragEnd()

CGameObject* Titanic::CPetControl::dragEnd ( const Point pt) const

Handles drag ends within the PET

◆ checkDragEnd()

bool Titanic::CPetControl::checkDragEnd ( CGameObject item) const

Handles checking when a drag-drop operation ends

◆ displayMessage() [1/2]

void Titanic::CPetControl::displayMessage ( StringId  stringId,
int  param = 0 
) const

Display a message

◆ displayMessage() [2/2]

void Titanic::CPetControl::displayMessage ( const CString str,
int  param = 0 
) const

Display a message

◆ addTranslation()

void Titanic::CPetControl::addTranslation ( StringId  id1,
StringId  id2 
)

Switches to the Translation display, and adds a line to it's content

◆ clearTranslation()

void Titanic::CPetControl::clearTranslation ( )

Clears the translation display

◆ getFirstObject()

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

Get the first game object stored in the PET

◆ getNextObject()

CGameObject* Titanic::CPetControl::getNextObject ( CGameObject prior) const

Get the next game object stored in the PET following the passed game object

◆ addToInventory()

void Titanic::CPetControl::addToInventory ( CGameObject item)

Adds an item to the PET inventory

◆ removeFromInventory() [1/2]

void Titanic::CPetControl::removeFromInventory ( CGameObject item,
CTreeItem newParent,
bool  refreshUI = true,
bool  sendMsg = true 
)

Remove an item from the inventory

◆ removeFromInventory() [2/2]

void Titanic::CPetControl::removeFromInventory ( CGameObject item,
bool  refreshUI = true,
bool  sendMsg = true 
)

Remove an item from the inventory

◆ invChange()

void Titanic::CPetControl::invChange ( CGameObject item)

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

◆ moveToHiddenRoom()

void Titanic::CPetControl::moveToHiddenRoom ( CTreeItem item)

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

◆ setAreaChangeType()

void Titanic::CPetControl::setAreaChangeType ( int  changeType)
inline

Sets a change for the PET Area's glyphs. Only applicable when the Inventory is the active tab

◆ syncSoundSettings()

void Titanic::CPetControl::syncSoundSettings ( )

Handles updates to the sound levels

◆ playSound()

void Titanic::CPetControl::playSound ( int  soundNum)

Play a sound

◆ canSummonBot()

int Titanic::CPetControl::canSummonBot ( const CString name)

Check whether an NPC can be summoned

◆ summonBot()

void Titanic::CPetControl::summonBot ( const CString name,
int  val 
)

Summon an NPC to the player

◆ onSummonBot()

void Titanic::CPetControl::onSummonBot ( const CString name,
int  val 
)

Summon a bot to the player

◆ dismissBot()

bool Titanic::CPetControl::dismissBot ( const CString name)

Dismiss an NPC

◆ isDoorOrBellbotPresent()

bool Titanic::CPetControl::isDoorOrBellbotPresent ( ) const

Returns true if Doorbot or Bellbot present

◆ startPetTimer()

void Titanic::CPetControl::startPetTimer ( uint  timerIndex,
uint  firstDuration,
uint  duration,
CPetSection target 
)

Start a timer for a Pet Area

◆ stopPetTimer()

void Titanic::CPetControl::stopPetTimer ( uint  timerIndex)

Stop a timer

◆ isInputLocked()

bool Titanic::CPetControl::isInputLocked ( ) const
inline

Returns true if all input is currently locked (disabled)

◆ incInputLocks()

void Titanic::CPetControl::incInputLocks ( )
inline

Increments the input locked count

◆ decInputLocks()

void Titanic::CPetControl::decInputLocks ( )
inline

Decremenst the input locked count

◆ isAreaUnlocked()

bool Titanic::CPetControl::isAreaUnlocked ( ) const
inline

Returns true if the PET is currently unlocked

◆ incAreaLocks()

void Titanic::CPetControl::incAreaLocks ( )
inline

Increment the number of PET area (tab) locks

◆ decAreaLocks()

void Titanic::CPetControl::decAreaLocks ( )
inline

Decrement the number of PET area (tab) locks

◆ setActiveNPC() [1/2]

void Titanic::CPetControl::setActiveNPC ( const CString name)

Sets the active NPC

◆ setActiveNPC() [2/2]

void Titanic::CPetControl::setActiveNPC ( CTrueTalkNPC npc)

Sets the actie NPC

◆ refreshNPC()

void Titanic::CPetControl::refreshNPC ( )

Refresh the currently active NPC

◆ resetActiveNPC()

void Titanic::CPetControl::resetActiveNPC ( )

Resets the Active NPC

◆ convResetNPC()

void Titanic::CPetControl::convResetNPC ( )
inline

Resets NPC in conversations

◆ resetDials0()

void Titanic::CPetControl::resetDials0 ( )

Resets the conversation dials back to 0 position

◆ convResetDials()

void Titanic::CPetControl::convResetDials ( int  flag = 1)

Resets the dial display in the conversation tab to reflect new values

◆ convAddLine()

void Titanic::CPetControl::convAddLine ( const CString line)
inline

Adds a line to the conversation log

◆ reassignRoom()

void Titanic::CPetControl::reassignRoom ( PassengerClass  passClassNum)
inline

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

◆ changeLocationClass()

bool Titanic::CPetControl::changeLocationClass ( PassengerClass  newClassNum)
inline

Change the current location passenger class

◆ isInAssignedRoom()

bool Titanic::CPetControl::isInAssignedRoom ( ) const
inline

Returns true if the player is in the current or previously assigned rooms

◆ setRoomsElevatorNum()

void Titanic::CPetControl::setRoomsElevatorNum ( int  elevNum)
inline

Set the current elevator number to use for room glyphs

◆ getRoomsElevatorNum()

int Titanic::CPetControl::getRoomsElevatorNum ( ) const
inline

Get the current elevator number used by room glyphs

◆ setRoomsFloorNum()

void Titanic::CPetControl::setRoomsFloorNum ( int  floorNum)
inline

Set the current floor number to use for room glyphs

◆ getRoomsFloorNum()

int Titanic::CPetControl::getRoomsFloorNum ( ) const
inline

Get the current floor number used by room glyphs

◆ setRoomsRoomNum()

void Titanic::CPetControl::setRoomsRoomNum ( int  roomNum)
inline

Set the current room number to use for room glyphs

◆ getRoomsRoomNum()

int Titanic::CPetControl::getRoomsRoomNum ( ) const
inline

Get the current floor number used by room glyphs

◆ setRoomsWellEntry()

void Titanic::CPetControl::setRoomsWellEntry ( int  entryNum)
inline

Sets the entry number for arriving at the well

◆ getRoomsWellEntry()

int Titanic::CPetControl::getRoomsWellEntry ( ) const
inline

Gets the entry number used when last arriving at the well

◆ setRoomsSublevel()

void Titanic::CPetControl::setRoomsSublevel ( int  level)
inline

Sets the sub-level an SGT or 2nd class room is on

◆ getRoomsSublevel()

int Titanic::CPetControl::getRoomsSublevel ( ) const
inline

Gets the current sub-level for a stateroom

◆ resetRoomsHighlight()

void Titanic::CPetControl::resetRoomsHighlight ( )
inline

Reset the highlight

◆ getMailDestClass()

PassengerClass Titanic::CPetControl::getMailDestClass ( const CRoomFlags roomFlags) const

Get the passenger class of the specified room flags

◆ isSuccUBusDest()

bool Titanic::CPetControl::isSuccUBusDest ( uint  roomFlags)
inline

Returns whether the given room flags specify a location with a SuccUBus

◆ getAssignedRoomNum()

int Titanic::CPetControl::getAssignedRoomNum ( ) const
inline

Returns the room number for the player's currently assigned room

◆ getAssignedFloorNum()

int Titanic::CPetControl::getAssignedFloorNum ( ) const
inline

Returns the floor number for the player's currently assigned room

◆ getAssignedElevatorNum()

int Titanic::CPetControl::getAssignedElevatorNum ( ) const
inline

Returns the elevator number for the player's currently assigned room

◆ setRoomsElevatorBroken()

void Titanic::CPetControl::setRoomsElevatorBroken ( bool  flag)
inline

Sets the flag for whether elevator 4 has yet been fixed

◆ isFirstClassSuite()

bool Titanic::CPetControl::isFirstClassSuite ( ) const
inline

Returns true if the player is in their 1st class stateroom

◆ isSuccUBusRoom()

bool Titanic::CPetControl::isSuccUBusRoom ( const CRoomFlags roomFlags)
inline

Returns true if the passed room flags indicate the room has a succubus

◆ phonographAction()

void Titanic::CPetControl::phonographAction ( const CString action)
inline

Called with a phonograph action for Send, Receive, or Record

◆ starsSetButtons()

void Titanic::CPetControl::starsSetButtons ( int  matchIndex,
bool  isMarkerClose 
)

Sets the status buttons for the starfield control

◆ starsSetReference()

void Titanic::CPetControl::starsSetReference ( )

Sets that the user has the galactic reference material


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