File: SCA_ILogicBrick.py

package info (click to toggle)
blender 2.36-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 34,220 kB
  • ctags: 42,784
  • sloc: ansic: 280,846; cpp: 123,984; python: 18,428; sh: 7,178; makefile: 3,296; perl: 2,082; xml: 484; java: 8
file content (32 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: SCA_ILogicBrick.py,v 1.5 2004/10/16 11:41:50 kester Exp $
# Documentation for the logic brick base class SCA_ILogicBrick
from KX_GameObject import *

class SCA_ILogicBrick:
	"""
	Base class for all logic bricks.
	"""
	
	def getOwner():
		"""
		Gets the game object associated with this logic brick.
		
		@rtype: L{KX_GameObject}
		"""
	def 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.
		
		@type priority: integer
		@param priority: the priority of this logic brick.
		"""
	def getExecutePriority():
		"""
		Gets the execution priority of this logic brick.
		
		@rtype: integer
		@return: this logic bricks current priority.
		"""