summaryrefslogtreecommitdiff
path: root/src/npc.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-08-16 18:25:55 +0200
committerPhilipp Sehmisch <crush@themanaworld.org>2009-08-16 18:25:55 +0200
commit4263962e947b4914de8d1750f21cc7cc82567b4d (patch)
tree32340098913c302fdb33f88ffea65fb36920db75 /src/npc.h
parentdd0844b6ac01293e7afd0dd85e695b8d77b8e4be (diff)
parent7e2673a3b9460fdcd646e23c3bd9039de854565f (diff)
downloadmana-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.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/npc.h b/src/npc.h
index fc6f3459..46e48184 100644
--- a/src/npc.h
+++ b/src/npc.h
@@ -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;