Package populus :: Module Formation :: Class RowFormation
[frames] | no frames]

Class RowFormation


Arrange a group of units in a row formation.

Instance Methods
 
__init__(self, pos=(0,0,0), dir=(0,1,0))
Create an empty CompositeFormation.
 
enterForming(self)
Arrange in a row when enter into forming.

Inherited from CompositeFormation: add, annotate, bounds, direction, dismiss, enterBroken, enterFormed, exitBroken, exitFormed, exitForming, getNumUnits, getUnit, goTo, position, radius, rearrange, remove, setDirection, setPosition, speed, update, whenBroken, whenFormed, whenForming

Inherited from FormationUnit: turnTo

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables

Inherited from CompositeFormation: SEPARATION, SHAPE_TOLERANCE, STABILITY_THRESHOLD

Properties

Inherited from object: __class__

Method Details

__init__(self, pos=(0,0,0), dir=(0,1,0))
(Constructor)

 

Create an empty CompositeFormation.

Overrides: object.__init__
(inherited documentation)

enterForming(self)

 

Arrange in a row when enter into forming.

Overrides: CompositeFormation.enterForming