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.
|
2009-01-26 08:34:40 +00:00
|
|
|
|
|
|
|
@ivar executePriority: This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first).
|
|
|
|
@type executePriority: int
|
2009-04-20 15:06:46 +00:00
|
|
|
@ivar owner: The game object this logic brick is attached to (read only).
|
|
|
|
@type owner: L{KX_GameObject<KX_GameObject.KX_GameObject>} or None in exceptional cases.
|
2004-05-24 07:49:50 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
def getOwner():
|
|
|
|
"""
|
|
|
|
Gets the game object associated with this logic brick.
|
|
|
|
|
2009-04-20 15:06:46 +00:00
|
|
|
Deprecated: Use the "owner" property instead.
|
|
|
|
|
|
|
|
@rtype: L{KX_GameObject<KX_GameObject.KX_GameObject>}
|
2004-05-24 07:49:50 +00:00
|
|
|
"""
|
2009-01-26 08:34:40 +00:00
|
|
|
|
|
|
|
#--The following methods are deprecated--
|
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.
|
|
|
|
|
2009-01-26 08:34:40 +00:00
|
|
|
Deprecated: Use the "executePriority" property instead.
|
|
|
|
|
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.
|
|
|
|
|
2009-01-26 08:34:40 +00:00
|
|
|
Deprecated: Use the "executePriority" property instead.
|
|
|
|
|
2004-05-31 13:06:04 +00:00
|
|
|
@rtype: integer
|
|
|
|
@return: this logic bricks current priority.
|
2004-05-24 07:49:50 +00:00
|
|
|
"""
|