mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Support for (read-only) TCP connection agent communication
This commit is contained in:
parent
a72882a743
commit
6b3a51139a
5 changed files with 75 additions and 12 deletions
5
agent.h
5
agent.h
|
@ -3,12 +3,15 @@
|
|||
|
||||
#include "map.h"
|
||||
|
||||
class connection;
|
||||
|
||||
class agent {
|
||||
public:
|
||||
int id;
|
||||
class tile *tile;
|
||||
class connection &conn;
|
||||
|
||||
agent(int id_, class tile &tile_) : id (id_), tile (&tile_)
|
||||
agent(int id_, class tile &tile_, class connection &conn_) : id (id_), tile (&tile_), conn (conn_)
|
||||
{
|
||||
put_at(tile_);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue