~ubuntu-branches/ubuntu/lucid/blender/lucid

« back to all changes in this revision

Viewing changes to source/gameengine/PyDoc/KX_ParentActuator.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-08-06 22:32:19 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090806223219-8z4eej1u8levu4pz
Tags: 2.49a+dfsg-0ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: Build-depend on python-2.6 rather than python-2.5.
  - debian/misc/*.desktop: Add Spanish translation to .desktop 
    files.
  - debian/pyversions: 2.6.
  - debian/rules: Clean *.o of source/blender/python/api2_2x/
* New upstream release (LP: #382153).
* Refreshed patches:
  - 01_sanitize_sys.patch
  - 02_tmp_in_HOME
  - 10_use_systemwide_ftgl
  - 70_portability_platform_detection
* Removed patches merged upstream:
  - 30_fix_python_syntax_warning
  - 90_ubuntu_ffmpeg_52_changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: KX_ParentActuator.py 2615 2004-06-02 12:43:27Z kester $
2
 
# Documentation for KX_ParentActuator
3
 
from SCA_IActuator import *
4
 
 
5
 
class KX_ParentActuator(SCA_IActuator):
6
 
        """
7
 
        The parent actuator can set or remove an objects parent object.
8
 
        """
9
 
        def setObject(object):
10
 
                """
11
 
                Sets the object to set as parent.
12
 
                
13
 
                Object can be either a L{KX_GameObject} or the name of the object.
14
 
                
15
 
                @type object: L{KX_GameObject}, string or None
16
 
                """
17
 
        def getObject(name_only = 1):
18
 
                """
19
 
                Returns the name of the object to change to.
20
 
                @type name_only: bool
21
 
                @param name_only: optional argument, when 0 return a KX_GameObject
22
 
                @rtype: string, KX_GameObject or None if no object is set
23
 
                """