2004-05-30 11:09:46 +00:00
|
|
|
# $Id$
|
2004-05-24 07:49:50 +00:00
|
|
|
# Documentation for the logic brick base class SCA_ILogicBrick
|
|
|
|
from KX_GameObject import *
|
|
|
|
|
|
|
|
class SCA_ILogicBrick:
|
|
|
|
"""
|
2004-06-02 12:43:27 +00:00
|
|
|
Base class for all logic bricks.
|
2004-05-24 07:49:50 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
def getOwner():
|
|
|
|
"""
|
|
|
|
Gets the game object associated with this logic brick.
|
|
|
|
|
2004-06-02 12:43:27 +00:00
|
|
|
@rtype: L{KX_GameObject}
|
2004-05-24 07:49:50 +00:00
|
|
|
"""
|
|
|
|
def setExecutePriority(priority):
|
|
|
|
"""
|
|
|
|
Sets the priority of this logic brick.
|
|
|
|
|
2004-10-16 11:41:50 +00:00
|
|
|
This determines the order controllers are evaluated, and actuators are activated.
|
|
|
|
Bricks with lower priority will be executed first.
|
|
|
|
|
2004-05-24 07:49:50 +00:00
|
|
|
@type priority: integer
|
|
|
|
@param priority: the priority of this logic brick.
|
|
|
|
"""
|
|
|
|
def getExecutePriority():
|
|
|
|
"""
|
|
|
|
Gets the execution priority of this logic brick.
|
|
|
|
|
2004-05-31 13:06:04 +00:00
|
|
|
@rtype: integer
|
|
|
|
@return: this logic bricks current priority.
|
2004-05-24 07:49:50 +00:00
|
|
|
"""
|