aboutsummaryrefslogtreecommitdiffstats
path: root/include/entities.h
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-03-02 10:11:54 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-03-02 10:11:54 -0500
commit0d8508aa2464e1e7e4aacd8f11ec90fc62dd5504 (patch)
treed599069d66dc45e60f13303c27c12f440a9c2d54 /include/entities.h
parentd42b81661ac1d1303746082b3606e80e92f5fdd6 (diff)
Clyne is gay
Diffstat (limited to 'include/entities.h')
-rw-r--r--include/entities.h24
1 files changed, 20 insertions, 4 deletions
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;