mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Support for command input
For starters, 'move_dir x y' command is supported.
This commit is contained in:
parent
92940b6054
commit
de6a4d656f
5 changed files with 73 additions and 3 deletions
|
@ -8,6 +8,8 @@
|
|||
|
||||
#include "map.h"
|
||||
|
||||
class agent;
|
||||
|
||||
class connection {
|
||||
public:
|
||||
int fd;
|
||||
|
@ -25,11 +27,12 @@ public:
|
|||
}
|
||||
|
||||
void senses(int tick_id, char around[4]);
|
||||
void actions(class agent *);
|
||||
|
||||
void cancel(void);
|
||||
|
||||
private:
|
||||
std::string out_buf;
|
||||
std::string out_buf, in_buf;
|
||||
pthread_mutex_t buf_lock;
|
||||
|
||||
pthread_cond_t cancel_cond;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue