aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/common.h2
-rw-r--r--include/entities.h8
-rw-r--r--include/world.h7
3 files changed, 16 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 93735fa..bfd9db6 100644
--- a/include/common.h
+++ b/include/common.h
@@ -36,7 +36,7 @@ typedef unsigned int uint;
* This flag lets the compiler know that we are using shaders
*/
-#define SHADERSd
+#define SHADERSs
/*
* Create a basic 2-point structure for coordinate saving
diff --git a/include/entities.h b/include/entities.h
index 53efc63..b590c8d 100644
--- a/include/entities.h
+++ b/include/entities.h
@@ -15,6 +15,7 @@
#define NPC_INV_SIZE 3 // Size of an NPC's inventory
enum _TYPE { //these are the main types of entities
+ OBJECTT = -2,
STRUCTURET = -1,
PLAYERT,
NPCT,
@@ -106,6 +107,13 @@ public:
void wander(int);
};
+class Object : public Entity{
+public:
+ Object(int);
+ void interact();
+private:
+ int ID;
+};
#endif // ENTITIES_H
/**
diff --git a/include/world.h b/include/world.h
index fffdb9d..437f138 100644
--- a/include/world.h
+++ b/include/world.h
@@ -76,10 +76,17 @@ public:
std::vector<Structures *> build;
std::vector<Mob *> mob;
std::vector<Entity *> entity;
+ std::vector<Object *> object;
+ //template<class T>
+ //void getEntityLocation(std::vector<T*>&, unsigned int);
+
void addStructure(_TYPE t,float x,float y,World *outside,World *inside);
void addMob(int t,float x,float y);
void addNPC(float x,float y);
+ void addObject(int, float, float);
+
+ //void removeObjet(Object);
void update(Player *p,unsigned int delta);