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:
Petr Baudis 2011-12-08 03:14:57 +01:00
parent b693b5d6f4
commit 23f2fce7ff
6 changed files with 100 additions and 9 deletions

View file

@ -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);