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

Source Code for Module KX_StateActuator

 1  # $Id: KX_StateActuator.py 15723 2008-07-23 21:37:37Z ben2610 $
 
 2  # Documentation for KX_StateActuator
 
 3  from SCA_IActuator import * 
 4  
 
5 -class KX_StateActuator(SCA_IActuator):
6 """ 7 State actuator changes the state mask of parent object. 8 """
9 - def setOperation(op):
10 """ 11 Set the type of bit operation to be applied on object state mask. 12 Use setMask() to specify the bits that will be modified. 13 14 @param op: bit operation (0=Copy, 1=Add, 2=Substract, 3=Invert) 15 @type op: integer 16 """
17 - def setMask(mask):
18 """ 19 Set the value that defines the bits that will be modified by the operation. 20 The bits that are 1 in the value will be updated in the object state, 21 the bits that are 0 are will be left unmodified expect for the Copy operation 22 which copies the value to the object state. 23 24 @param mask: bits that will be modified 25 @type mask: integer 26 """
27