Keyboard sensors can now hook escape key. Ctrl-Break can be used from within blender if you've forgotten an end game actuator. Fixed a stupid bug preventing some actuators working (like TrackTo).
		
			
				
	
	
		
			33 lines
		
	
	
		
			752 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			752 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # $Id$
 | |
| # 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.
 | |
| 		"""
 |