diff options
author | dakjos <dsojka@siu.edu> | 2015-05-07 19:53:39 -0500 |
---|---|---|
committer | dakjos <dsojka@siu.edu> | 2015-05-07 19:53:39 -0500 |
commit | c63d77ddddb69ef0f641d90a8c3922fdc356224c (patch) | |
tree | 6867ee8ee11718eca9bb144b98f17c695a891495 /inc/location.hpp | |
parent | ffcee12acf3fe3f972f322c18b3203212682205d (diff) |
Some variable names changed and many comments made so I understand what the fuck is going on
Diffstat (limited to 'inc/location.hpp')
-rw-r--r-- | inc/location.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
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 |