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

Class LineFormation


Arrange a group of units into a line.

Instance Methods
 
__init__(self, pos=(0,0,0), dir=(0,1,0))
Create an empty CompositeFormation.
 
enterForming(self)
Arrange in line when start forming.
 
enterFormed(self)
This function is called before entering the state Formed.

Inherited from CompositeFormation: add, annotate, bounds, direction, dismiss, enterBroken, 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 line when start forming.

Overrides: CompositeFormation.enterForming

enterFormed(self)

 

This function is called before entering the state Formed.

Overrides: CompositeFormation.enterFormed
(inherited documentation)