aboutsummaryrefslogtreecommitdiffstats
path: root/include/entities.h
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-02-26 08:28:48 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-02-26 08:28:48 -0500
commit4df411931dd63f22258be76911e0648c3cdc3936 (patch)
tree878df1b96322d7f9c25151f0882606df2571e57c /include/entities.h
parent0396f428411eb015f796643f9e7e38ca97f8fd42 (diff)
Merchants kinda work...
Diffstat (limited to 'include/entities.h')
-rw-r--r--include/entities.h30
1 files changed, 26 insertions, 4 deletions
diff --git a/include/entities.h b/include/entities.h
index 926eeae..6c8e658 100644
--- a/include/entities.h
+++ b/include/entities.h
@@ -22,13 +22,13 @@ enum _TYPE {
STRUCTURET,
PLAYERT,
NPCT,
+ MERCHT,
MOBT
};
enum GENDER{
MALE,
- FEMALE,
- TRANSBULLSHIT
+ FEMALE
};
enum MOB_SUB {
@@ -47,7 +47,9 @@ enum BUILD_SUB{
HOUSE4 = 4,
FOUNTAIN = 5,
LAMP_POST = 6,
- FIRE_PIT = 7
+ FIRE_PIT = 7,
+ STALL_MARKET = 70,
+ STALL_TRADER = 71
};
class World;
@@ -191,10 +193,30 @@ public:
void addAIFunc(int (*func)(NPC *),bool preload);
void clearAIFunc(void);
- void interact();
+ virtual void interact();
void wander(int);
};
+class Merchant : public NPC{
+public:
+ union BSINV{
+ struct EQUAL{
+ std::string item1;
+ std::string item2;
+ };
+
+ struct COST{
+ std::string item;
+ int price;
+ };
+ };
+ std::vector<BSINV>bsinv;
+ void interact();
+
+ Merchant();
+ ~Merchant();
+};
+
class Structures : public Entity{
public:
BUILD_SUB bsubtype;