Create an agent

This commit is contained in:
Petr Baudis 2011-11-26 19:41:03 +01:00
parent a131964cc0
commit 32dc354e60
4 changed files with 29 additions and 2 deletions

View file

@ -7,6 +7,13 @@ class agent {
public:
int id;
class position *pos;
agent(int id_, class position &pos_) : id (id_), pos (&pos_)
{
put_at(pos);
};
void put_at(struct position *pos);
};
#endif