#include <objectstate.h>
Inheritance diagram for ObjectState:


Public Types | |
| enum | TPerceptType { PT_Default, PT_TooFar, PT_Player } |
Public Member Functions | |
| ObjectState () | |
| virtual | ~ObjectState () |
| virtual void | SetPerceptName (const std::string &name, TPerceptType pt=PT_Default) |
| set the object name for perceptors | |
| virtual void | SetPerceptName (const std::string &name, TPerceptType pt, TPerceptType pt) |
| set the object name for perceptors | |
| virtual std::string | GetPerceptName (TPerceptType pt=PT_Default) const |
| returns the object name for perceptors | |
| virtual void | SetID (const std::string &id, TPerceptType pt=PT_Default) |
| set the object id for perceptors | |
| virtual std::string | GetID (TPerceptType pt=PT_Default) const |
| returns the object id | |
| boost::shared_ptr< oxygen::Transform > | GetTransformParent () const |
Protected Types | |
| typedef std::map< TPerceptType, std::string > | TPerceptStringMap |
Protected Member Functions | |
| virtual void | OnLink () |
| This method is called, when the hierarchy object has been linked to a parent. | |
| virtual void | OnUnlink () |
| This rountine is called, before the hierarchy object is removed from the parent. | |
Protected Attributes | |
| TPerceptStringMap | mPerceptNames |
| object names | |
| TPerceptStringMap | mIDs |
| object ids | |
| boost::shared_ptr< oxygen::Transform > | mTransformParent |
| reference to the parent transform node | |
Definition at line 28 of file objectstate.h.
|
|
Definition at line 63 of file objectstate.h. |
|
|
Definition at line 31 of file objectstate.h. |
|
|
Definition at line 27 of file objectstate.cpp. |
|
|
Definition at line 31 of file objectstate.cpp. |
|
|
returns the object id
Definition at line 68 of file objectstate.cpp. References mIDs. |
|
|
returns the object name for perceptors
Definition at line 52 of file objectstate.cpp. References mPerceptNames. |
|
|
Definition at line 78 of file objectstate.cpp. References mTransformParent. |
|
|
This method is called, when the hierarchy object has been linked to a parent. At that point, traversal can commence. It can be overridden to support custom 'link' behavior. Reimplemented from zeitgeist::Leaf. Definition at line 84 of file objectstate.cpp. References SoccerBase::GetTransformParent(), mTransformParent, and zeitgeist::Leaf::OnLink(). Here is the call graph for this function: ![]() |
|
|
This rountine is called, before the hierarchy object is removed from the parent. It can be overridden to support custom 'unlink' behavior. Reimplemented from zeitgeist::Leaf. Definition at line 91 of file objectstate.cpp. References mTransformParent, and zeitgeist::Leaf::OnUnlink(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
set the object id for perceptors
Definition at line 62 of file objectstate.cpp. References mIDs. Referenced by AgentState::SetID(), and AgentState::SetUniformNumber(). |
|
||||||||||||||||
|
set the object name for perceptors
Definition at line 42 of file objectstate.cpp. References mPerceptNames. |
|
||||||||||||
|
set the object name for perceptors
Definition at line 36 of file objectstate.cpp. References mPerceptNames. |
|
|
object ids
Definition at line 73 of file objectstate.h. |
|
|
object names
Definition at line 70 of file objectstate.h. Referenced by GetPerceptName(), and SetPerceptName(). |
|
|
reference to the parent transform node
Definition at line 76 of file objectstate.h. Referenced by GetTransformParent(), OnLink(), and OnUnlink(). |
1.4.4