Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-04-08 20:57:08 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2009-04-08 20:57:08 +0400
commitdb33320df7f4db6480a15502baecaafefc1be63d (patch)
tree532ffe8782fec1909a8725b2eb0fe559af8ec704 /source/gameengine/PyDoc
parent370850146f5ab1af11ec3a28abd1bad2f60314a4 (diff)
BGE patch #18350: Add sendMessage() to GameLogic. Added sendMessage to both GameLogic and KX_GameObject.
Diffstat (limited to 'source/gameengine/PyDoc')
-rw-r--r--source/gameengine/PyDoc/GameLogic.py13
-rw-r--r--source/gameengine/PyDoc/KX_GameObject.py11
2 files changed, 24 insertions, 0 deletions
diff --git a/source/gameengine/PyDoc/GameLogic.py b/source/gameengine/PyDoc/GameLogic.py
index da394288e25..29d1b64350a 100644
--- a/source/gameengine/PyDoc/GameLogic.py
+++ b/source/gameengine/PyDoc/GameLogic.py
@@ -205,6 +205,19 @@ def addActiveActuator(actuator, activate):
@type activate: boolean
@param activate: whether to activate or deactivate the given actuator.
"""
+def sendMessage(subject, body="", to="", from=""):
+ """
+ Sends a message.
+
+ @param subject: The subject of the message
+ @type subject: string
+ @param body: The body of the message (optional)
+ @type body: string
+ @param to: The name of the object to send the message to (optional)
+ @type to: string
+ @param from: The name of the object that the message is coming from (optional)
+ @type from: string
+ """
def getRandomFloat():
"""
Returns a random floating point value in the range [0...1)
diff --git a/source/gameengine/PyDoc/KX_GameObject.py b/source/gameengine/PyDoc/KX_GameObject.py
index 42656503384..fb1e099e575 100644
--- a/source/gameengine/PyDoc/KX_GameObject.py
+++ b/source/gameengine/PyDoc/KX_GameObject.py
@@ -453,3 +453,14 @@ class KX_GameObject: # (SCA_IObject)
@type margin: float
@param margin: the collision margin distance in blender units.
"""
+ def sendMessage(subject, body="", to=""):
+ """
+ Sends a message.
+
+ @param subject: The subject of the message
+ @type subject: string
+ @param body: The body of the message (optional)
+ @type body: string
+ @param to: The name of the object to send the message to (optional)
+ @type to: string
+ """