#include <Composite.hpp>
Public Types | |
typedef RefPtr< Composite > | RefPtr |
typedef Composite * | id_type |
Public Member Functions | |
Composite (const CompositeFactory *factory) | |
Composite (const CompositeFactory *factory, const char *name) | |
virtual | ~Composite () |
RefPtr & | ref () |
const char * | name () const |
int | type () const |
id_type | id () const |
void | init (bool doTraverseChildren=true) |
void | cleanup (bool doTraverseChildren=true) |
Component * | component (int type) |
const Component * | component (int type) const |
const CompositeFactory * | factory () |
void | setFactory (const CompositeFactory *f) |
bool | hasParent () const |
Does the composite have a parent? | |
Composite * | parent () |
Get parent. | |
void | setParent (Composite &p) |
Set the parent composite. | |
void | resetParent () |
Set parent composite to none. | |
const CompositeList & | children () const |
List of child composites. | |
void | setActive (bool state, bool doTraverseChildren=true) |
Set composite state to active. | |
bool | isActive () const |
Is the composite active. | |
void | setTag (int t) |
int | tag () const |
virtual void | scheduleForDestruction () |
Schedule the Composite for destruction. | |
bool | isDead () const |
Returns true if Thing is scheduled for destruction. | |
void | zoneChanged (int type, Composite *newZone, Composite *oldZone) |
Called during flip is area is changed from pos to nextPos. | |
void | releaseComponents () |
Destroy components. | |
Protected Types | |
enum | { FAST_COMPONENT_COUNT = 16 } |
Protected Member Functions | |
void | addChild (Composite &node) |
Add a Composite as a child. | |
void | removeChild (Composite &node) |
Add a Composite as a child. | |
Protected Attributes | |
const char * | name_ |
const CompositeFactory * | factory_ |
int | tag_ |
bool | isActive_ |
bool | isDead_ |
ComponentList | components_ |
Composite * | parent_ |
CompositeList | children_ |
Component * | fastComponents_ [16] |
RefPtr | ptr_ |
Reference counted pointer. | |
Friends | |
class | Component |
|
Definition at line 35 of file Composite.hpp. Referenced by se_core::AreaManager::areaById(), and id(). |
|
Definition at line 34 of file Composite.hpp. Referenced by ref(). |
|
Definition at line 156 of file Composite.hpp. |
|
Definition at line 10 of file Composite.cpp. |
|
Definition at line 22 of file Composite.cpp. |
|
Definition at line 33 of file Composite.cpp. |
|
Add a Composite as a child. Called by the childs setParent. Definition at line 146 of file Composite.cpp. Referenced by setParent(). |
|
List of child composites.
Definition at line 82 of file Composite.hpp. Referenced by se_basic::SimpleAreaThingEncoder::encode(), and se_core::CompositeList::TreeIterator::next(). |
|
|
Definition at line 100 of file Composite.cpp. References se_core::ComponentList::Iterator::hasNext(), se_core::ComponentList::Iterator::next(), and se_core::Component::type(). |
|
|
Definition at line 54 of file Composite.hpp. Referenced by se_core::SpawnManager::performDestructions(), se_core::AreaManager::resetAll(), and se_ogre::O3dManager::updateStats(). |
|
Does the composite have a parent?
Definition at line 60 of file Composite.hpp. Referenced by se_core::CompSchema::inactiveRoot(). |
|
Definition at line 46 of file Composite.hpp. References id_type. Referenced by se_core::HealthListeners::add(), se_core::HealthListeners::castHealthChangedEvent(), and se_ogre::ThingMO::hasThing(). |
|
Definition at line 206 of file Composite.cpp. References se_core::CompositeList::Iterator::hasNext(), se_core::ComponentList::Iterator::hasNext(), se_core::Component::init(), se_core::CompositeList::Iterator::next(), and se_core::ComponentList::Iterator::next(). Referenced by se_core::SimEngine::initGame(). |
|
Is the composite active.
Definition at line 95 of file Composite.hpp. |
|
Returns true if Thing is scheduled for destruction.
Definition at line 113 of file Composite.hpp. Referenced by se_core::DefaultTC::_pop(), se_core::CoDefault::_pop(), and se_core::CollisionComponent::isCollideable(). |
|
|
Get parent.
Definition at line 65 of file Composite.hpp. |
|
Definition at line 41 of file Composite.hpp. References RefPtr. Referenced by se_core::StatComponent::setItem(), se_core::SpawnComponent::setSpawner(), and se_core::StatComponent::setTarget(). |
|
Destroy components. Called by factory or destructor. Definition at line 114 of file Composite.cpp. References se_core::Component::factory(), se_core::ComponentList::Iterator::hasNext(), se_core::ComponentList::Iterator::next(), and se_core::ComponentFactory::release(). |
|
Add a Composite as a child. Called by the childs setParent. Definition at line 152 of file Composite.cpp. |
|
Set parent composite to none.
Definition at line 158 of file Composite.cpp. References se_core::ComponentList::Iterator::hasNext(), se_core::ComponentList::Iterator::next(), and se_core::Component::parentChanged(). |
|
Schedule the Composite for destruction. The destruction will be delayed one or two AI steps before it is actually destroyed, to make sure that any reference to and Action upon the Thing in the world has a chance to be resolved first. Definition at line 250 of file Composite.cpp. References se_core::ComponentList::Iterator::hasNext(), se_core::ComponentList::Iterator::next(), and se_core::Component::setDead(). Referenced by se_basic::PhTrackingCamera::affect(), se_core::DefaultTC::popAndDie(), se_core::CoDefault::popAndDie(), se_core::Area::reset(), and se_core::Actor::scheduleForDestruction(). |
|
Set composite state to active. Typically used for paging in active game zones. Definition at line 51 of file Composite.cpp. References se_core::ComponentList::Iterator::hasNext(), se_core::CompositeList::Iterator::hasNext(), se_core::ComponentList::Iterator::next(), se_core::CompositeList::Iterator::next(), and se_core::Component::setActive(). Referenced by se_core::SimEngine::go(), and se_core::SimEngine::perform(). |
|
Definition at line 55 of file Composite.hpp. Referenced by se_core::AreaManager::createArea(). |
|
Set the parent composite.
Definition at line 175 of file Composite.cpp. References addChild(), se_core::ComponentList::Iterator::hasNext(), se_core::ComponentList::Iterator::next(), and se_core::Component::parentChanged(). Referenced by se_core::AreaManager::setActive(), se_core::AreaManager::setInactive(), and se_core::SpawnAreaComponent::spawn(). |
|
Definition at line 97 of file Composite.hpp. Referenced by se_basic::SimpleActorFactory::create(). |
|
Definition at line 98 of file Composite.hpp. |
|
Definition at line 45 of file Composite.cpp. |
|
Called during flip is area is changed from pos to nextPos.
Definition at line 196 of file Composite.cpp. References se_core::ComponentList::Iterator::hasNext(), se_core::ComponentList::Iterator::next(), and se_core::Component::zoneChanged(). Referenced by se_core::PosComponent::flip(). |
|
Definition at line 126 of file Composite.hpp. |
|
Definition at line 155 of file Composite.hpp. |
|
Definition at line 152 of file Composite.hpp. |
|
Definition at line 147 of file Composite.hpp. |
|
Definition at line 157 of file Composite.hpp. |
|
Definition at line 149 of file Composite.hpp. |
|
Definition at line 150 of file Composite.hpp. |
|
Definition at line 146 of file Composite.hpp. |
|
Definition at line 154 of file Composite.hpp. |
|
Reference counted pointer.
Definition at line 163 of file Composite.hpp. |
|
Definition at line 148 of file Composite.hpp. |
Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:23 2007 by Doxygen version 1.3.9.1.