ShotState Class Reference

#include <ShotState.h>

List of all members.

Public Member Functions

 ShotState (ScorchedContext &context, PlayShots &playShots)
virtual ~ShotState ()
void setup ()
bool run (float frameTime)

Protected Attributes

ScorchedContextcontext_
PlayShotsplayShots_
bool firstTime_


Detailed Description

Definition at line 28 of file ShotState.h.


Constructor & Destructor Documentation

ShotState::ShotState ( ScorchedContext context,
PlayShots playShots 
)

Definition at line 36 of file ShotState.cpp.

ShotState::~ShotState (  )  [virtual]

Definition at line 43 of file ShotState.cpp.


Member Function Documentation

void ShotState::setup (  ) 

Definition at line 47 of file ShotState.cpp.

References ActionController::addLastAction(), ActionController::addSyncCheck(), ActionController::clear(), context_, firstTime_, S3D::formatStringBuffer(), ScorchedContext::getActionController(), Target::getAlive(), Target::getCStrName(), ActionController::getEvents(), fixed::getInternal(), TargetLife::getLife(), Target::getLife(), TargetState::getMovement(), ScorchedContext::getOptionsGame(), Target::getPlayerId(), TankContainer::getPlayingTanks(), Tank::getScore(), ScorchedContext::getTankContainer(), ScorchedContext::getTargetContainer(), TargetLife::getTargetPosition(), TargetContainer::getTargets(), Target::getTargetState(), TargetLife::getVelocity(), EventContainer::initialize(), Target::isTarget(), TargetID::MIN_TARGET_TRANSIENT_ID, PlayShots::playShots(), playShots_, ActionController::resetTime(), ActionController::setStopImmediately(), and TankScore::setTurnKills().

Referenced by ServerShotState::enterState(), and ClientShotState::processMessage().

bool ShotState::run ( float  frameTime  ) 

Definition at line 110 of file ShotState.cpp.

References fixed::asFloat(), EventContainer::clear(), context_, firstTime_, S3D::formatStringBuffer(), ScorchedContext::getActionController(), ActionController::getActionTime(), ActionController::getEvents(), Logger::log(), ActionController::logProfiledActions(), ActionController::noReferencedActions(), and ActionController::setStopImmediately().

Referenced by ServerShotState::acceptStateChange(), and ClientShotState::acceptStateChange().


Member Data Documentation

ScorchedContext& ShotState::context_ [protected]

Definition at line 38 of file ShotState.h.

Referenced by run(), and setup().

PlayShots& ShotState::playShots_ [protected]

Definition at line 39 of file ShotState.h.

Referenced by setup().

bool ShotState::firstTime_ [protected]

Definition at line 40 of file ShotState.h.

Referenced by run(), and setup().


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