Пример #1
0
    def __init__(self, air, baseChannel=20000, baseMsgType=20000):
        """

        air is the AI Repository.

        baseChannel is the channel that the first message is sent on.

        baseMsgType is the MsgType of the same.

        """

        assert self.notify.debugCall()

        Messenger.__init__(self)

        self.air = air

        self.baseChannel = baseChannel

        self.baseMsgType = baseMsgType

        self.__message2type = {}

        self.__type2message = {}

        self.__message2channel = {}
 def __init__(self, air, baseChannel=20000, baseMsgType=20000):
     Messenger.__init__(self)
     self.air = air
     self.baseChannel = baseChannel
     self.baseMsgType = baseMsgType
     self.__message2type = {}
     self.__type2message = {}
     self.__message2channel = {}
 def __init__(self, air, channels):
     """
     air is the AI Repository.
     channels is a list of channel IDs (uint32 values)
     """
     assert self.notify.debugCall()
     Messenger.__init__(self)
     self.air=air
     self.channels=channels
     for i in self.channels:
         self.air.registerForChannel(i)
Пример #4
0
 def __init__(self, air, channels):
     """
     air is the AI Repository.
     channels is a list of channel IDs (uint32 values)
     """
     assert self.notify.debugCall()
     Messenger.__init__(self)
     self.air = air
     self.channels = channels
     for i in self.channels:
         self.air.registerForChannel(i)
Пример #5
0
    def __init__(self, air, baseChannel=20000, baseMsgType=20000):
        """
        air is the AI Repository.
        baseChannel is the channel that the first message is sent on.
        baseMsgType is the MsgType of the same.
        """
        assert self.notify.debugCall()
        Messenger.__init__(self)
        self.air=air
        self.baseChannel = baseChannel
        self.baseMsgType = baseMsgType

        self.__message2type = {}
        self.__type2message = {}
        self.__message2channel = {}