mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 09:53:38 +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
9
agent.cc
9
agent.cc
|
@ -28,6 +28,15 @@ agent::move_dir(int dir_x, int dir_y)
|
|||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
agent::on_action_takes(void)
|
||||
{
|
||||
if (!conn)
|
||||
return;
|
||||
|
||||
conn->actions(this);
|
||||
}
|
||||
|
||||
void
|
||||
agent::on_tick(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue