mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Support for breeding
One party initiates the breeding; the other party exerts most of the energy if its breeding key matches. It is that party's responsibility to set up the newborn agent's connection (but the father can pass it an arbitrary message). Newborn is spawned immediately but can be renegotiated on first connect.
This commit is contained in:
parent
b693b5d6f4
commit
23f2fce7ff
6 changed files with 100 additions and 9 deletions
|
@ -28,6 +28,7 @@ public:
|
|||
}
|
||||
|
||||
void senses(int tick_id, class agent &);
|
||||
void bred(int agent_id, std::string &info);
|
||||
void actions(class agent *);
|
||||
|
||||
void cancel(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue