ScummVM API documentation
Titanic::CTreeItem Class Reference
Inheritance diagram for Titanic::CTreeItem:
Titanic::CMessageTarget Titanic::CSaveableObject Titanic::CFileItem Titanic::CGameObjectDescItem Titanic::CNamedItem Titanic::CDontSaveFileItem Titanic::CProjectItem Titanic::CGameObject Titanic::CLinkItem Titanic::CNodeItem Titanic::CPlaceHolderItem Titanic::CRoomItem Titanic::CViewItem

Public Member Functions

void dump (int indent)
 
virtual CString dumpItem (int indent) const
 
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 const CString getName () const
 
virtual bool isEquals (const CString &name, bool startsWith=false) const
 
virtual int compareTo (const CString &name, int maxLen=0) const
 
virtual const CMovieClipListgetMovieClips () const
 
virtual bool connectsTo (CViewItem *destView) const
 
virtual void draw (CScreenManager *screenManager)
 
virtual Rect getBounds () const
 
virtual void freeSurface ()
 
CTreeItemgetParent () const
 
CProjectItemgetRoot () const
 
CTreeItemgetNextSibling () const
 
CTreeItemgetPriorSibling () const
 
CTreeItemgetLastSibling ()
 
CTreeItemgetFirstChild () const
 
CTreeItemgetLastChild () const
 
CTreeItemscan (CTreeItem *item) const
 
CTreeItemfindChildInstanceOf (ClassDef *classDef) const
 
CTreeItemfindNextInstanceOf (ClassDef *classDef, CTreeItem *startItem) const
 
void addUnder (CTreeItem *newParent)
 
void setParent (CTreeItem *newParent)
 
void addSibling (CTreeItem *item)
 
void moveUnder (CTreeItem *newParent)
 
void destroyAll ()
 
int destroyChildren ()
 
void detach ()
 
void attach (CTreeItem *item)
 
CNamedItemfindByName (const CString &name, bool subMatch=false)
 
- Public Member Functions inherited from Titanic::CSaveableObject
virtual ClassDefgetType () const
 
bool isInstanceOf (const ClassDef *classDef) const
 
virtual void saveHeader (SimpleFile *file, int indent)
 
virtual void saveFooter (SimpleFile *file, int indent)
 

Public Attributes

 CLASSDEF
 
- Public Attributes inherited from Titanic::CMessageTarget
 CLASSDEF
 

Additional Inherited Members

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

Member Function Documentation

◆ dump()

void Titanic::CTreeItem::dump ( int  indent)

Dump the item and any of it's children

◆ dumpItem()

virtual CString Titanic::CTreeItem::dumpItem ( int  indent) const
virtual

Dump the item

Reimplemented in Titanic::CNamedItem.

◆ save()

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

Save the data for the class to file

Reimplemented from Titanic::CMessageTarget.

Reimplemented in Titanic::CPetControl, Titanic::CSuccUBus, Titanic::CBarbot, Titanic::CParrot, Titanic::CArboretumGate, Titanic::CBedhead, Titanic::CViewItem, 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::CPlaceHolderItem, 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::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::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::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::CTreeItem::load ( SimpleFile file)
overridevirtual

Load the data for the class from file

Reimplemented from Titanic::CMessageTarget.

Reimplemented in Titanic::CPetControl, Titanic::CSuccUBus, Titanic::CBarbot, Titanic::CParrot, Titanic::CArboretumGate, Titanic::CBedhead, Titanic::CViewItem, 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::CPlaceHolderItem, 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::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::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::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.

◆ getGameManager()

virtual CGameManager* Titanic::CTreeItem::getGameManager ( ) const
virtual

Get the game manager for the project

Reimplemented in Titanic::CProjectItem.

◆ isFileItem()

virtual bool Titanic::CTreeItem::isFileItem ( ) const
virtual

Returns true if the item is a file item

Reimplemented in Titanic::CFileItem, and Titanic::CDontSaveFileItem.

◆ isRoomItem()

virtual bool Titanic::CTreeItem::isRoomItem ( ) const
virtual

Returns true if the item is a room item

◆ isNodeItem()

virtual bool Titanic::CTreeItem::isNodeItem ( ) const
virtual

Returns true if the item is a node item

◆ isViewItem()

virtual bool Titanic::CTreeItem::isViewItem ( ) const
virtual

Returns true if the item is a view item

◆ isLinkItem()

virtual bool Titanic::CTreeItem::isLinkItem ( ) const
virtual

Returns true if the item is a link item

◆ isPlaceHolderItem()

virtual bool Titanic::CTreeItem::isPlaceHolderItem ( ) const
virtual

Returns true if the item is a placeholder item

◆ isNamedItem()

virtual bool Titanic::CTreeItem::isNamedItem ( ) const
virtual

Returns true if the item is a named item

◆ isGameObject()

virtual bool Titanic::CTreeItem::isGameObject ( ) const
virtual

Returns true if the item is a game object

◆ isGameObjectDescItem()

virtual bool Titanic::CTreeItem::isGameObjectDescItem ( ) const
virtual

Returns true if the item is a game object desc item

◆ getName()

virtual const CString Titanic::CTreeItem::getName ( ) const
inlinevirtual

Gets the name of the item, if any

Reimplemented in Titanic::CNamedItem, and Titanic::CGameObjectDescItem.

◆ isEquals()

virtual bool Titanic::CTreeItem::isEquals ( const CString name,
bool  startsWith = false 
) const
inlinevirtual

Returns true if the item's name matches a passed name

Reimplemented in Titanic::CNamedItem.

◆ compareTo()

virtual int Titanic::CTreeItem::compareTo ( const CString name,
int  maxLen = 0 
) const
inlinevirtual

Compares the name of the item to a passed name

◆ getMovieClips()

virtual const CMovieClipList* Titanic::CTreeItem::getMovieClips ( ) const
inlinevirtual

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

Reimplemented in Titanic::CGameObject.

◆ connectsTo()

virtual bool Titanic::CTreeItem::connectsTo ( CViewItem destView) const
inlinevirtual

Returns true if the given item connects to another specified view

Reimplemented in Titanic::CLinkItem.

◆ draw()

virtual void Titanic::CTreeItem::draw ( CScreenManager screenManager)
inlinevirtual

Allows the item to draw itself

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

◆ getBounds()

virtual Rect Titanic::CTreeItem::getBounds ( ) const
inlinevirtual

Gets the bounds occupied by the item

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

◆ freeSurface()

virtual void Titanic::CTreeItem::freeSurface ( )
inlinevirtual

Free up any surface the object used

Reimplemented in Titanic::CGameObject.

◆ getParent()

CTreeItem* Titanic::CTreeItem::getParent ( ) const
inline

Get the parent for the given item

◆ getRoot()

CProjectItem* Titanic::CTreeItem::getRoot ( ) const

Jumps up through the parents to find the root item

◆ getNextSibling()

CTreeItem* Titanic::CTreeItem::getNextSibling ( ) const
inline

Get the next sibling

◆ getPriorSibling()

CTreeItem* Titanic::CTreeItem::getPriorSibling ( ) const
inline

Get the prior sibling

◆ getLastSibling()

CTreeItem* Titanic::CTreeItem::getLastSibling ( )

Get the last sibling of this sibling

◆ getFirstChild()

CTreeItem* Titanic::CTreeItem::getFirstChild ( ) const
inline

Get the first child of the item, if any

◆ getLastChild()

CTreeItem* Titanic::CTreeItem::getLastChild ( ) const

Get the last child of the item, if any

◆ scan()

CTreeItem* Titanic::CTreeItem::scan ( CTreeItem item) const

Given all the recursive children of the tree item, gives the next item in sequence to the passed starting item

◆ findChildInstanceOf()

CTreeItem* Titanic::CTreeItem::findChildInstanceOf ( ClassDef classDef) const

Find the first child item that is of a given type

◆ findNextInstanceOf()

CTreeItem* Titanic::CTreeItem::findNextInstanceOf ( ClassDef classDef,
CTreeItem startItem 
) const

Find the next sibling item that is of the given type

◆ addUnder()

void Titanic::CTreeItem::addUnder ( CTreeItem newParent)

Adds the item under another tree item

◆ setParent()

void Titanic::CTreeItem::setParent ( CTreeItem newParent)

Sets the parent for the item

◆ addSibling()

void Titanic::CTreeItem::addSibling ( CTreeItem item)

Adds the item as a sibling of another item

◆ moveUnder()

void Titanic::CTreeItem::moveUnder ( CTreeItem newParent)

Moves the tree item to be under another parent

◆ destroyAll()

void Titanic::CTreeItem::destroyAll ( )

Destroys both the item as well as any of it's children

◆ destroyChildren()

int Titanic::CTreeItem::destroyChildren ( )

Destroys all child tree items under this one.

Returns
Total number of tree items recursively removed

◆ detach()

void Titanic::CTreeItem::detach ( )

Detach the tree item from any other associated tree items

◆ attach()

void Titanic::CTreeItem::attach ( CTreeItem item)

Attaches a tree item to a new node

◆ findByName()

CNamedItem* Titanic::CTreeItem::findByName ( const CString name,
bool  subMatch = false 
)

Finds a tree item by name

Parameters
nameName to find
subMatchIf false, does an exact name match. If false, matches any item that starts with the given name

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