Module KX_NetworkMessageSensor :: Class KX_NetworkMessageSensor

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
 
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, getUseNegPulseMode, getUsePosPulseMode, isPositive, setFrequency, setInvert, setUseNegPulseMode, setUsePosPulseMode

Inherited from SCA_ILogicBrick.SCA_ILogicBrick: getExecutePriority, getOwner, setExecutePriority

Method Details

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.