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

Class KX_StateActuator

source code

SCA_ILogicBrick.SCA_ILogicBrick --+    
                                  |    
        SCA_IActuator.SCA_IActuator --+
                                      |
                                     KX_StateActuator

State actuator changes the state mask of parent object.

Instance Methods [hide private]
 
setOperation(op)
Set the type of bit operation to be applied on object state mask.
source code
 
setMask(mask)
Set the value that defines the bits that will be modified by the operation.
source code

Inherited from SCA_ILogicBrick.SCA_ILogicBrick: getExecutePriority, getOwner, setExecutePriority

Method Details [hide private]

setOperation(op)

source code 

Set the type of bit operation to be applied on object state mask. Use setMask() to specify the bits that will be modified.

Parameters:
  • op (integer) - bit operation (0=Copy, 1=Add, 2=Substract, 3=Invert)

setMask(mask)

source code 

Set the value that defines the bits that will be modified by the operation. The bits that are 1 in the value will be updated in the object state, the bits that are 0 are will be left unmodified expect for the Copy operation which copies the value to the object state.

Parameters:
  • mask (integer) - bits that will be modified