gummworld2.model (version $Id: model.py 407 2013-08-12 15:11:30Z stabbingfinger@gmail.com $)
index
c:\cygwin\home\bw\devel\python\svn\gummworld2_devel\gamelib\gummworld2\model.py

model.py - Physics model for Gummworld2.

 
Modules
       
gummworld2.data
pygame

 
Classes
       
__builtin__.object
NoWorld
Object
World

 
class NoWorld(__builtin__.object)
     Methods defined here:
__init__(self, rect)
add(self, *args)
step(self, dt)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Object(__builtin__.object)
    An object model suitable for use as a Camera target or an autonomous
object in World.
 
Similar to pygame.sprite.Sprite, without the graphics and rect. Subclass
this and extend.
 
  Methods defined here:
__init__(self, position=(0, 0))
kill(self)
update(self, *args)
worlds(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
position

 
class World(__builtin__.object)
    A container for model.Objects.
 
Similar to pygame.sprite.AbstractGroup. Not compatible with
pygame.sprite.Sprite.
 
If you want the world to store pygame sprites, substitute a group and that
has a rect attribute and step() method.
 
  Methods defined here:
__contains__(self, obj)
__init__(self, rect)
rect is bounding box edges in pygame space
__iter__(self)
__len__(self)
len(group)
number of sprites in group
 
Returns the number of sprites contained in the group.
__nonzero__(self)
__repr__(self)
add(self, *objs)
Add objects to the world.
objects(self)
remove(self, *objs)
step(self, dt)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __author__ = 'Gummbum, (c) 2011-2013'
__version__ = '$Id: model.py 407 2013-08-12 15:11:30Z stabbingfinger@gmail.com $'

 
Author
        Gummbum, (c) 2011-2013