#include <ViewPoints.h>
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::ViewPoint * | getNewViewPoint (unsigned int playerId) |
| void | releaseViewPoint (ViewPoints::ViewPoint *point) |
| void | setContext (ScorchedContext *context) |
Protected Attributes | |
| std::list< ViewPoint * > | points_ |
| ScorchedContext * | context_ |
| FixedVector | lookAt_ |
| FixedVector | lookFrom_ |
| fixed | totalTime_ |
| bool | finished_ |
Classes | |
| class | ViewPoint |
Definition at line 28 of file ViewPoints.h.
| ViewPoints::ViewPoints | ( | ) |
Definition at line 27 of file ViewPoints.cpp.
| ViewPoints::~ViewPoints | ( | ) | [virtual] |
Definition at line 31 of file ViewPoints.cpp.
| 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 | |||
| ) |
| 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().
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] |
FixedVector ViewPoints::lookFrom_ [protected] |
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().
1.5.3