ViewPoints Class Reference

#include <ViewPoints.h>

List of all members.

Public Member Functions

 ViewPoints ()
virtual ~ViewPoints ()
void reset ()
void explosion (unsigned int playerId)
void simulate (fixed frameTime)
void getValues (FixedVector &lookAt, FixedVector &lookFrom)
void setValues (FixedVector &lookAt, FixedVector &lookFrom)
int getLookAtCount ()
ViewPoints::ViewPointgetNewViewPoint (unsigned int playerId)
void releaseViewPoint (ViewPoints::ViewPoint *point)
void setContext (ScorchedContext *context)

Protected Attributes

std::list< ViewPoint * > points_
ScorchedContextcontext_
FixedVector lookAt_
FixedVector lookFrom_
fixed totalTime_
bool finished_

Classes

class  ViewPoint


Detailed Description

Definition at line 28 of file ViewPoints.h.


Constructor & Destructor Documentation

ViewPoints::ViewPoints (  ) 

Definition at line 27 of file ViewPoints.cpp.

ViewPoints::~ViewPoints (  )  [virtual]

Definition at line 31 of file ViewPoints.cpp.


Member Function Documentation

void ViewPoints::reset (  )  [inline]

Definition at line 54 of file ViewPoints.h.

References finished_.

Referenced by ClientShotState::processMessage().

void ViewPoints::explosion ( unsigned int  playerId  ) 

Definition at line 128 of file ViewPoints.cpp.

References context_, finished_, TankContainer::getCurrentPlayerId(), ScorchedContext::getOptionsGame(), ScorchedContext::getServerMode(), ScorchedContext::getTankContainer(), and OptionsGame::TurnSimultaneous.

Referenced by Explosion::init().

void ViewPoints::simulate ( fixed  frameTime  ) 

Definition at line 49 of file ViewPoints.cpp.

References getLookAtCount(), lookAt_, lookFrom_, MAX, MIN, points_, FixedVector::StoreNormalize(), and FixedVector::zero().

Referenced by MainCamera::simulate().

void ViewPoints::getValues ( FixedVector lookAt,
FixedVector lookFrom 
)

Definition at line 35 of file ViewPoints.cpp.

References lookAt_, and lookFrom_.

Referenced by ShotBounce::init().

void ViewPoints::setValues ( FixedVector lookAt,
FixedVector lookFrom 
)

Definition at line 42 of file ViewPoints.cpp.

References lookAt_, and lookFrom_.

int ViewPoints::getLookAtCount (  ) 

Definition at line 106 of file ViewPoints.cpp.

References finished_, and points_.

Referenced by simulate().

ViewPoints::ViewPoint * ViewPoints::getNewViewPoint ( unsigned int  playerId  ) 

Definition at line 112 of file ViewPoints.cpp.

References context_, TankContainer::getCurrentPlayerId(), ScorchedContext::getOptionsGame(), ScorchedContext::getServerMode(), ScorchedContext::getTankContainer(), points_, and OptionsGame::TurnSimultaneous.

Referenced by Teleport::init(), TankMovement::init(), ShotProjectile::init(), and ShotBounce::init().

void ViewPoints::releaseViewPoint ( ViewPoints::ViewPoint point  ) 

Definition at line 141 of file ViewPoints.cpp.

References points_.

Referenced by ShotBounce::~ShotBounce(), ShotProjectile::~ShotProjectile(), TankMovement::~TankMovement(), and Teleport::~Teleport().

void ViewPoints::setContext ( ScorchedContext context  )  [inline]

Definition at line 67 of file ViewPoints.h.

References context_.

Referenced by ScorchedContext::ScorchedContext().


Member Data Documentation

std::list<ViewPoint *> ViewPoints::points_ [protected]

Definition at line 70 of file ViewPoints.h.

Referenced by getLookAtCount(), getNewViewPoint(), releaseViewPoint(), and simulate().

ScorchedContext* ViewPoints::context_ [protected]

Definition at line 71 of file ViewPoints.h.

Referenced by explosion(), getNewViewPoint(), and setContext().

FixedVector ViewPoints::lookAt_ [protected]

Definition at line 72 of file ViewPoints.h.

Referenced by getValues(), setValues(), and simulate().

FixedVector ViewPoints::lookFrom_ [protected]

Definition at line 72 of file ViewPoints.h.

Referenced by getValues(), setValues(), and simulate().

fixed ViewPoints::totalTime_ [protected]

Definition at line 73 of file ViewPoints.h.

bool ViewPoints::finished_ [protected]

Definition at line 74 of file ViewPoints.h.

Referenced by explosion(), getLookAtCount(), and reset().


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