Introduce sun energy (on-tick gain)

This commit is contained in:
Petr Baudis 2011-11-27 02:34:28 +01:00
parent 158ab85715
commit 296f4148d3
2 changed files with 2 additions and 0 deletions

View file

@ -42,6 +42,7 @@ agent::on_action_takes(void)
void
agent::on_tick(void)
{
energy += world::sun_energy;
}
void

View file

@ -4,6 +4,7 @@
struct world {
const static int newborn_energy = 500;
const static int move_cost = 10;
const static int sun_energy = 1;
};
#endif