From 0d8508aa2464e1e7e4aacd8f11ec90fc62dd5504 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Wed, 2 Mar 2016 10:11:54 -0500 Subject: Clyne is gay --- include/entities.h | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/entities.h b/include/entities.h index 545f0a4..a1723ee 100644 --- a/include/entities.h +++ b/include/entities.h @@ -55,19 +55,35 @@ enum BUILD_SUB{ class BuySell{ public: int member; + // 0 = Buy/Sell + // 1 = Trade union{ struct{ - std::string item1; - std::string item2; + std::string item; + std::string itemt; }trade; struct{ - enum type{BUY,SELL}; + int type; + // 0 = buy + // 1 = sell std::string item; int price; }cost; }; - BuySell(){} + BuySell(int typ, std::string itm, int prc){ + this->cost.type = typ; + this->cost.item = itm; + this->cost.price = prc; + this->member = 0; + } + BuySell(std::string itm, std::string itmt){ + this->trade.item = itm; + this->trade.itemt = itmt; + this->member = 1; + } ~BuySell(){} + BuySell(const BuySell&){} + BuySell(){} }; class World; -- cgit v1.2.3