| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
ode.Body --+
|
object --+ |
| |
pygame.sprite.Sprite --+
|
canvas.sprite
Abstract object represented in an area of the canvas. Objects can either be drawn manually by the user, or be imported from an image file. The resulting objects are also represented as surfaces, occupying a given region of the canvas. Parameter:
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
| a new object with type S, a subtype of T |
|
||
|
|||
|
Inherited from |
|||
|
|||
Polymorphs the __new__ method in the base class ode.Body so that other supertypes can be fully initialized. Because ode.Body is already a defined type (not a class), and therefore is immutable, defining this function ensures that upon constructing objects of this subtype, the __new__ method invokation will be done at the subtype level without conflicting the __init__ requirements for initializing the other derived classes in its multi-inherited hierarchy. This is similar to the way in which a string, int, and other immutable types can be extended even though they are not directly treated as classes. Also, importantly, the parameters passed to this method must match exactly with the parameters passed to the __init__ method. Parameter:
|
Initialization procedure for defaulting the object's general configuration. Parameter:
|
Updates the object's current position. Parameter:
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Tue Apr 29 08:32:29 2008 | http://epydoc.sourceforge.net |