Spawn some herbs at startup

This commit is contained in:
Petr Baudis 2011-11-27 05:26:44 +01:00
parent b80ccfdffd
commit 4d697adc83
4 changed files with 27 additions and 0 deletions

12
agent.h
View file

@ -48,4 +48,16 @@ public:
~agent();
};
class herb : public agent {
public:
herb(int id_, class map &map_)
: agent(id_, NULL, map_)
{
energy = world::herb_energy;
attr.move = 0;
attr.attack = 0;
attr.defense = 0;
}
};
#endif