From 0dabbade690301ef89da2fb2562da8e48afc22d3 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Fri, 9 Jan 2009 21:24:13 -0700 Subject: Added the ability to see your own name in game. Signed-off-by: Ira Rice --- src/player.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src/player.cpp') 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) { -- cgit v1.2.3-60-g2f50