Exemple #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 )
Exemple #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 )
Exemple #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)