#include <physics.h>
Public Member Functions | |
Physics2D1 (Entity *ent, UnitAspectType at) | |
virtual void | init () |
virtual void | tick (double dt) |
Physics2D1 (Entity *ent, UnitAspectType at) | |
virtual void | init () |
virtual void | tick (double dt) |
Physics2D1 (Entity *ent, UnitAspectType at) | |
virtual void | init () |
virtual void | tick (double dt) |
Physics2D1 (Entity *ent, UnitAspectType at) | |
virtual void | init () |
virtual void | tick (double dt) |
Physics2D1 (Entity *ent, UnitAspectType at) | |
virtual void | init () |
virtual void | tick (double dt) |
Private Member Functions | |
void | doHelmsman (double dt) |
void | doHelmsman (double dt) |
void | doHelmsman (double dt) |
void | doHelmsman (double dt) |
void | doHelmsman (double dt) |
Definition at line 36 of file physics.h.
FastEcslent::Physics2D1::Physics2D1 | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::Physics2D1::Physics2D1 | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::Physics2D1::Physics2D1 | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::Physics2D1::Physics2D1 | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::Physics2D1::Physics2D1 | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
void FastEcslent::Physics2D1::doHelmsman | ( | double | dt | ) | [private] |
Reimplemented from FastEcslent::Physics.
Definition at line 21 of file physics1.cpp.
References FastEcslent::Physics::angleDiff, clamp(), FastEcslent::Physics::cosYaw, DEBUG, FastEcslent::Entity::desiredHeading, FastEcslent::Entity::desiredSpeed, FastEcslent::Physics::dHeading, differenceBetweenAngles(), FastEcslent::UnitAspect::entity, FastEcslent::Entity::heading, FastEcslent::kInvalidFloat, FastEcslent::Entity::maxAcceleration, FastEcslent::Entity::maxRotationalSpeed, FastEcslent::Entity::pos, FastEcslent::Physics::sinYaw, FastEcslent::Entity::speed, FastEcslent::Physics::timeScaledAcceleration, FastEcslent::Physics::timeScaledRotationalSpeed, and FastEcslent::Entity::vel.
Referenced by tick().
void FastEcslent::Physics2D1::init | ( | void | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
Definition at line 16 of file physics1.cpp.
References FastEcslent::Entity::desiredHeading, FastEcslent::Entity::desiredSpeed, FastEcslent::UnitAspect::entity, FastEcslent::Entity::heading, and FastEcslent::Entity::speed.
void FastEcslent::Physics2D1::tick | ( | double | dt | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
Definition at line 46 of file physics1.cpp.
References doHelmsman().
void FastEcslent::Physics2D1::doHelmsman | ( | double | dt | ) | [private] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D1::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D1::tick | ( | double | dt | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
void FastEcslent::Physics2D1::doHelmsman | ( | double | dt | ) | [private] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D1::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D1::tick | ( | double | dt | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
void FastEcslent::Physics2D1::doHelmsman | ( | double | dt | ) | [private] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D1::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D1::tick | ( | double | dt | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
void FastEcslent::Physics2D1::doHelmsman | ( | double | dt | ) | [private] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D1::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D1::tick | ( | double | dt | ) | [virtual] |
Reimplemented from FastEcslent::Physics.