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

Class SCA_ILogicBrick

PyObjectPlus --+    
               |    
          CValue --+
                   |
                  SCA_ILogicBrick
Known Subclasses:

Base class for all logic bricks.

Instance Methods
bool
isA(game_type)
Check if this is a type or a subtype game_type. (Inherited from GameTypes.PyObjectPlus)
    Deprecated
KX_GameObject
getOwner()
Gets the game object associated with this logic brick.
 
setExecutePriority(priority)
Sets the priority of this logic brick.
integer
getExecutePriority()
Gets the execution priority of this logic brick.
string
getName()
Returns the name of the CValue. (Inherited from GameTypes.CValue)
Instance Variables
int executePriority
This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first).
bool invalid
Test if the object has been freed by the game engine and is no longer valid. (Inherited from GameTypes.PyObjectPlus)
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).
Method Details

getOwner()

 

Gets the game object associated with this logic brick.

Returns: KX_GameObject

Deprecated: Use the owner attribute instead.

setExecutePriority(priority)

 

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()

 

Gets the execution priority of this logic brick.

Returns: integer
this logic bricks current priority.

Deprecated: Use the executePriority attribute instead.