summaryrefslogtreecommitdiff
path: root/inc/location.hpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2016-05-02 16:21:23 -0500
committertom <tom@ground-control>2016-05-02 16:21:23 -0500
commit084d556f831832c1ca15d1e7cd52944815d9beea (patch)
tree675973a47691c06f19bd27a742c4888c02d66863 /inc/location.hpp
parent42d7b3bb511333e242a74f360873deb64cd89522 (diff)
implemented the location fully into entity
Diffstat (limited to 'inc/location.hpp')
-rw-r--r--inc/location.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/location.hpp b/inc/location.hpp
index 9f50863..0e3ee23 100644
--- a/inc/location.hpp
+++ b/inc/location.hpp
@@ -5,8 +5,9 @@ class Location
{
public:
Location(int x1, int y1, int t1){x=x1;y=y1;type=t1;};
- int x; //x-coordinate of entity
- int y; //y-coordinate of entity
+ Location(){x=y=type=0;};
+ int x;
+ int y;
int type; //value associated with type of entity at location. 1: Creature, 2: Resource
};