diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-01-04 20:28:57 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-01-04 20:28:57 +0000 |
commit | 34b19f52d2f4a0b8e7eecf0900d1760460390b9d (patch) | |
tree | 0e1ddf0575ec5780d988623daf4fc25d813fc1fd /src/net | |
parent | 180f39cb9da6e3169f95e9da5c8782c50f826af4 (diff) | |
download | mana-client-34b19f52d2f4a0b8e7eecf0900d1760460390b9d.tar.gz mana-client-34b19f52d2f4a0b8e7eecf0900d1760460390b9d.tar.bz2 mana-client-34b19f52d2f4a0b8e7eecf0900d1760460390b9d.tar.xz mana-client-34b19f52d2f4a0b8e7eecf0900d1760460390b9d.zip |
Reverted r0nny changes, enabled 3 slots to create players, smoothed player deletion.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/protocol_trade.cpp | 50 | ||||
-rw-r--r-- | src/net/protocol_trade.h | 36 |
2 files changed, 0 insertions, 86 deletions
diff --git a/src/net/protocol_trade.cpp b/src/net/protocol_trade.cpp deleted file mode 100644 index 0271567e..00000000 --- a/src/net/protocol_trade.cpp +++ /dev/null @@ -1,50 +0,0 @@ - -#include "protocol_trade.h" - -#include "../item.h" -#include "../gui/trade.h" - -#include "messageout.h" - -cancel_t cancel; -complete_t complete; - -/** Start trading with someone */ -void trade(Being&); - -void trade(int id,int amount) -{ - MessageOut outMsg; - outMsg.writeInt16(CMSG_TRADE_ITEM_ADD_REQUEST); - outMsg.writeInt16(id); - outMsg.writeInt32(amount); -}; - -/** add trading item*/ - -void trade(Item& item,int amount) -{ -trade(item.getInvIndex(),amount); -} - -/** add money to trade */ -void trade(int i){trade(0,i);}; - -/** cancel courent trade */ -void trade(cancel_t&) -{ - MessageOut outMsg; - outMsg.writeInt16(CMSG_TRADE_CANCEL_REQUEST); -}; - -void trade() -{ - MessageOut outMsg; - outMsg.writeInt16(CMSG_TRADE_OK); -}; - -void trade(complete_t&) -{ - MessageOut outMsg; - outMsg.writeInt16(CMSG_TRADE_ADD_COMPLETE); -}; diff --git a/src/net/protocol_trade.h b/src/net/protocol_trade.h deleted file mode 100644 index 42908ab2..00000000 --- a/src/net/protocol_trade.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef _TMW_PROTOCOL_HELPER_ -#define _TMW_PROTOCOL_HELPER_ - -#include "protocol.h" - - -/** - * Helper class for using <actionfunc>(cancel), to cancel stuff - */ -class cancel_t {}; -extern cancel_t cancel; - -class complete_t {}; -extern complete_t complete; - - -class Item; - -/** Start trading with someone */ -void trade(Being&); - -/** add trading item*/ -void trade(Item&,int amount); - -/** add money to trade */ -void trade(int); - -/** verify the trade */ -void trade(); - -void trade(complete_t&); - -/** cancel courent trade */ -void trade(cancel_t&); - -#endif |