summaryrefslogtreecommitdiff
path: root/src/avatar.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-08 14:40:04 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-08 14:43:51 -0700
commit8a31e96d8534d402db9cd48183c0b15732f7d95e (patch)
tree885d83febf301c1289c3bf7f83bf9dca89e0347c /src/avatar.h
parentbc5c031e43eff506c925682349dd2a52b89d6565 (diff)
downloadmana-client-8a31e96d8534d402db9cd48183c0b15732f7d95e.tar.gz
mana-client-8a31e96d8534d402db9cd48183c0b15732f7d95e.tar.bz2
mana-client-8a31e96d8534d402db9cd48183c0b15732f7d95e.tar.xz
mana-client-8a31e96d8534d402db9cd48183c0b15732f7d95e.zip
Merge PartyWindow and GuildWindow into SocialWindow
Diffstat (limited to 'src/avatar.h')
-rw-r--r--src/avatar.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/avatar.h b/src/avatar.h
new file mode 100644
index 00000000..8c0e935a
--- /dev/null
+++ b/src/avatar.h
@@ -0,0 +1,72 @@
+/*
+ * The Mana World
+ * Copyright (C) 2008-2010 The Mana World Development Team
+ *
+ * This file is part of The Mana World.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef AVATAR_H
+#define AVATAR_H
+
+#include <string>
+
+class Avatar
+{
+public:
+ Avatar(const std::string &name = "");
+
+ /**
+ * Returns the avatar's name.
+ */
+ std::string getName() const { return mName; }
+
+ /**
+ * Set the avatar's name.
+ */
+ void setName(const std::string &name) { mName = name; }
+
+ /**
+ * Returns the avatar's online status.
+ */
+ bool getOnline() const { return mOnline; }
+
+ /**
+ * Set the avatar's online status.
+ */
+ void setOnline(bool online) { mOnline = online; }
+
+ int getHp() const { return mHp; }
+
+ void setHp(int hp) { mHp = hp; }
+
+ int getMaxHp() const { return mMaxHp; }
+
+ void setMaxHp(int maxHp) { mMaxHp = maxHp; }
+
+ bool getDisplayBold() const { return mDisplayBold; }
+
+ void setDisplayBold(bool displayBold) { mDisplayBold = displayBold; }
+
+private:
+ std::string mName;
+ int mHp;
+ int mMaxHp;
+ bool mOnline;
+ bool mDisplayBold;
+};
+
+#endif // AVATAR_H