#include <SpawnComponent.hpp>
Inheritance diagram for se_core::SpawnComponent:
Public Types | |
typedef ComponentPtr< SpawnComponent, sct_SPAWN > | Ptr |
Public Member Functions | |
SpawnComponent (Composite *owner, PosComponent *pos) | |
SpawnComponent (Composite *owner, const ComponentFactory *factory) | |
virtual | ~SpawnComponent () |
void | cleanup () |
Called by Composite. | |
Composite * | spawner () const |
Returns pointer to the spawner of a thing, or null for no spawner. | |
Composite * | spawn (const char *name, int spawnPointId, long deniedTsMask=0) |
void | incSpawnCount () |
void | decSpawnCount () |
int | spawnCount () const |
void | setSpawnPoints (int count, const ViewPoint *const *spawnPoints) |
Set the list of spawn points associated with this PosNode. | |
const ViewPoint * | spawnPoint (short id) const |
Get the reference to a spawn point. | |
bool | hasSpawnPoint (short id) const |
int | spawnPointCount () const |
void | setSpawner (Composite *spawner) |
void | resetSpawner () |
virtual void | setDead () |
Called by Composite. | |
virtual const char * | name () const |
By default returns name of composite, which returns name of composite factory. | |
Composite * | owner () |
const Composite * | owner () const |
Component type. | |
Component * | component (int type) |
const Component * | component (int type) const |
int | type () const |
const ComponentFactory * | factory () |
bool | isActive () |
bool | isDead () const |
Static Public Member Functions | |
SpawnComponent * | get (Composite &composite) |
const SpawnComponent * | get (const Composite &composite) |
SpawnComponent * | get (Component &component) |
const SpawnComponent * | get (const Component &component) |
Protected Member Functions | |
virtual void | setActive (bool state) |
Called by Composite. | |
virtual void | parentChanged (Composite *newParent, Composite *oldParent) |
Called by Composite. | |
virtual void | zoneChanged (int type, Composite *newArea, Composite *oldArea) |
Called by Composite. | |
virtual void | init () |
Called by Composite. | |
Protected Attributes | |
PosComponent * | pos_ |
Composite::RefPtr | spawner_ |
The actor who spawned this thing. | |
int | spawnCount_ |
int | spawnPointCount_ |
The number of spawn points. | |
const ViewPoint *const * | spawnPoints_ |
List of spawn points associated with this SpawnComponent. | |
int | type_ |
The type of Component. | |
Composite * | owner_ |
const ComponentFactory * | factory_ |
Friends | |
class | Composite |
|
Definition at line 35 of file SpawnComponent.hpp. |
|
Definition at line 33 of file SpawnComponent.cpp. References se_core::sct_SPAWN. |
|
Definition at line 38 of file SpawnComponent.cpp. References Assert, se_core::sct_POS, and se_core::sct_SCRIPT. |
|
Definition at line 47 of file SpawnComponent.cpp. References se_core::IoSchema::cleanup(). |
|
Called by Composite.
Reimplemented from se_core::Component. Definition at line 53 of file SpawnComponent.cpp. |
|
Definition at line 71 of file Component.hpp. References se_core::Component::component(). |
|
Definition at line 67 of file Component.hpp. References se_core::Composite::component(). Referenced by se_core::Component::component(), se_core::Component::ComponentPtr< T, type >::ComponentPtr(), se_ogre::O3dThingComponent::get(), se_ogre::O3dNodeComponent::get(), and se_ogre::O3dAreaComponent::get(). |
|
Definition at line 74 of file SpawnComponent.hpp. |
|
Definition at line 81 of file Component.hpp. Referenced by se_core::Composite::releaseComponents(). |
|
Definition at line 56 of file SpawnComponent.hpp. References se_core::Composite::component(), and se_core::Component::owner(). |
|
Definition at line 51 of file SpawnComponent.hpp. References se_core::Composite::component(), and se_core::Component::owner(). |
|
Definition at line 46 of file SpawnComponent.hpp. References se_core::Composite::component(). |
|
Definition at line 41 of file SpawnComponent.hpp. References se_core::Composite::component(). |
|
Definition at line 100 of file SpawnComponent.cpp. Referenced by se_basic::SimpleAreaThingEncoder::encode(). |
|
Definition at line 73 of file SpawnComponent.hpp. |
|
Called by Composite.
Reimplemented in se_core::RootComponent, se_core::SignalAreaComponent, se_ogre::O3dAreaComponent, and se_ogre::O3dThingComponent. Definition at line 42 of file Component.cpp. Referenced by se_core::Composite::init(). |
|
Definition at line 26 of file Component.cpp. |
|
Definition at line 31 of file Component.cpp. Referenced by se_core::Actor::affect(). |
|
By default returns name of composite, which returns name of composite factory.
Reimplemented in se_core::CutsceneAreaComponent, se_core::CutsceneComponent, se_core::CutsceneManager, se_core::CollisionAreaComponent, se_core::SignalAreaComponent, se_core::SignalComponent, se_core::SpawnAreaComponent, se_core::SpawnManager, se_core::ZoneAreaComponent, se_core::ZoneComponent, se_core::ZoneManager, se_basic::NavMeshAreaComponent, se_basic::NavMeshComponent, and se_basic::NavMeshManager. Definition at line 21 of file Component.cpp. Referenced by se_core::Area::addNeighbour(), se_core::DefaultTC::collide(), se_core::CoDefault::collide(), se_basic::Say::perform(), and se_ogre::SpeechBubble::speechEvent(). |
|
Component type.
Definition at line 62 of file Component.hpp. |
|
|
Called by Composite.
Reimplemented in se_core::AreaChildComponent, and se_core::NodeComponent. Definition at line 101 of file Component.hpp. Referenced by se_core::Composite::resetParent(), and se_core::Composite::setParent(). |
|
Definition at line 133 of file SpawnComponent.cpp. |
|
|
Called by Composite.
Reimplemented from se_core::Component. Definition at line 143 of file SpawnComponent.cpp. |
|
Definition at line 124 of file SpawnComponent.cpp. References Assert, and se_core::Composite::ref(). |
|
Set the list of spawn points associated with this PosNode.
Definition at line 91 of file SpawnComponent.cpp. References AssertFatal. |
|
Definition at line 59 of file SpawnComponent.cpp. References se_core::ViewPoint::add(), se_core::Pos::area(), Assert, AssertFatal, se_core::ViewPoint::coor_, LogWarning, se_core::ViewPoint::sub(), and se_core::Pos::world_. |
|
Definition at line 75 of file SpawnComponent.hpp. |
|
Returns pointer to the spawner of a thing, or null for no spawner. A Thing cannot (by definition) collide with an Actor that spawned it. (TODO: Can a Thing be spawned? Will not all spawned things have the ability to perform Action?) Definition at line 115 of file SpawnComponent.cpp. |
|
Get the reference to a spawn point.
Definition at line 107 of file SpawnComponent.cpp. References AssertFatal. Referenced by se_basic::SimpleAreaThingEncoder::encode(). |
|
Definition at line 90 of file SpawnComponent.hpp. Referenced by se_basic::SimpleAreaThingEncoder::encode(). |
|
Definition at line 76 of file Component.hpp. Referenced by se_core::Composite::component(). |
|
Called by Composite.
Reimplemented in se_core::AreaChildComponent, se_core::CollisionComponent, and se_core::SignalComponent. Definition at line 37 of file Component.cpp. Referenced by se_core::Composite::zoneChanged(). |
|
Definition at line 89 of file Component.hpp. |
|
Definition at line 120 of file Component.hpp. |
|
Definition at line 118 of file Component.hpp. |
|
Definition at line 100 of file SpawnComponent.hpp. |
|
Definition at line 115 of file SpawnComponent.hpp. |
|
The actor who spawned this thing. A bow shooter will for example spawn arrows when shooting. This variable is useful for making the shooter immune to shoots from his own arrows. This variable also makes it possible to maintain a spawn counter which indicates how many *living* children an actor has spawned. This enables monster spawner's to create new children whenever they fall below a certain count. Definition at line 113 of file SpawnComponent.hpp. |
|
The number of spawn points.
Definition at line 119 of file SpawnComponent.hpp. |
|
List of spawn points associated with this SpawnComponent.
Definition at line 122 of file SpawnComponent.hpp. |
|
The type of Component.
Definition at line 117 of file Component.hpp. |
Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:28 2007 by Doxygen version 1.3.9.1.