summaryrefslogtreecommitdiff
path: root/src/gui/windows/whoisonline.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-10 18:06:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-10 18:06:39 +0300
commitb939ab9402d0f8bc4cac933b4ec118f0d9e901a9 (patch)
tree575edac18d0535612bfa2dc35994d29cf64b9a2b /src/gui/windows/whoisonline.h
parent33d1477fb7cf090e5af1860d2ab2ad763400d866 (diff)
downloadManaVerse-b939ab9402d0f8bc4cac933b4ec118f0d9e901a9.tar.gz
ManaVerse-b939ab9402d0f8bc4cac933b4ec118f0d9e901a9.tar.bz2
ManaVerse-b939ab9402d0f8bc4cac933b4ec118f0d9e901a9.tar.xz
ManaVerse-b939ab9402d0f8bc4cac933b4ec118f0d9e901a9.zip
Remove duplicate code from whoisonline.
Diffstat (limited to 'src/gui/windows/whoisonline.h')
-rw-r--r--src/gui/windows/whoisonline.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/windows/whoisonline.h b/src/gui/windows/whoisonline.h
index bc04c8066..271bf6ffd 100644
--- a/src/gui/windows/whoisonline.h
+++ b/src/gui/windows/whoisonline.h
@@ -162,6 +162,8 @@ private:
void updateSize();
+ void handlerPlayerRelation(const std::string &nick,
+ OnlinePlayer *const player);
/**
* The thread function that download the files.
*/
@@ -178,11 +180,7 @@ private:
const std::string &restrict color)
const A_WARN_UNUSED;
- void updateWindow(std::vector<OnlinePlayer*> &restrict friends,
- std::vector<OnlinePlayer*> &restrict neutral,
- std::vector<OnlinePlayer*> &restrict disregard,
- std::vector<OnlinePlayer*> &restrict enemy,
- size_t numOnline);
+ void updateWindow(size_t numOnline);
enum DownloadStatus
{
@@ -216,6 +214,10 @@ private:
std::set<std::string> mOnlineNicks;
Button *mUpdateButton;
+ std::vector<OnlinePlayer*> mFriends;
+ std::vector<OnlinePlayer*> mNeutral;
+ std::vector<OnlinePlayer*> mDisregard;
+ std::vector<OnlinePlayer*> mEnemy;
bool mAllowUpdate;
bool mShowLevel;
bool mUpdateOnlineList;