@@ -232,6 +232,7 @@ following property names are reserved and must not be used for custom properties
232
232
* "direction"
233
233
* "master"
234
234
* "collision"
235
+ * "slaves"
235
236
236
237
Custom state properties cannot have empty strings as their values. Setting a custom state property
237
238
to an empty string deletes it from the state.
@@ -246,7 +247,7 @@ These are the opcodes valid for commands sent by the server to a plug-in's contr
246
247
Only one opcode will be present per control function invocation.
247
248
248
249
249
- ### Welcome(name=String,apocalypse=int,round=int)
250
+ ### Welcome(name=String,apocalypse=int,round=int,maxslaves=int )
250
251
251
252
"Welcome" is the first command sent by the server to a plug-in before any other invocations of
252
253
the control function.
@@ -262,9 +263,11 @@ Parameters:
262
263
* ` round ` : the index of the round for which the control function was instantiated.
263
264
A game server continually runs rounds of the game, and the round index is
264
265
incremented each time.
266
+ * ` maxslaves ` : the number of slave bots that a user can have alive at any one time. If a call
267
+ to ` Spawn ` is made when this number of user bots exist, then the request will be
268
+ denied.
265
269
266
-
267
- ### React(generation=int,name=string,time=int,view=string,energy=string,master=int: int ,collision=int: int ,...)
270
+ ### React(generation=int,name=string,time=int,view=string,energy=string,master=int: int ,collision=int: int ,slaves=int,...)
268
271
269
272
"React" is invoked by the server once for each entity for each step in which the entity is
270
273
allowed to move (mini-bots every cycle, bots every second cycle - see the * Game Rules* for
@@ -296,6 +299,7 @@ Parameters:
296
299
collision with another entity occurred, this parameter is set to the direction of the
297
300
failed move, e.g. "1:-1" if a move right and up could not be executed. If no collision
298
301
occurred, this property is not defined.
302
+ * ` slaves ` the number of slave bots that the user currently has alive as at the current ` time ` .
299
303
300
304
In addition to these system-generated parameters, the server passes in all state parameters of
301
305
the entity that were set by the player via ` Spawn() ` or ` Set() ` (see below). If, for example,
0 commit comments