summaryrefslogtreecommitdiff
path: root/inc/location.hpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-05-08 08:07:11 -0500
committertom <tom@ground-control>2015-05-08 08:07:11 -0500
commitdddcaa7e5fa044972e25e456315c5cba361fc0f5 (patch)
tree299180915292000b2d5029888eb75178b81e8053 /inc/location.hpp
parent84f94931fa790572b3ce57d72e290f0bd860c661 (diff)
parentc63d77ddddb69ef0f641d90a8c3922fdc356224c (diff)
Merge branch 'master' of https://github.com/MajorTom6/natures
Conflicts: src/list.cpp
Diffstat (limited to 'inc/location.hpp')
-rw-r--r--inc/location.hpp10
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