Ejemplo n.º 1
0
    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 )
Ejemplo n.º 2
0
    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 )
Ejemplo n.º 3
0
    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)