map::on_tick(): Move to map.cc

This commit is contained in:
Petr Baudis 2011-11-27 00:36:07 +01:00
parent ba9d51fda0
commit ea4f18b642
2 changed files with 8 additions and 5 deletions

7
map.cc
View file

@ -47,6 +47,13 @@ tile::tile_in_dir(int dir_x, int dir_y)
}
void
map::on_tick(void)
{
for (int i = 0; i < w * h; i++)
tiles[i]->on_tick();
}
void
map::print_map(void)
{