Action Class Reference

#include <Action.h>

Inheritance diagram for Action:

ActionReferenced PhysicsParticle SpriteAction AddTarget CallbackWeapon CameraPositionAction CheckResurrection Explosion Laser Lightning Napalm Resurrection ShieldHit SkyFlash SoundAction TankDamage TankFired TankMovement TankResign TankSay Teleport PhysicsParticleReferenced

List of all members.

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 ScorchedContextgetScorchedContext ()
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_
ActionRendererrenderer_
ScorchedContextcontext_
fixed actionStartTime_
unsigned int actionNumber_
bool actionEvent_


Detailed Description

Definition at line 42 of file Action.h.


Constructor & Destructor Documentation

Action::Action ( const char *  name,
ActionRenderer render = 0 
)

Definition at line 23 of file Action.cpp.

Action::~Action (  )  [virtual]

Definition at line 30 of file Action.cpp.

References renderer_.


Member Function Documentation

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]

Definition at line 64 of file Action.h.

References actionNumber_.

void Action::setActionNumber ( unsigned int  number  )  [inline]

Definition at line 65 of file Action.h.

References actionNumber_.

Referenced by ActionController::addAction().


Member Data Documentation

const char* Action::name_ [protected]

Definition at line 68 of file Action.h.

Referenced by getActionType().

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]

Definition at line 72 of file Action.h.

Referenced by getActionNumber(), and setActionNumber().

bool Action::actionEvent_ [protected]

Definition at line 73 of file Action.h.

Referenced by getActionEvent(), and setActionEvent().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:00 2009 for Scorched3D by  doxygen 1.5.3