summaryrefslogtreecommitdiff
path: root/src/player.h
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.h
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.h')
-rw-r--r--src/player.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/player.h b/src/player.h
index 97ff15d9..a082a92b 100644
--- a/src/player.h
+++ b/src/player.h
@@ -43,17 +43,13 @@ class Player : public Being
/**
* Set up mName to be the character's name
*/
- virtual void
- setName(const std::string &name);
+ virtual void setName(const std::string &name);
- virtual void
- logic();
+ virtual void logic();
- virtual Type
- getType() const;
+ virtual Type getType() const;
- virtual void
- setGender(Gender gender);
+ virtual void setGender(Gender gender);
/**
* Sets the hair style and color for this player.
@@ -70,8 +66,7 @@ class Player : public Being
/**
* Sets visible equipments for this player.
*/
- virtual void
- setSprite(int slot, int id, std::string color = "");
+ virtual void setSprite(int slot, int id, std::string color = "");
/**
* Flash the player's name
@@ -79,8 +74,8 @@ class Player : public Being
void flash(int time);
protected:
- void updateCoords();
- private:
+ virtual void updateCoords();
+
FlashText *mName;
};