Peach :: Generators :: block :: Block3 :: Class Block3
[hide private]

Class Block3

source code


A Block that takes a group to perform .next() on. The BlockSize generator can be used to output the block size someplace.

This is a specialized version of Block. This version will call next() the provided Group. This was added to make complex sub-blocks work properly.

Instance Methods [hide private]
 
__init__(self, group, generators)
Base constructor, please call me!
source code
 
next(self)
Note: We arn't going to next on any of the sub generators.
source code
 
reset(self)
Even though we don't propogate .next calls we should reset things.
source code

Inherited from Block: __contains__, __delitem__, __getitem__, __iter__, __len__, __setitem__, append, clear, getRawValue, getSize, getValue, insert, remove, setGenerators

Inherited from generator.Generator: getGroup, getName, getTransformer, identity, setGroup, setName, setTransformer

Method Details [hide private]

__init__(self, group, generators)
(Constructor)

source code 

Base constructor, please call me!

Parameters:
  • group (Group) - Group to perform .next() on
  • generators (List) - List of generators
Overrides: generator.Generator.__init__

next(self)

source code 

Note: We arn't going to next on any of the sub generators. This is left to the group or whatever todo.

Overrides: generator.Generator.next
(inherited documentation)

reset(self)

source code 

Even though we don't propogate .next calls we should reset things.

Overrides: generator.Generator.reset
(inherited documentation)