mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 09:53:38 +02:00
Evolve herbs dynamically based on energy
This commit is contained in:
parent
4d697adc83
commit
0e1243f86f
7 changed files with 83 additions and 19 deletions
4
agent.h
4
agent.h
|
@ -42,7 +42,7 @@ public:
|
|||
void die(void);
|
||||
|
||||
void on_action_takes(void);
|
||||
void on_tick(void);
|
||||
virtual void on_tick(void);
|
||||
void on_senses_update(void);
|
||||
|
||||
~agent();
|
||||
|
@ -58,6 +58,8 @@ public:
|
|||
attr.attack = 0;
|
||||
attr.defense = 0;
|
||||
}
|
||||
|
||||
void on_tick(void);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue