Package schlachtfeld :: Module schlachtfeld
[hide private]
[frames] | no frames]

Module schlachtfeld

source code

Schlachtensimulation nach den Regeln des Ein Würfel Systems

Classes [hide private]
  BattleField

Functions [hide private]
  ews()
Do one roll with the plusminus d6 die (wrapper for a function in pmw6).
  check(skill, MW)
Check if a given skill test reached a min-value (wrapper for a function in pmw6).
  ocheck(skill, MW)
Return the degree of success / failure for a skill check (wrapper for a function in pmw6).
  powercheck(Groups)
Compare the ratio between fighters who are alive in each group (but not necessarily able to fight).
  bias_me(armies)
Calculate the bias between two groups and store it in Grou().situation[1].
  experience(chars)

Variables [hide private]
  biasfactor = 1.3999999999999999
  biasmultiplier = 2.0
  biascutoff = 8
  expfactor = 1
  exp_logfactor = 1.5
  inactvalue = 0.69999999999999996
  woundvalue = 0.40000000000000002
  powervalue = 0.20000000000000001
  name_objekt = <schlachtfeld.namen.Name instance at 0x9b21b8>
  verbose = True
  armies = [(('Menschen Armee', 0.5, 0.4), [], [("tag:1w6.org,2...
  test = BattleField(armies)
  atscatter = [3, 2, 1]
  default_style = (0, (3, 3), (3, 3), (3, 3), (3, 3), None)
  defensive_style = (-3, (0, 0), (0, 3), (3, 3), (3, 3), None)
  escape_style = (6, (3, 3), (3, 3), (0, 0), (0, 0), 'escape')
  line_cut = 5
  offensive_style = (6, (3, 3), (0, 0), (3, 3), (3, 3), 'dead')
  styledict = {'default': (0, (3, 3), (3, 3), (3, 3), (3, 3), None...

Function Details [hide private]

ews()

source code 
Do one roll with the plusminus d6 die (wrapper for a function in pmw6).

check(skill, MW)

source code 
Check if a given skill test reached a min-value (wrapper for a function in pmw6).

ocheck(skill, MW)

source code 
Return the degree of success / failure for a skill check (wrapper for a function in pmw6).

powercheck(Groups)

source code 
Compare the ratio between fighters who are alive in each group (but not necessarily able to fight).

bias_me(armies)

source code 
Calculate the bias between two groups and store it in Grou().situation[1].

experience(chars)

source code 
None

Variables Details [hide private]

biasfactor

None
Value:
1.3999999999999999                                                    
      

biasmultiplier

None
Value:
2.0                                                                   
      

biascutoff

None
Value:
8                                                                     
      

expfactor

None
Value:
1                                                                     
      

exp_logfactor

None
Value:
1.5                                                                   
      

inactvalue

None
Value:
0.69999999999999996                                                   
      

woundvalue

None
Value:
0.40000000000000002                                                   
      

powervalue

None
Value:
0.20000000000000001                                                   
      

name_objekt

None
Value:
<schlachtfeld.namen.Name instance at 0x9b21b8>                         
      

verbose

None
Value:
True                                                                   
      

armies

None
Value:
[(('Menschen Armee', 0.5, 0.4), [], [("tag:1w6.org,2007:Mensch", 10,-1
, 'Soldat', True)]), (('Goblin Armee', 0.4, 0.4), [], [("tag:1w6.org,2
007:Goblin", 15,-1, 'Soldat', True)])]                                 
      

test

None
Value:
BattleField(armies)                                                    
      

atscatter

None
Value:
[3, 2, 1]                                                              
      

default_style

None
Value:
(0, (3, 3), (3, 3), (3, 3), (3, 3), None)                              
      

defensive_style

None
Value:
(-3, (0, 0), (0, 3), (3, 3), (3, 3), None)                             
      

escape_style

None
Value:
(6, (3, 3), (3, 3), (0, 0), (0, 0), 'escape')                          
      

line_cut

None
Value:
5                                                                     
      

offensive_style

None
Value:
(6, (3, 3), (0, 0), (3, 3), (3, 3), 'dead')                            
      

styledict

None
Value:
{'default': (0, (3, 3), (3, 3), (3, 3), (3, 3), None),
 'defensive': (-3, (0, 0), (0, 3), (3, 3), (3, 3), None),
 'escape': (6, (3, 3), (3, 3), (0, 0), (0, 0), 'escape'),
 'offensive': (6, (3, 3), (0, 0), (3, 3), (3, 3), 'dead')}