projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
permission hook working correctly, good bye temp file
[physics.git]
/
src
/
Entities
/
Entity.cpp
diff --git
a/src/Entities/Entity.cpp
b/src/Entities/Entity.cpp
index
d652e2d
..
e3b3869
100644
(file)
--- a/
src/Entities/Entity.cpp
+++ b/
src/Entities/Entity.cpp
@@
-1,11
+1,11
@@
#include "Entity.h"
#include "Entity.h"
+
#include "../Vector2.h"
#include "../Vector2.h"
-#include <iostream>
-/// *****
Public Class Method
s *****
+/// *****
Constructors/Destructor
s *****
-Entity::Entity(
Vector2
pos)
+Entity::Entity(
const Vector2&
pos)
: position(pos), velocity(0,0)
{
: position(pos), velocity(0,0)
{
@@
-14,3
+14,15
@@
Entity::~Entity()
{
}
{
}
+
+/// ***** Public Class Methods *****
+
+const Vector2& Entity::positionRaw() const
+{
+ return position;
+}
+const Vector2& Entity::velocityRaw() const
+{
+ return velocity;
+}
+