schlachtfeld
index
/home/achim/rpg/ews/rpg-tools-1d6/schlachtfeld/schlachtfeld.py

Schlachtensimulation nach den Regeln des Ein Würfel Systems

 
Modules
       
charakterverwaltung.Charakter
charakterverwaltung.Versionsverwaltung
math
namen
pmw6
sys

 
Classes
       
Char
Hero
Leader
Group
Army

 
class Army(Group)
    One of the sides.
 
  Methods defined here:
__init__(self, groups, n=10, exp=0, weap=4, arm=2, resign=0.10000000000000001, flee=0.29999999999999999, name=u'unknown army', source=None, sprache=u'Esperanto', leaderpars=None, enemy=None)
count(self)

Methods inherited from Group:
__repr__(self)
command(self)
Give the orders, plan strategy & tactics and motivate your men!
fleeresigncheck(self)
get_enemy(self, enemy)
readout_charakter_kampfwerte(self)
Read the character and return the battle-relevant values.
readout_charakter_sprache(self)
Read the character and return the values which are relevant for name-generation.
rearrange_lines(self)
resumee(self)

 
class Char
    A single soldier.
 
  Methods defined here:
__init__(self, host=None, exp=0, weap=4, arm=2, base_tp=24, base_attack=12, morale=12, sprache=u'Esperanto')
__repr__(self)
checkalive(self)
checkmorale(self)
damage(self, tp, ws, hws)
name()

 
class Group
    A group of fighters of one type
 
  Methods defined here:
__init__(self, n=10, exp=0, weap=4, arm=2, resign=0.10000000000000001, flee=0.29999999999999999, name=u'unknown group', source=None, sprache=u'Esperanto', leaderpars=None, enemy=None)
__repr__(self)
command(self)
Give the orders, plan strategy & tactics and motivate your men!
count(self)
fleeresigncheck(self)
get_enemy(self, enemy)
readout_charakter_kampfwerte(self)
Read the character and return the battle-relevant values.
readout_charakter_sprache(self)
Read the character and return the values which are relevant for name-generation.
rearrange_lines(self)
resumee(self)

 
class Hero(Char)
    A battle hero. Might be external or emerging from battle
 
  Methods defined here:
__init__(self, host=None, exp=3, weap=4, arm=2, base_tp=24, base_attack=12, morale=18, source=u'Mensch')
checkmorale(self)
motivate(self)

Methods inherited from Char:
__repr__(self)
checkalive(self)
damage(self, tp, ws, hws)
name()

 
class Leader(Char)
    A leader of an Army or group.
 
  Methods defined here:
__init__(self, host=None, exp=0, weap=4, arm=2, base_tp=24, base_attack=12, morale=12, strategy_skill=12, tactics_skill=15, speech_skill=12, source=u'Mensch')
__repr__(self)
plan(self)
speak(self)

Methods inherited from Char:
checkalive(self)
checkmorale(self)
damage(self, tp, ws, hws)
name()

 
Functions
       
battle(armies)
Let two groups fight against each other for one single round.
check(skill, MW)
Check if a given skill test reached a min-value (wrapper for a function in pmw6).
ews()
Do one roll with the plusminus d6 die (wrapper for a function in pmw6).
fight(chars, bias)
Calculate a fight between two individuals with the One Roll battle-System
ocheck(skill, MW)
Return the degree of success / failure for a skill check (wrapper for a function in pmw6).
powercheck(Armies)
Compare the ratio between fighters who are arlive in each army (but not necessarily able to fight).

 
Data
        atscatter = [2, 1]
biascutoff = 8
biasfactor = 1.3999999999999999
biasmultiplier = 4.0
exp_logfactor = 1.5
expfactor = 0.33333333333333331
flee = []
inactvalue = 0.69999999999999996
name_objekt = <namen.Name instance>
powervalue = 0.20000000000000001
verbose = False
woundvalue = 0.40000000000000002