diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-08-16 18:25:55 +0200 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-08-16 18:25:55 +0200 |
commit | 4263962e947b4914de8d1750f21cc7cc82567b4d (patch) | |
tree | 32340098913c302fdb33f88ffea65fb36920db75 /src/npc.h | |
parent | dd0844b6ac01293e7afd0dd85e695b8d77b8e4be (diff) | |
parent | 7e2673a3b9460fdcd646e23c3bd9039de854565f (diff) | |
download | mana-4263962e947b4914de8d1750f21cc7cc82567b4d.tar.gz mana-4263962e947b4914de8d1750f21cc7cc82567b4d.tar.bz2 mana-4263962e947b4914de8d1750f21cc7cc82567b4d.tar.xz mana-4263962e947b4914de8d1750f21cc7cc82567b4d.zip |
More merges and conflict resolves
Diffstat (limited to 'src/npc.h')
-rw-r--r-- | src/npc.h | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -32,16 +32,15 @@ class NPC : public Player public: NPC(int id, int job, Map *map); - ~NPC(); - void setName(const std::string &name); - void setGender(Gender gender); - void setSprite(int slot, int id, std::string color); - virtual Type getType() const; + virtual Type getType() const { return Being::NPC; } void talk(); + void setSprite(unsigned int slot, int id, + const std::string &color = ""); + /** * Gets the way an NPC is blocked by other things on the map */ @@ -61,10 +60,8 @@ class NPC : public Player virtual Map::BlockType getBlockType() const { return Map::BLOCKTYPE_CHARACTER; } //blocks like a player character - void updateCoords(); - - private: - Text *mName; + // Colors don't change for NPCs + virtual void updateColors() {} }; extern int current_npc; |