Introduce pheromones

This commit is contained in:
Petr Baudis 2011-12-07 23:54:03 +01:00
parent 61cc3ef015
commit a821e72661
9 changed files with 133 additions and 1 deletions

2
map.cc
View file

@ -39,6 +39,8 @@ tile::on_tick(void)
if (tile_in_dir(-1, 0).herb_here()) { tile_in_dir(-1, 0).agent->chenergy(world::soil_energy / herbs); }
if (tile_in_dir(0, -1).herb_here()) { tile_in_dir(0, -1).agent->chenergy(world::soil_energy / herbs); }
}
pheromones.decay(world::phdecay_gamma, world::phdecay_delta);
}
bool