Module GameTypes :: Class SCA_ILogicBrick
[hide private]
[frames] | no frames]

Class SCA_ILogicBrick

source code

PyObjectPlus --+    
               |    
          CValue --+
                   |
                  SCA_ILogicBrick
Known Subclasses:
SCA_IActuator, SCA_ISensor, SCA_IController

Base class for all logic bricks.

Instance Methods [hide private]
    Deprecated
KX_GameObject
getOwner()
Gets the game object associated with this logic brick.
source code
 
setExecutePriority(priority)
Sets the priority of this logic brick.
source code
integer
getExecutePriority()
Gets the execution priority of this logic brick.
source code
    Inherited from CValue
string
getName()
Returns the name of the CValue.
source code
    Inherited from PyObjectPlus
bool
isA(game_type)
Check if this is a type or a subtype game_type.
source code
Instance Variables [hide private]
int executePriority
This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first).
string name
The name of this CValue derived object (read-only).
KX_GameObject or None in exceptional cases. owner
The game object this logic brick is attached to (read-only).
    Inherited from PyObjectPlus
bool invalid
Test if the object has been freed by the game engine and is no longer valid.
Method Details [hide private]

getOwner()

source code 
Gets the game object associated with this logic brick.
Returns: KX_GameObject

Deprecated: Use the owner attribute instead.

setExecutePriority(priority)

source code 

Sets the priority of this logic brick.

This determines the order controllers are evaluated, and actuators are activated. Bricks with lower priority will be executed first.
Parameters:
  • priority (integer) - the priority of this logic brick.

Deprecated: Use the executePriority attribute instead.

getExecutePriority()

source code 
Gets the execution priority of this logic brick.
Returns: integer
this logic bricks current priority.

Deprecated: Use the executePriority attribute instead.