Exemple #1
0
#################### read all Feats ##############################################
from rules.Feats import readFeatsFromFile
feats = readFeatsFromFile(os.path.join(basedir, "res/Sonderfertigkeiten.xml"))

#################### read all Races ############################################
from rules.Race import readAllRaces
races = readAllRaces(os.path.join(basedir, "res/Rassen"))

#################### read Skilltree ############################################
from rules.Skilltree import readSkillTreeFromXML
defaultSkillTree = readSkillTreeFromXML(os.path.join(basedir, "res/SkillTree.xml"))

#################### read Arsenal ##############################################
from rules.Arsenal import readWeaponsFromXML
weapons = readWeaponsFromXML(os.path.join(basedir, "res/Arsenal.xml"))

#################### read Maneuvers ##############################################
from rules.Maneuvers import readManeuversFromXML
maneuvers = readManeuversFromXML(os.path.join(basedir, "res/Manoever.xml"))


#### TEMP ####
from rules.Character import readCharacterFromXML
nostro = readCharacterFromXML(os.path.join(basedir, "res/Charactere/Nostro.xml"))
hieb = maneuvers["Hieb"]
faust = weapons["Faust"]

# conversion for interactive console
def u(s):
    return unicode(s, "utf-8")