From faab9e8fd3c312c7651398ce68e2e4e4fa36ac78 Mon Sep 17 00:00:00 2001 From: David Athay Date: Tue, 21 Oct 2008 13:11:10 +0000 Subject: Game Server now reconnects to Account Server. Some postal system bugs fixed. --- src/account-server/dalstorage.hpp | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) (limited to 'src/account-server/dalstorage.hpp') diff --git a/src/account-server/dalstorage.hpp b/src/account-server/dalstorage.hpp index 970f550b..f67ed264 100644 --- a/src/account-server/dalstorage.hpp +++ b/src/account-server/dalstorage.hpp @@ -33,6 +33,7 @@ class Account; class Character; class ChatChannel; class Guild; +class Letter; /** * A storage class that relies on DAL. @@ -253,20 +254,13 @@ class DALStorage */ void setQuestVar(int id, std::string const &, std::string const &); - /** - * Gets the string value of a world state variable. - * - * @param name Name of the requested world-state variable. - */ - std::string getWorldStateVar(std::string const &name); - /** * Gets the string value of a map specific world state variable. * * @param name Name of the requested world-state variable. * @param map_id Id of the specific map. */ - std::string getWorldStateVar(std::string const &name, int map_id); + std::string getWorldStateVar(std::string const &name, int map_id = -1); /** * Sets the value of a world state variable. @@ -286,6 +280,29 @@ class DALStorage void setWorldStateVar(std::string const &name, int map_id, std::string const &value); + /** + * Store post + * + * @param letter The letter to store + */ + void storePost(Letter *letter); + + /** + * Retrieve post + * + * @param playerId The id of the player requesting his post + */ + Letter* getStoredPost(int playerId); + + /** + * Add item to auction + * + * @param itemId The id of the item for auction + * @param player The player who put the item up for auction + * @param gold The amount of money to buy it + */ + void addAuctionItem(unsigned int itemId, int playerId, unsigned int gold); + private: /** * Copy constructor. -- cgit v1.2.3-60-g2f50