map_control = game.get_map(big_yx, 'control')
map_control[little_yx] = control_char
game.changed = True
- game.record_fov_change((big_yx, little_yx))
+ game.record_change((big_yx, little_yx), 'fov')
cmd_SET_TILE_CONTROL.argtypes = 'yx_tuple:nonneg char'
def cmd_THING_PROTECTION(game, thing_id, protection_char, connection_id):
raise GameError('thing of ID %s not found' % thing_id)
t.protection = protection_char
game.changed = True
- # FIXME: pseudo-FOV-change actually
- game.record_fov_change(t.position)
+ game.record_change(t.position, 'other')
cmd_THING_PROTECTION.argtypes = 'int:pos char'
def cmd_SET_MAP_CONTROL_PASSWORD(game, tile_class, password, connection_id):
t.name = nick
game.io.send('CHAT ' + quote(old_nick + ' renamed themselves to ' + nick))
game.changed = True
- # FIXME: pseudo-FOV-change actually
- game.record_fov_change(t.position)
+ game.record_change(t.position, 'other')
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
- # FIXME: pseudo-FOV-change actually
- game.record_fov_change([big_yx, little_yx])
+ game.record_change([big_yx, little_yx], 'other')
game.changed = True
cmd_ANNOTATE.argtypes = 'yx_tuple:nonneg string string'
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')
game.changed = True
cmd_PORTAL.argtypes = 'yx_tuple:nonneg string string'
else:
t.name = name
game.changed = True
- # FIXME: pseudo-FOV-change actually
- game.record_fov_change(t.position)
+ game.record_change(t.position, 'other')
cmd_THING_NAME.argtypes = 'int:pos string string'
def cmd_GOD_THING_NAME(game, thing_id, name):
raise GameError('wrong face string length')
game.faces[t.name] = face
game.changed = True
- # FIXME: pseudo-FOV-change actually
- game.record_fov_change(t.position)
+ game.record_change(t.position, 'other')
cmd_PLAYER_FACE.argtypes = 'string'
def cmd_PLAYER_HAT(game, hat, connection_id):
% (c, legal_chars))
game.hats[t.name] = hat
game.changed = True
- # FIXME: pseudo-FOV-change actually
- game.record_fov_change(t.position)
+ game.record_change(t.position, 'other')
cmd_PLAYER_HAT.argtypes = 'string'
def cmd_GOD_PLAYER_FACE(game, name, face):