summaryrefslogtreecommitdiff
path: root/src/game-server/trade.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/trade.h')
-rw-r--r--src/game-server/trade.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game-server/trade.h b/src/game-server/trade.h
index 3e5fb3a3..be527e86 100644
--- a/src/game-server/trade.h
+++ b/src/game-server/trade.h
@@ -23,7 +23,7 @@
#include <vector>
-class Character;
+class Being;
class Inventory;
class Trade
@@ -34,7 +34,7 @@ class Trade
* Sets up a trade between two characters.
* Asks for an acknowledgment from the second one.
*/
- Trade(Character *, Character *);
+ Trade(Being *, Being *);
/**
* Cancels a trade by a given character (optional).
@@ -49,27 +49,27 @@ class Trade
* otherwise.
* @return true if the current trade keeps going.
*/
- bool request(Character *, int);
+ bool request(Being *, int);
/**
* Confirm the trade.
*/
- void confirm(Character *);
+ void confirm(Being *);
/*
* Agree to complete the trade
*/
- void agree(Character *c);
+ void agree(Being *c);
/**
* Adds some items to the trade.
*/
- void addItem(Character *, int slot, int amount);
+ void addItem(Being *, int slot, int amount);
/**
* Adds some money to the trade.
*/
- void setMoney(Character *, int amount);
+ void setMoney(Being *, int amount);
private:
@@ -98,7 +98,7 @@ class Trade
static bool perform(TradedItems items, Inventory &inv1, Inventory &inv2);
- Character *mChar1, *mChar2; /**< Characters involved. */
+ Being *mChar1, *mChar2; /**< Characters involved. */
TradedItems mItems1, mItems2; /**< Traded items. */
int mMoney1, mMoney2; /**< Traded money. */
TradeState mState; /**< State of transaction. */