Module KX_NetworkMessageSensor :: Class KX_NetworkMessageSensor
[hide private]
[frames] | no frames]

Class KX_NetworkMessageSensor

source code

SCA_ILogicBrick.SCA_ILogicBrick --+    
                                  |    
            SCA_ISensor.SCA_ISensor --+
                                      |
                                     KX_NetworkMessageSensor

The Message Sensor logic brick.

Currently only loopback (local) networks are supported.

Instance Methods [hide private]
 
setSubjectFilterText(subject)
Change the message subject text that this sensor is listening to.
source code
integer
getFrameMessageCount()
Get the number of messages received since the last frame.
source code
list
getBodies()
Gets the list of message bodies.
source code
string
getSubject()
Gets the message subject this sensor is listening for from the Subject: field.
source code
list
getSubjects()
Gets the list of message subjects received.
source code

Inherited from SCA_ISensor.SCA_ISensor: getFrequency, getInvert, getLevel, getUseNegPulseMode, getUsePosPulseMode, isPositive, isTriggered, reset, setFrequency, setInvert, setLevel, setUseNegPulseMode, setUsePosPulseMode

Inherited from SCA_ILogicBrick.SCA_ILogicBrick: getExecutePriority, getOwner, setExecutePriority

Method Details [hide private]

setSubjectFilterText(subject)

source code 

Change the message subject text that this sensor is listening to.

Parameters:
  • subject (string) - the new message subject to listen for.