diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-01 08:00:55 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-01 08:00:55 -0500 |
commit | 97c701f329bf3da154c23b0529f194d4d8823287 (patch) | |
tree | e003610fa009b82eff3580a6b72407f282b19510 /src/entities.cpp | |
parent | 4df411931dd63f22258be76911e0648c3cdc3936 (diff) | |
parent | 26d71799f37bc325b6db0214268f4e72eb970ee9 (diff) |
Work on merchants and yer mum
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index afcc9ad..5e8d51c 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -150,20 +150,20 @@ Merchant::Merchant(){ //sets all of the Merchant specific traits on object creat //tex = new Texturec(1,"assets/NPC.png"); //inv = new Inventory(NPC_INV_SIZE); - inv = NULL; - + //inv = new Inventory(1); + //randDialog = rand() % RAND_DIALOG_COUNT - 1; dialogIndex = 0; } Merchant::~Merchant(){ - while(!aiFunc.empty()){ + /*while(!aiFunc.empty()){ aiFunc.pop_back(); - } + }*/ - delete inv; - delete tex; - delete[] name; + //delete inv; + //delete tex; + //delete[] name; } Structures::Structures(){ //sets the structure type @@ -458,7 +458,9 @@ void NPC::interact(){ //have the npc's interact back to the player } void Merchant::interact(){ - ui::merchantBox(name, ":Accept:Good Bye", false, "Welcome to smithy\'s. Buy your sausages here you freaking mean lording screw-face"); + ui::merchantBox(name, &bsinv, ":Accept:Good-Bye", false, "Welcome to Smithy\'s. Buy your sausages here you freaking meme lording screw-face"); + //ui::merchantBox(); + ui::waitForDialog(); } void Object::interact(void){ |