mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Sense around: Extended format describing agents explicitly
This commit is contained in:
parent
e22c57c97f
commit
f0a603352f
4 changed files with 31 additions and 11 deletions
4
map.h
4
map.h
|
@ -16,6 +16,7 @@ public:
|
|||
|
||||
char symbol(void);
|
||||
virtual char type_symbol(void) = 0;
|
||||
char *str(void);
|
||||
|
||||
class tile &tile_in_dir(int dir_x, int dir_y);
|
||||
|
||||
|
@ -23,6 +24,9 @@ public:
|
|||
virtual void on_agent_leave(class agent &);
|
||||
|
||||
virtual void on_tick(void);
|
||||
|
||||
private:
|
||||
char str_buf[3];
|
||||
};
|
||||
|
||||
class tile_ground : public tile {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue