summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-09 21:24:13 -0700
committerIra Rice <irarice@gmail.com>2009-01-09 21:24:13 -0700
commit0dabbade690301ef89da2fb2562da8e48afc22d3 (patch)
treeaf73cc3f45c48dc0cf97b8c0fc3048f11eaaec03 /src/player.cpp
parent43630ab7969fa26cb0a3e2773e7266f2f9647867 (diff)
downloadmana-client-0dabbade690301ef89da2fb2562da8e48afc22d3.tar.gz
mana-client-0dabbade690301ef89da2fb2562da8e48afc22d3.tar.bz2
mana-client-0dabbade690301ef89da2fb2562da8e48afc22d3.tar.xz
mana-client-0dabbade690301ef89da2fb2562da8e48afc22d3.zip
Added the ability to see your own name in game.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/player.cpp b/src/player.cpp
index 47275c81..ca728bef 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -41,15 +41,11 @@ Player::Player(int id, int job, Map *map):
Being(id, job, map)
{
mName = 0;
- mIsGM = false;
}
Player::~Player()
{
- if (mName)
- {
- delete mName;
- }
+ delete mName;
}
void Player::setName(const std::string &name)
@@ -69,8 +65,7 @@ void Player::setName(const std::string &name)
}
}
-void
-Player::logic()
+void Player::logic()
{
switch (mAction) {
case STAND:
@@ -109,14 +104,12 @@ Player::logic()
Being::logic();
}
-Being::Type
-Player::getType() const
+Being::Type Player::getType() const
{
return PLAYER;
}
-void
-Player::flash(int time)
+void Player::flash(int time)
{
if (mName)
{