+def cmd_SEED(game, seed):
+ game.rand.prngod_seed = seed
+cmd_SEED.argtypes = 'int:nonneg'
+
+def cmd_MAP_SIZE(game, size):
+ game.map_size = size
+cmd_MAP_SIZE.argtypes = 'yx_tuple:pos'
+
+def cmd_MAP(game, map_pos, awakeness):
+ """Ensure (possibly empty/'?'-filled) map at position map_pos.
+
+ Awakeness > 0 puts the map into the player's reality bubble.
+
+ """
+ m = game.get_map(map_pos)
+ m.awake = awakeness
+cmd_MAP.argtypes = 'yx_tuple int:nonneg'
+
+def cmd_MAP_STATS(game, map_pos, type_, population, health):
+ m = game.get_map(map_pos)
+ m.stats[type_] = {'population': population, 'health': health}
+cmd_MAP_STATS = 'yx_tuple string:thingtype int:nonneg int:nonneg'