Trees | Indices | Help |
---|
|
|
|||
|
__init__(self,
armies) Create a new battle with armies, groups, leaders, soldiers and characters. |
||
|
battle(self) Execute a single round of the battle together with organization of Armies, Groups and Characters. |
||
|
auto_enemy(self) Automatically assign enemies to groups / armies. |
||
|
char_preparations(self) Make all the characters still involved do their preparations: Leader(): .plan, .speak and .checkmorale Hero(): .motivate and .checkmorale Char(): .checkmorale |
||
|
group_preparations(self) Make all non-empty groups do their preparations for battle: |
||
|
group_pairings(self,
groups) Take selected pairs of groups to calculate their powerratio/aliveratio and evaluate their relative bias. |
||
|
char_pairings(self,
groups) Pair the Characters from two Groups to fight each other. |
||
| fight_rows(self) | ||
|
__repr__(self) Nice printout of current situation on the BattleField(). |
||
|
auto_battle(self,
infolevel=0) Automatically executes battles plus intermediate output until the battle ends (flight, extermination, resignation). |
||
|
supplies(self) Give one of the Armies/Groups additional support in form of new soldiers, leaders, heroes or entire groups. |
|
|||
|
output The output of the battlefield calculations for use in other programs. |
|
|
|
|
|
|
|
|
|
|
|
|
|
outputThe output of the battlefield calculations for use in other programs. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Sun Oct 28 23:11:31 2007 | http://epydoc.sourceforge.net |