| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
ode.World --+
|
object --+ |
| |
pygame.sprite.AbstractGroup --+ |
| |
pygame.sprite.Group --+ |
| |
pygame.sprite.RenderUpdates --+
|
canvas
This is a container class for holding the objects printed to the 'canvas' area of the application. The position, physical properties (shapes), and orientation of each objects are held in this data structure for easy management and manipulation around the canvas through user-driven actions and the simulated actions of the virtual canvas environment. Parameter:
|
|||
|
sprite Abstract object represented in an area of the canvas. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
| a new object with type S, a subtype of T |
|
||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Polymorphs the __new__ method in the base class ode.World so that other supertypes can be fully initialized. Because ode.World 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 canvas' environment. Parameter:
|
Sets the canvas' background color. Parameter:
|
Sets the canvas' background image. Parameter:
|
Sets the background music. Parameter:
|
Tests whether an object is located at the current 'pos' location. Parameter:
|
Returns the sprite that is located at the 'pos' location. Normally used when user selects and object and wants to drag it from one area to another. Parameter:
|
Invoked whenever two objectas are about to collide, then creates collision points where collision may occur. Parameter:
|
Increments the world timestep, and detects near collisions. Parameter:
|
Adds a new object to the canvas' environment. Once an object is added to the environment, it is capable of interacting with other objects within the environment, and with user-driven inputs. Parameter:
|
Creates a new object given it's image copy, vertices, position, and world. Parameter:
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Tue Apr 29 08:32:29 2008 | http://epydoc.sourceforge.net |