Package spyre :: Module spyre :: Class Group
[frames | no frames]

Type Group

object --+    
         |    
    Object --+
             |
            Group


A group is an object which holds a collection of other objects. It displays, updates, and commits all its contained objects in sequence.
Method Summary
  __init__(self, objects)
Initialize new instance.
  append(self, obj)
Add an object.
  commit(self)
Commit each object in group.
  display(self)
Draw the objects in the group
  extend(self, objects)
Add a sequence of objects.
  remove(self, obj)
Remove an object.
  update(self)
Update each object in group.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
    Inherited from Object
NoneType engine: makes engine accessible to displayable objects.
list opengl_state_dependent = []
float runTime: how long has engine been running?
int runTurn: how many frames have elapsed?

Method Details

__init__(self, objects=None)
(Constructor)

Initialize new instance.
Parameters:
objects - list of objects to be contained
Overrides:
spyre.spyre.Object.__init__

append(self, obj)

Add an object.

commit(self)

Commit each object in group.

display(self)

Draw the objects in the group
Overrides:
spyre.spyre.Object.display

extend(self, objects)

Add a sequence of objects.

remove(self, obj)

Remove an object.

update(self)

Update each object in group.

Generated by Epydoc 2.1 on Sat Jan 07 17:58:16 2006 http://epydoc.sf.net