From 7da85e52c1a0015213c0e905d7dbc5631a0b0904 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 28 Mar 2009 18:57:44 -0400 Subject: Declare postRequest in Player as well --- sigencore/Player.cpp | 25 +++++++++++++++---------- sigencore/Player.h | 11 +++++++++-- 2 files changed, 24 insertions(+), 12 deletions(-) (limited to 'sigencore') diff --git a/sigencore/Player.cpp b/sigencore/Player.cpp index a5113ab9..a32ea123 100644 --- a/sigencore/Player.cpp +++ b/sigencore/Player.cpp @@ -41,16 +41,6 @@ Player::~Player() { } -bool Player::enterWorld(Overworld* world) -{ - return Client::enterWorld(world); -} - -void Player::exitWorld() -{ - Client::exitWorld(); -} - bool Player::enterArena(Arena* arena) { m_active.clear(); @@ -80,6 +70,21 @@ void Player::exitArena() Client::exitArena(); } +bool Player::enterWorld(Overworld* world) +{ + return Client::enterWorld(world); +} + +void Player::exitWorld() +{ + Client::exitWorld(); +} + +void Player::postRequest(const int type, const QVariantList& arguments) +{ + Client::postRequest(type, arguments); +} + int Player::itemWeightTotal(const bool distinct) const { QList items = m_items.keys(); diff --git a/sigencore/Player.h b/sigencore/Player.h index 3ae9de78..a1ff72ca 100644 --- a/sigencore/Player.h +++ b/sigencore/Player.h @@ -39,8 +39,13 @@ class Team; class SIGENCORE_EXPORT Player : public Client { Q_OBJECT + Q_ENUMS(PlayerRequestType) public: + enum PlayerRequestType + { + }; + Player(Sigscript::GameWrapper* game, Sigscript::Config* parent); virtual ~Player(); @@ -61,11 +66,13 @@ class SIGENCORE_EXPORT Player : public Client Q_SCRIPTABLE int money() const; public slots: + virtual bool enterArena(Arena* arena); + virtual void exitArena(); + virtual bool enterWorld(Overworld* world); virtual void exitWorld(); - virtual bool enterArena(Arena* arena); - virtual void exitArena(); + virtual void postRequest(const int type, const QVariantList& arguments); int giveItems(Sigscript::ItemWrapper* item, const int count, const bool allOrNothing = true); -- cgit