mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Create an agent
This commit is contained in:
parent
a131964cc0
commit
32dc354e60
4 changed files with 29 additions and 2 deletions
7
agent.h
7
agent.h
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue