comparison pytouhou/vm/msgrunner.py @ 494:6be9c99a3a24

Merge PlayerState into Player, fix player respawn position.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 14 Oct 2013 12:11:01 +0200
parents 2276229282fd
children 577c3a88fb67
comparison
equal deleted inserted replaced
493:26c082870dcf 494:6be9c99a3a24
29 __slots__ = ('_msg', '_game', 'frame', 'sleep_time', 'allow_skip', 29 __slots__ = ('_msg', '_game', 'frame', 'sleep_time', 'allow_skip',
30 'skipping', 'frozen', 'ended', 'instruction_pointer', 30 'skipping', 'frozen', 'ended', 'instruction_pointer',
31 'handlers') 31 'handlers')
32 32
33 def __init__(self, msg, script, game): 33 def __init__(self, msg, script, game):
34 self._msg = msg.msgs[script + 10 * (game.players[0].state.character // 2)] 34 self._msg = msg.msgs[script + 10 * (game.players[0].character // 2)]
35 self._game = game 35 self._game = game
36 self.handlers = self._handlers[6] 36 self.handlers = self._handlers[6]
37 self.frame = 0 37 self.frame = 0
38 self.sleep_time = 0 38 self.sleep_time = 0
39 self.allow_skip = True 39 self.allow_skip = True