Changeset 1352
- Timestamp:
- 09/03/08 04:36:20 (3 months ago)
- Location:
- trunk/pysoy
- Files:
-
- 6 modified
- 1 moved
-
include/soy.actions.pxd (modified) (1 diff)
-
src/actions/Callback.pym (modified) (1 diff)
-
src/actions/Force.pym (modified) (1 diff)
-
src/actions/Print.pym (moved) (moved from trunk/pysoy/src/actions/Stdout.pym) (4 diffs, 1 prop)
-
src/actions/Quit.pym (modified) (1 diff)
-
src/actions/Torque.pym (modified) (1 diff)
-
src/actions/soy.actions.pyx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pysoy/include/soy.actions.pxd
r1351 r1352 26 26 cdef void _perform ( self, unsigned int ) 27 27 28 cdef class Callback (Action) : 29 cdef object _callback 30 28 31 cdef class Force (Action) : 29 32 cdef soy.bodies.Body _target 30 33 cdef soy.atoms.Vector _vector 31 34 32 cdef class Stdout (Action) :35 cdef class Print (Action) : 33 36 cdef char* _text 34 35 cdef class Callback (Action) :36 cdef object _callback37 37 38 38 cdef class Torque (Action) : -
trunk/pysoy/src/actions/Callback.pym
r1350 r1352 23 23 '''soy.actions.Callback 24 24 25 This is a Python function callback action.25 This L{action<soy.action.Action>} calls a Python function when activated. 26 26 27 27 @type callback : function -
trunk/pysoy/src/actions/Force.pym
r1350 r1352 21 21 '''soy.actions.Force 22 22 23 Adds velocity to a target L{body<soy.bodies.Body>}. 23 This L{action<soy.action.Action>} adds linear force (velocity) to a target 24 L{body<soy.bodies.Body>} when activated. 24 25 25 26 @type target : soy.bodies.Body -
trunk/pysoy/src/actions/Print.pym
r1225 r1352 1 # PySoy actions.Quit class1 # PySoy's actions.Print class 2 2 # 3 3 # Copyright (C) 2006,2007,2008 PySoy Group … … 18 18 # $Id: Print.pxi 732 2008-01-01 22:37:47Z DavidCzech $ 19 19 20 cdef class Stdout (Action):21 ''' PySoyPrint20 cdef class Print (Action) : 21 '''soy.actions.Print 22 22 23 When called PySoy will print to stdout. There is an argument for what text to print. 24 See soy.actions.Action for more information. 23 This L{action<soy.action.Action>} prints the specified text on activation. 24 25 Note that as of Python 3.0, this class will use the standard print 26 function which can be overridden for adjustable behavior. 27 28 @type target : string 29 @param target : Formatted string to be printed 25 30 ''' 26 31 … … 30 35 # 31 36 32 def __cinit__(self, text,*args, **kw) :37 def __cinit__(self, text, *args, **kw) : 33 38 self._text = text 34 39 … … 40 45 41 46 cdef void _perform(self, unsigned int _duration) : 47 # 48 # This will change during the Python 3.0 API update 49 # 42 50 stdio.printf("%s\n", self._text) -
trunk/pysoy/src/actions/Quit.pym
r1351 r1352 21 21 '''soy.actions.Quit 22 22 23 When called PySoy will quit. There are no arguments to this class.23 This L{action<soy.action.Action>} terminates Python when activated. 24 24 ''' 25 25 -
trunk/pysoy/src/actions/Torque.pym
r1351 r1352 21 21 '''soy.actions.Torque 22 22 23 Adds rotational velocity to a target L{body<soy.bodies.Body>}. 23 This L{action<soy.action.Action>} adds rotational force (torque) to a 24 target L{body<soy.bodies.Body>} when activated. 24 25 25 26 @type target : soy.bodies.Body -
trunk/pysoy/src/actions/soy.actions.pyx
r1351 r1352 22 22 include "Callback.pym" 23 23 include "Force.pym" 24 include "Print.pym" 24 25 include "Quit.pym" 25 include "Stdout.pym"26 26 include "Torque.pym"
