Connection: Add 'move' attribute to the negotiation phase

This commit is contained in:
Petr Baudis 2011-11-27 05:07:01 +01:00
parent 9cf99e0bcd
commit 2907cb6791
4 changed files with 25 additions and 1 deletions

View file

@ -14,6 +14,10 @@ public:
class map ↦
class tile *tile;
struct {
double move;
} attr;
int energy;
bool dead;
@ -22,6 +26,7 @@ public:
{
energy = world::newborn_energy;
dead = false;
attr.move = 1.0;
};
void spawn(void);
void spawn_at(class tile &tile);