YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::PersistentPhysicsCore Class Reference

#include <PersistentPhysicsCore.hpp>

Inheritance diagram for yap::PersistentPhysicsCore:
Collaboration diagram for yap::PersistentPhysicsCore:

List of all members.

Public Member Functions

 PersistentPhysicsCore ()
virtual ~PersistentPhysicsCore ()
virtual PersistentPhysicsCoreClone () const
- Public Member Functions inherited from yap::PhysicsCore
virtual ~PhysicsCore ()
void ApplyForce (const Vector2 &force)
 Applies a force on the core.
void ResetForces ()
const Vector2GetMove () 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 &copy)
- Protected Member Functions inherited from yap::PhysicsCore
 PhysicsCore ()
 PhysicsCore (const PhysicsCore &copy)
const Vector2GetVelocity () 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

Detailed Description

Definition at line 9 of file PersistentPhysicsCore.hpp.


Constructor & Destructor Documentation

yap::PersistentPhysicsCore::PersistentPhysicsCore ( )

Definition at line 5 of file PersistentPhysicsCore.cpp.

Here is the caller graph for this function:

yap::PersistentPhysicsCore::~PersistentPhysicsCore ( )
virtual

Definition at line 10 of file PersistentPhysicsCore.cpp.

yap::PersistentPhysicsCore::PersistentPhysicsCore ( const PersistentPhysicsCore copy)
protected

Definition at line 14 of file PersistentPhysicsCore.cpp.


Member Function Documentation

PersistentPhysicsCore * yap::PersistentPhysicsCore::Clone ( ) const
virtual

Reimplemented from yap::PhysicsCore.

Definition at line 20 of file PersistentPhysicsCore.cpp.

Here is the call graph for this function:

yap::PersistentPhysicsCore::DISALLOW_ASSIGN ( PersistentPhysicsCore  )
private
void yap::PersistentPhysicsCore::HandleApplyForce ( const Vector2 force)
privatevirtual

Implements yap::PhysicsCore.

Definition at line 25 of file PersistentPhysicsCore.cpp.

Here is the call graph for this function:

void yap::PersistentPhysicsCore::ResetVelocity ( const Time dt)
privatevirtual

Implements yap::PhysicsCore.

Definition at line 30 of file PersistentPhysicsCore.cpp.


The documentation for this class was generated from the following files: