![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <PersistentPhysicsCore.hpp>
Public Member Functions | |
| PersistentPhysicsCore () | |
| virtual | ~PersistentPhysicsCore () |
| virtual PersistentPhysicsCore * | 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 | |
| PersistentPhysicsCore (const PersistentPhysicsCore ©) | |
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 (PersistentPhysicsCore) | |
| 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 PersistentPhysicsCore.hpp.
| yap::PersistentPhysicsCore::PersistentPhysicsCore | ( | ) |
|
virtual |
Definition at line 10 of file PersistentPhysicsCore.cpp.
|
protected |
Definition at line 14 of file PersistentPhysicsCore.cpp.
|
virtual |
Reimplemented from yap::PhysicsCore.
Definition at line 20 of file PersistentPhysicsCore.cpp.
|
private |
|
privatevirtual |
Implements yap::PhysicsCore.
Definition at line 25 of file PersistentPhysicsCore.cpp.
|
privatevirtual |
Implements yap::PhysicsCore.
Definition at line 30 of file PersistentPhysicsCore.cpp.