#include <PhCirclingCamera.hpp>
Inheritance diagram for se_basic::PhCirclingCamera:
Public Member Functions | |
PhCirclingCamera () | |
void | calcNext (const se_core::PhysicsComponent &physics, const se_core::Pos &pos, se_core::Pos &nextPos, const se_core::Move &move, se_core::Move &nextMove) const |
void | affect (se_core::PhysicsComponent &physics) const |
virtual void | calcNext (const PhysicsComponent &physics, const Pos &pos, Pos &nextPos, const Move &move, Move &nextMove) const =0 |
Calculate the next position of the actor. | |
virtual void | affect (PhysicsComponent &physics) const =0 |
State changes to actor as a result of its position should happen inside affect. | |
virtual bool | isStacker () const |
Should return false if the physics state should be popped before any is pushed on top of it. | |
int | id () const |
Get the Object id of the object. | |
virtual const char * | name () const |
Get the name of the Object. | |
int | type () const |
Get the type of the Object (got_ACTION, got_THING, etc). | |
Static Public Member Functions | |
const Physics * | lookup (const char *name) |
int | hash (int type, const char *name) |
Calculate hash (object id) given object type and name. | |
Static Protected Member Functions | |
const Object * | _lookup (int hash) |
const Object * | _lookup (int type, const char *name) |
|
Definition at line 11 of file PhCirclingCamera.hpp. |
|
Definition at line 102 of file Object.hpp. |
|
Definition at line 56 of file Object.cpp. References se_core::ObjectRepository::get(), and se_core::CompSchema::objectRepository(). Referenced by se_core::Signal::lookup(), se_core::Script::lookup(), se_core::QuestGoal::lookup(), se_core::Cutscene::lookup(), se_core::ThingCollide::lookup(), se_core::Physics::lookup(), se_core::Ambience::lookup(), and se_core::Action::lookup(). |
|
State changes to actor as a result of its position should happen inside affect. These can include health reductions as a result of standing on a firepit, etc. Changes that happen because of moving into a new terrain type should be handled by terrainMode switcher, though. |
|
Definition at line 101 of file PhCirclingCamera.cpp. |
|
Calculate the next position of the actor. The pos and nextPos parameter values will usually be the ones returned by actor.pos() and actor.nextPos(). But they are explicit parameters to enable movement prediction. No state changes other than those that applies to nextPos should happen in calcNext, because the results of this method should be reversible on collision, and be usable for prediction. It is the responsibility of this method to check for collisions with static terrain.
Referenced by se_core::PhysicsComponent::calcNextCoor(). |
|
|
Calculate hash (object id) given object type and name.
Definition at line 42 of file Object.cpp. |
|
Get the Object id of the object. Each instance of Object has a unique Object id assigned to it during construction. The id_ is a hash of the name. And will be the same every time the game is run. Sometimes two different names can give the same hash, and id. When this occurs the name of the object must be changed.
Definition at line 69 of file Object.hpp. Referenced by se_core::ObjectRepository::add(), se_core::operator<<(), and se_core::ObjectRepository::remove(). |
|
Should return false if the physics state should be popped before any is pushed on top of it.
Definition at line 92 of file Physics.hpp. |
|
Definition at line 37 of file Physics.hpp. References se_core::Object::_lookup(), and se_core::got_PHYSICS. |
|
Get the name of the Object.
Definition at line 78 of file Object.hpp. Referenced by se_core::operator<<(), se_core::CutsceneParser::parse(), and se_basic::Say::perform(). |
|
Get the type of the Object (got_ACTION, got_THING, etc). Classes subclassing game objects should have a type enumerated in the enum ObjectType. The subclass is itself responsible for reporting the type during construction, and a whole subclass hierarchy may share the same type (like Action and its subclasses, Script and its subclasses, etc).
Definition at line 91 of file Object.hpp. Referenced by se_core::operator<<(). |
Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:22 2007 by Doxygen version 1.3.9.1.