![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <BasicPhysicsCore.hpp>
Public Member Functions | |
| BasicPhysicsCore () | |
| virtual | ~BasicPhysicsCore () |
| virtual BasicPhysicsCore * | Clone () const |
Public Member Functions inherited from yap::PhysicsCore | |
| virtual | ~PhysicsCore () |
| void | ApplyForce (const Vector2 &force) |
| Applies a force on the core. | |
| void | ResetForces () |
| const Vector2 & | GetMove () const |
| Gets the resulting move of this PhysicsCore from the applied forces on it. | |
| void | SetVelocityBounds (const Vector2 &min, const Vector2 &max) |
| Stores min and max bounds for the velocity of this PhysicsCore. | |
| void | RawSetVelocity (const Vector2 &velocity) |
| Forces the value of velocity for this PhysicsCore. To use to synchronize velocity from server to client. | |
| virtual void | Update (const Time &dt) |
| Makes the object evolve for one frame of the game. | |
Public Member Functions inherited from yap::IUpdateable | |
| virtual | ~IUpdateable () |
Public Member Functions inherited from yap::ICloneable | |
| virtual | ~ICloneable () |
Protected Member Functions | |
| BasicPhysicsCore (const BasicPhysicsCore ©) | |
Protected Member Functions inherited from yap::PhysicsCore | |
| PhysicsCore () | |
| PhysicsCore (const PhysicsCore ©) | |
| const Vector2 & | GetVelocity () const |
| void | SetVelocity (const Vector2 &velocity) |
| void | ResetVelocity (const Vector2 &velocity) |
| Reset velocity value with velocity. To use in ResetVelocity (const Time&). Does not call OnVelocityChanged event. | |
Private Member Functions | |
| DISALLOW_ASSIGN (BasicPhysicsCore) | |
| virtual void | HandleApplyForce (const Vector2 &force) |
| virtual void | ResetVelocity (const Time &dt) |
Additional Inherited Members | |
Public Attributes inherited from yap::PhysicsCore | |
| Event< const PhysicsCore &, const EmptyEventArgs & > | OnStopped |
| Event< const PhysicsCore &, const EmptyEventArgs & > | OnMoved |
| Event< const PhysicsCore &, const ChangeEventArgs < const Vector2 & > & > | OnVelocityChanged |
Definition at line 9 of file BasicPhysicsCore.hpp.
| yap::BasicPhysicsCore::BasicPhysicsCore | ( | ) |
|
virtual |
Definition at line 10 of file BasicPhysicsCore.cpp.
|
protected |
Definition at line 14 of file BasicPhysicsCore.cpp.
|
virtual |
Reimplemented from yap::PhysicsCore.
Definition at line 19 of file BasicPhysicsCore.cpp.
|
private |
|
privatevirtual |
Implements yap::PhysicsCore.
Definition at line 24 of file BasicPhysicsCore.cpp.
|
privatevirtual |
Implements yap::PhysicsCore.
Definition at line 29 of file BasicPhysicsCore.cpp.