#include <physics.h>
Public Member Functions | |
Physics2D2 (Entity *ent, UnitAspectType at) | |
virtual void | init () |
virtual void | tick (double dt) |
Physics2D2 (Entity *ent, UnitAspectType at) | |
virtual void | init () |
virtual void | tick (double dt) |
Physics2D2 (Entity *ent, UnitAspectType at) | |
virtual void | init () |
virtual void | tick (double dt) |
Physics2D2 (Entity *ent, UnitAspectType at) | |
virtual void | init () |
virtual void | tick (double dt) |
Physics2D2 (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 48 of file physics.h.
FastEcslent::Physics2D2::Physics2D2 | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::Physics2D2::Physics2D2 | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::Physics2D2::Physics2D2 | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::Physics2D2::Physics2D2 | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::Physics2D2::Physics2D2 | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
void FastEcslent::Physics2D2::doHelmsman | ( | double | dt | ) | [private] |
Reimplemented from FastEcslent::Physics.
Definition at line 29 of file physics2.cpp.
References clamp(), DEBUG, FastEcslent::Entity::desiredHeading, FastEcslent::Entity::desiredSpeed, FastEcslent::UnitAspect::entity, FastEcslent::Entity::heading, FastEcslent::kInvalidFloat, FastEcslent::Entity::maxAcceleration, FastEcslent::Entity::maxRotationalSpeed, FastEcslent::Entity::maxSpeed, FastEcslent::Entity::minSpeed, FastEcslent::Entity::pos, FastEcslent::Entity::rot, FastEcslent::Entity::speed, FastEcslent::Entity::vel, and FastEcslent::Entity::yaw.
Referenced by tick().
void FastEcslent::Physics2D2::init | ( | void | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
Definition at line 19 of file physics2.cpp.
References FastEcslent::Entity::desiredHeading, FastEcslent::Entity::desiredSpeed, FastEcslent::UnitAspect::entity, FastEcslent::Entity::heading, and FastEcslent::Entity::speed.
void FastEcslent::Physics2D2::tick | ( | double | dt | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
Definition at line 63 of file physics2.cpp.
References doHelmsman().
void FastEcslent::Physics2D2::doHelmsman | ( | double | dt | ) | [private] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D2::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D2::tick | ( | double | dt | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
void FastEcslent::Physics2D2::doHelmsman | ( | double | dt | ) | [private] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D2::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D2::tick | ( | double | dt | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
void FastEcslent::Physics2D2::doHelmsman | ( | double | dt | ) | [private] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D2::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D2::tick | ( | double | dt | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
void FastEcslent::Physics2D2::doHelmsman | ( | double | dt | ) | [private] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D2::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Physics.
virtual void FastEcslent::Physics2D2::tick | ( | double | dt | ) | [virtual] |
Reimplemented from FastEcslent::Physics.