Get rid of class position

This commit is contained in:
Petr Baudis 2011-11-26 20:40:05 +01:00
parent f622f79283
commit 56726a6c05
5 changed files with 40 additions and 43 deletions

View file

@ -6,10 +6,9 @@
#include "map.h"
void
agent::put_at(struct position *pos)
agent::put_at(class tile &t)
{
class tile *t = &pos->map->tile_at(*pos);
if (!t->on_agent_enter(this)) {
if (!t.on_agent_enter(*this)) {
std::cerr << "Collision.";
exit(EXIT_FAILURE);
}