YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
BasicPhysicsCore.cpp
Go to the documentation of this file.
1
#include "
YAPOG/Game/World/Map/Physics/BasicPhysicsCore.hpp
"
2
3
namespace
yap
4
{
5
BasicPhysicsCore::BasicPhysicsCore
()
6
:
PhysicsCore
()
7
{
8
}
9
10
BasicPhysicsCore::~BasicPhysicsCore
()
11
{
12
}
13
14
BasicPhysicsCore::BasicPhysicsCore
(
const
BasicPhysicsCore
& copy)
15
:
PhysicsCore
(copy)
16
{
17
}
18
19
BasicPhysicsCore
*
BasicPhysicsCore::Clone
()
const
20
{
21
return
new
BasicPhysicsCore
(*
this
);
22
}
23
24
void
BasicPhysicsCore::HandleApplyForce
(
const
Vector2
& force)
25
{
26
SetVelocity
(
GetVelocity
() + force);
27
}
28
29
void
BasicPhysicsCore::ResetVelocity
(
const
Time
& dt)
30
{
31
PhysicsCore::ResetVelocity
(
Vector2
());
32
}
33
}
// namespace yap
YAPOG
src
YAPOG
Game
World
Map
Physics
BasicPhysicsCore.cpp
Generated on Mon Sep 17 2012 22:24:25 for YAPOG by
1.8.1.1