ScummVM API documentation
Ultima::Shared::NamedItem Class Reference

#include <named_item.h>

Inheritance diagram for Ultima::Shared::NamedItem:
Ultima::Shared::TreeItem Ultima::Shared::MessageTarget Ultima::Shared::BaseObject Ultima::Shared::Gfx::VisualItem Ultima::Shared::Spell Ultima::Shared::Gfx::Popup Ultima::Shared::Gfx::VisualContainer Ultima::Shared::Info Ultima::Shared::ViewportDungeon Ultima::Shared::ViewportMap Ultima::Ultima1::U1Gfx::Status Ultima::Ultima1::U1Gfx::ViewCharacterGeneration Ultima::Ultima1::U1Gfx::ViewTitle Ultima::Ultima1::Spells::Spell

Public Member Functions

 NamedItem (const Common::String &name)
 
const Common::String getName () const override
 
- Public Member Functions inherited from Ultima::Shared::TreeItem
virtual bool isEquals (const Common::String &name, int maxLen=0) const
 
virtual int compareTo (const Common::String &name, int maxLen=0) const
 
virtual void viewChange ()
 
TreeItemgetParent () const
 
GamegetGame ()
 
const GamegetGame () const
 
Gfx::VisualItemgetView ()
 
TreeItemgetNextSibling () const
 
TreeItemgetPriorSibling () const
 
TreeItemgetLastSibling ()
 
TreeItemgetFirstChild () const
 
TreeItemgetLastChild () const
 
TreeItemscan (TreeItem *item) const
 
TreeItemfindChildInstanceOf (const ClassDef &classDef) const
 
TreeItemfindNextInstanceOf (const ClassDef &classDef, TreeItem *startItem) const
 
void addUnder (TreeItem *newParent)
 
void addChild (TreeItem *child)
 
void setParent (TreeItem *newParent)
 
void addSibling (TreeItem *item)
 
void moveUnder (TreeItem *newParent)
 
void destroyAll ()
 
int destroyChildren ()
 
void detach ()
 
void attach (TreeItem *item)
 
NamedItemfindByName (const Common::String &name)
 
- Public Member Functions inherited from Ultima::Shared::BaseObject
virtual ::Ultima::Shared::ClassDef getType () const
 
bool isInstanceOf (const ClassDef &classDef) const
 

Public Attributes

Common::String _name
 
 CLASSDEF
 
- Public Attributes inherited from Ultima::Shared::TreeItem
 CLASSDEF
 
- Public Attributes inherited from Ultima::Shared::MessageTarget
 CLASSDEF
 

Additional Inherited Members

- Static Public Member Functions inherited from Ultima::Shared::BaseObject
::Ultima::Shared::ClassDef type ()
 
- Protected Member Functions inherited from Ultima::Shared::MessageTarget
virtual const Ultima::Shared::MSGMAPgetMessageMap () const
 
- Static Protected Member Functions inherited from Ultima::Shared::MessageTarget
static const Ultima::Shared::MSGMAPgetThisMessageMap ()
 

Detailed Description

Derived tree item class that adds a name that can be used to direct messages to later

Member Function Documentation

◆ getName()

const Common::String Ultima::Shared::NamedItem::getName ( ) const
inlineoverridevirtual

Gets the name of the item, if any

Reimplemented from Ultima::Shared::TreeItem.


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