map_control = game.get_map(big_yx, 'control')
map_control[little_yx] = control_char
game.changed = True
map_control = game.get_map(big_yx, 'control')
map_control[little_yx] = control_char
game.changed = True
cmd_SET_TILE_CONTROL.argtypes = 'yx_tuple:nonneg char'
def cmd_THING_PROTECTION(game, thing_id, protection_char, connection_id):
cmd_SET_TILE_CONTROL.argtypes = 'yx_tuple:nonneg char'
def cmd_THING_PROTECTION(game, thing_id, protection_char, connection_id):
cmd_THING_PROTECTION.argtypes = 'int:pos char'
def cmd_SET_MAP_CONTROL_PASSWORD(game, tile_class, password, connection_id):
cmd_THING_PROTECTION.argtypes = 'int:pos char'
def cmd_SET_MAP_CONTROL_PASSWORD(game, tile_class, password, connection_id):
cmd_NICK.argtypes = 'string'
def cmd_GET_GAMESTATE(game, connection_id):
cmd_NICK.argtypes = 'string'
def cmd_GET_GAMESTATE(game, connection_id):
if big_yx not in game.annotations:
game.annotations[big_yx] = {}
game.annotations[big_yx][little_yx] = msg
if big_yx not in game.annotations:
game.annotations[big_yx] = {}
game.annotations[big_yx][little_yx] = msg
- # FIXME: pseudo-FOV-change actually
- game.record_fov_change([big_yx, little_yx])
+ game.record_change([big_yx, little_yx], 'other')
if big_yx not in game.portals:
game.portals[big_yx] = {}
game.portals[big_yx][little_yx] = msg
if big_yx not in game.portals:
game.portals[big_yx] = {}
game.portals[big_yx][little_yx] = msg
- # FIXME: pseudo-FOV-change actually
- game.record_fov_change([big_yx, little_yx])
+ game.record_change([big_yx, little_yx], 'other')
cmd_THING_NAME.argtypes = 'int:pos string string'
def cmd_GOD_THING_NAME(game, thing_id, name):
cmd_THING_NAME.argtypes = 'int:pos string string'
def cmd_GOD_THING_NAME(game, thing_id, name):
raise GameError('thing of ID %s not found' % thing_id)
if not t.type_ == 'Door':
raise GameError('thing of ID %s not door' % thing_id)
raise GameError('thing of ID %s not found' % thing_id)
if not t.type_ == 'Door':
raise GameError('thing of ID %s not door' % thing_id)
cmd_THING_DOOR_CLOSED.argtypes = 'int:pos'
def cmd_THING_MUSICPLAYER_SETTINGS(game, thing_id, playing, index, repeat):
cmd_THING_DOOR_CLOSED.argtypes = 'int:pos'
def cmd_THING_MUSICPLAYER_SETTINGS(game, thing_id, playing, index, repeat):
cmd_PLAYER_FACE.argtypes = 'string'
def cmd_PLAYER_HAT(game, hat, connection_id):
cmd_PLAYER_FACE.argtypes = 'string'
def cmd_PLAYER_HAT(game, hat, connection_id):
cmd_PLAYER_HAT.argtypes = 'string'
def cmd_GOD_PLAYER_FACE(game, name, face):
cmd_PLAYER_HAT.argtypes = 'string'
def cmd_GOD_PLAYER_FACE(game, name, face):