def handle_cmd( self ): if len(self.cmds) > 0: assert len( self.parsers_stack ) > 0, "LogonSequence.handle_cmd was going to handle a cmd with an empty parsers stack" parser.handle_cmd( self.cmds.pop(0), self, self.parsers_stack[-1], self.default_cmd_callback )
def handle_cmd( self ): if len(self.cmds) > 0: assert len( self.parsers_stack ) > 0, "Mob.handle_cmd was going to handle a cmd with an empty parsers stack" parser.handle_cmd( self.cmds.pop(0), self, self.parsers_stack[-1], temporary_invalid_cmd )
def handle_cmd(self): if len(self.cmds) > 0: assert len(self.parsers_stack) > 0, "Mob.handle_cmd was going to handle a cmd with an empty parsers stack" parser.handle_cmd(self.cmds.pop(0), self, self.parsers_stack[-1], temporary_invalid_cmd)