#include <Action.h>

Public Member Functions | |
| Action (const char *name, ActionRenderer *render=0) | |
| virtual | ~Action () |
| virtual void | init ()=0 |
| virtual void | draw () |
| virtual void | simulate (fixed frameTime, bool &removeAction) |
| virtual void | setActionRender (ActionRenderer *renderer) |
| virtual void | setScorchedContext (ScorchedContext *context) |
| virtual ScorchedContext * | getScorchedContext () |
| virtual bool | getReferenced () |
| virtual std::string | getActionType () |
| virtual std::string | getActionDetails () |
| void | setActionStartTime (fixed time) |
| fixed | getActionStartTime () |
| bool | getActionEvent () |
| void | setActionEvent (bool ae) |
| unsigned int | getActionNumber () |
| void | setActionNumber (unsigned int number) |
Protected Attributes | |
| const char * | name_ |
| ActionRenderer * | renderer_ |
| ScorchedContext * | context_ |
| fixed | actionStartTime_ |
| unsigned int | actionNumber_ |
| bool | actionEvent_ |
Definition at line 42 of file Action.h.
| Action::Action | ( | const char * | name, | |
| ActionRenderer * | render = 0 | |||
| ) |
Definition at line 23 of file Action.cpp.
| Action::~Action | ( | ) | [virtual] |
| virtual void Action::init | ( | ) | [pure virtual] |
Implemented in AddTarget, CallbackWeapon, CameraPositionAction, CheckResurrection, Explosion, Laser, Lightning, Napalm, Resurrection, ShieldHit, ShotBounce, ShotProjectile, SkyFlash, SoundAction, TankDamage, TankFalling, TankFired, TankMovement, TankResign, TankSay, Teleport, and SpriteAction.
Referenced by ActionController::addNewActions().
| void Action::draw | ( | ) | [virtual] |
Reimplemented in Laser, Lightning, ShieldHit, and ShotBounce.
Definition at line 36 of file Action.cpp.
References ActionRenderer::draw(), and renderer_.
Referenced by ActionController::draw().
| void Action::simulate | ( | fixed | frameTime, | |
| bool & | removeAction | |||
| ) | [virtual] |
Reimplemented in AddTarget, CallbackWeapon, CameraPositionAction, CheckResurrection, Explosion, Laser, Lightning, Napalm, Resurrection, ShieldHit, ShotBounce, ShotProjectile, SkyFlash, SoundAction, TankDamage, TankFalling, TankFired, TankMovement, TankResign, TankSay, Teleport, and PhysicsParticle.
Definition at line 57 of file Action.cpp.
References fixed::asFloat(), renderer_, and ActionRenderer::simulate().
Referenced by PhysicsParticle::simulate(), Teleport::simulate(), TankSay::simulate(), TankResign::simulate(), TankMovement::simulate(), TankFired::simulate(), TankDamage::simulate(), SoundAction::simulate(), SkyFlash::simulate(), ShieldHit::simulate(), Resurrection::simulate(), Napalm::simulate(), Lightning::simulate(), Laser::simulate(), Explosion::simulate(), CheckResurrection::simulate(), CameraPositionAction::simulate(), CallbackWeapon::simulate(), AddTarget::simulate(), and ActionController::stepActions().
| void Action::setActionRender | ( | ActionRenderer * | renderer | ) | [virtual] |
Definition at line 41 of file Action.cpp.
References renderer_.
Referenced by ShotProjectile::init().
| void Action::setScorchedContext | ( | ScorchedContext * | context | ) | [virtual] |
Definition at line 47 of file Action.cpp.
References context_.
Referenced by ActionController::addAction(), and ActionController::addNewActions().
| ScorchedContext * Action::getScorchedContext | ( | ) | [virtual] |
Definition at line 52 of file Action.cpp.
References context_.
Referenced by MissileActionRenderer::draw(), and CameraPositionActionRegistry::getCurrentBest().
| virtual bool Action::getReferenced | ( | ) | [inline, virtual] |
Reimplemented in ActionReferenced, and PhysicsParticleReferenced.
Definition at line 56 of file Action.h.
Referenced by ActionController::addAction(), ActionController::addNewActions(), ActionController::allEvents(), ActionController::clear(), and ActionController::stepActions().
| virtual std::string Action::getActionType | ( | ) | [inline, virtual] |
Definition at line 57 of file Action.h.
References name_.
Referenced by ActionController::addAction(), ActionController::clear(), ActionController::logActions(), and ActionController::stepActions().
| virtual std::string Action::getActionDetails | ( | ) | [inline, virtual] |
Reimplemented in AddTarget, CallbackWeapon, Explosion, Laser, Lightning, Napalm, ShotBounce, ShotProjectile, SoundAction, TankDamage, TankFalling, TankFired, TankMovement, TankResign, and Teleport.
Definition at line 58 of file Action.h.
Referenced by ActionController::addAction(), and ActionController::stepActions().
| void Action::setActionStartTime | ( | fixed | time | ) | [inline] |
Definition at line 60 of file Action.h.
References actionStartTime_.
Referenced by ActionController::addAction(), and ActionController::addNewActions().
| fixed Action::getActionStartTime | ( | ) | [inline] |
Definition at line 61 of file Action.h.
References actionStartTime_.
Referenced by ActionController::stepActions().
| bool Action::getActionEvent | ( | ) | [inline] |
Definition at line 62 of file Action.h.
References actionEvent_.
Referenced by ActionController::allEvents().
| void Action::setActionEvent | ( | bool | ae | ) | [inline] |
Definition at line 63 of file Action.h.
References actionEvent_.
Referenced by ActionController::addAction().
| unsigned int Action::getActionNumber | ( | ) | [inline] |
| void Action::setActionNumber | ( | unsigned int | number | ) | [inline] |
Definition at line 65 of file Action.h.
References actionNumber_.
Referenced by ActionController::addAction().
const char* Action::name_ [protected] |
ActionRenderer* Action::renderer_ [protected] |
Definition at line 69 of file Action.h.
Referenced by draw(), setActionRender(), simulate(), and ~Action().
ScorchedContext* Action::context_ [protected] |
Definition at line 70 of file Action.h.
Referenced by TankDamage::calculateDamage(), TankDamage::calculateDeath(), TankFalling::collision(), ShotProjectile::collision(), Lightning::damageTargets(), Lightning::dispaceDirection(), ShotProjectile::doCollision(), ShotBounce::doCollision(), ShotBounce::draw(), ShieldHit::draw(), Lightning::draw(), Laser::draw(), Lightning::generateLightning(), Napalm::getHeight(), getScorchedContext(), Teleport::init(), TankSay::init(), TankMovement::init(), TankFalling::init(), TankDamage::init(), ShotProjectile::init(), ShotBounce::init(), Napalm::init(), Lightning::init(), Explosion::init(), CameraPositionAction::init(), TankDamage::logDeath(), TankMovement::moveTank(), PhysicsParticle::setPhysics(), setScorchedContext(), Teleport::simulate(), TankResign::simulate(), TankFired::simulate(), TankFalling::simulate(), SoundAction::simulate(), SkyFlash::simulate(), ShotProjectile::simulate(), ShotBounce::simulate(), ShieldHit::simulate(), Resurrection::simulate(), Napalm::simulate(), Lightning::simulate(), Laser::simulate(), Explosion::simulate(), CheckResurrection::simulate(), CallbackWeapon::simulate(), AddTarget::simulate(), Napalm::simulateAddEdge(), Napalm::simulateDamage(), Napalm::simulateRmStep(), TankMovement::simulationMove(), CameraPositionAction::~CameraPositionAction(), ShotBounce::~ShotBounce(), ShotProjectile::~ShotProjectile(), TankFalling::~TankFalling(), TankMovement::~TankMovement(), and Teleport::~Teleport().
fixed Action::actionStartTime_ [protected] |
Definition at line 71 of file Action.h.
Referenced by getActionStartTime(), and setActionStartTime().
unsigned int Action::actionNumber_ [protected] |
bool Action::actionEvent_ [protected] |
1.5.3