mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Connection: Add 'move' attribute to the negotiation phase
This commit is contained in:
parent
9cf99e0bcd
commit
2907cb6791
4 changed files with 25 additions and 1 deletions
5
agent.h
5
agent.h
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue