diff options
Diffstat (limited to 'src/game-server/buysell.hpp')
-rw-r--r-- | src/game-server/buysell.hpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/game-server/buysell.hpp b/src/game-server/buysell.hpp index dc1df16d..514200ac 100644 --- a/src/game-server/buysell.hpp +++ b/src/game-server/buysell.hpp @@ -43,13 +43,21 @@ class BuySell /** * Registers an item and indicates how many the NPC is ready to trade * and how much it will cost. + * @return true if at least one item was registered. */ - void registerItem(int id, int amount, int cost); + bool registerItem(int id, int amount, int cost); + + /** + * Registers every player's item at an average cost given by the ItemDB. + * @return the number of different soldable items. + */ + int registerPlayerItems(); /** * Sends the item list to player. + * @return true if at least one item was registered before start. */ - void start(Actor *actor); + bool start(Actor *actor); /** * Performs the trade. |