Module KX_NetworkMessageActuator
[hide private]
[frames] | no frames]

Source Code for Module KX_NetworkMessageActuator

 1  # $Id: KX_NetworkMessageActuator.py 15444 2008-07-05 17:05:05Z lukep $ 
 2  # Documentation for KX_NetworkMessageActuator 
 3  from SCA_IActuator import * 
 4   
5 -class KX_NetworkMessageActuator(SCA_IActuator):
6 """ 7 Message Actuator 8 """
9 - def setToPropName(name):
10 """ 11 Messages will only be sent to objects with the given property name. 12 13 @type name: string 14 """
15 - def setSubject(subject):
16 """ 17 Sets the subject field of the message. 18 19 @type subject: string 20 """
21 - def setBodyType(bodytype):
22 """ 23 Sets the type of body to send. 24 25 @type bodytype: boolean 26 @param bodytype: True to send the value of a property, False to send the body text. 27 """
28 - def setBody(body):
29 """ 30 Sets the message body. 31 32 @type body: string 33 @param body: if the body type is True, this is the name of the property to send. 34 if the body type is False, this is the text to send. 35 """
36