From ffcee12acf3fe3f972f322c18b3203212682205d Mon Sep 17 00:00:00 2001 From: tom Date: Thu, 7 May 2015 12:35:15 -0500 Subject: woo! detection is implemented albeit shitty --- inc/location.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'inc/location.hpp') diff --git a/inc/location.hpp b/inc/location.hpp index 2042734..6a20b4e 100644 --- a/inc/location.hpp +++ b/inc/location.hpp @@ -5,11 +5,9 @@ class Location { public: Location(){x=y=t=0;}; - Location(int x, int y, int z){}; - int getType(){return t;}; - - private: - int x; + Location(int x1, int y1, int t1){x=x1;y=y1;t=t1;}; + + int x; int y; int t; }; -- cgit v1.2.3 From c63d77ddddb69ef0f641d90a8c3922fdc356224c Mon Sep 17 00:00:00 2001 From: dakjos Date: Thu, 7 May 2015 19:53:39 -0500 Subject: Some variable names changed and many comments made so I understand what the fuck is going on --- inc/location.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'inc/location.hpp') diff --git a/inc/location.hpp b/inc/location.hpp index 6a20b4e..8bd512c 100644 --- a/inc/location.hpp +++ b/inc/location.hpp @@ -4,12 +4,12 @@ class Location { public: - Location(){x=y=t=0;}; - Location(int x1, int y1, int t1){x=x1;y=y1;t=t1;}; + Location(){x=y=type=0;}; //is this line needed? + Location(int x1, int y1, int t1){x=x1;y=y1;type=t1;}; - int x; - int y; - int t; + int x; //x-coordinate of entity + int y; //y-coordinate of entity + int type; //value associated with type of entity at location. 1: Creature, 2: Resource }; #endif -- cgit v1.2.3