Softwareumgebung:Konfigurationsdatei

Aus Kicker
Zur Navigation springenZur Suche springen

Folgende Datei beinhaltet die meisten Konfigurationen. Sie ist ausführlich kommentiert um den Aufbau zu erläutern. Änderungen an den Werten können angewandt werden, ohne den Quellcode verändern zu müssen, die Struktur muss jedoch erhalten bleiben. Die entsprechende Datei, die im Betrieb verwendet wird, ist nicht mit Kommentaren versehen, da diese die Funktionalität von tinyxml beeinträchtigt haben.

<source lang="xml">

<?xml version="1.0" encoding="utf-8"?> <profile>

 <connections>
   <localhost host="localhost" />
   <SPServer host="localhost" port="50000" />
   <Ball host="localhost" port="50001" />
   <Gui host="localhost" port="60002" />
   <KiSPServer host="localhost" port="60000" />
   <KiBall host="localhost" port="60001" />
   <KiGui host="localhost" port="50002" />
   <HighScore host="localhost" port="60020" />
 </connections>
 <dimensions>
 
   <field depth="690" breadth="1200">
     <goal width="198" />
   </field>
   <axis>
   
     <one>
       <figure pos="221" />
       <shift value="241" />
       <pos x="75" />
     </one>
     <two>
       <figure pos="38" />
       <figure pos="270" />
       <shift value="377" />
       <pos x="225" />
     </two>
     
     <three>
       <figure pos="38" />
       <figure pos="159" />
       <figure pos="280" />
       <figure pos="401" />
       <figure pos="522" />
       <shift value="120" />
       <pos x="525" />
     </three>
     
     <four>
       <figure pos="38" />
       <figure pos="221" />
       <figure pos="404" />
       <shift value="233" />
       <pos x="825" />
     </four>
     
     <distance value="150" />
     <offset value="6" />
   </axis>
   
   <velocity trans="2000" rot="4285" />
   
   <figure breadth="22" height="72" thickness="11" fielddistance="8" />
   
   <ball diameter="33" toaxisshootable="45" toaxisreachable="64" />
   
 </dimensions>
 
 
 <states>
 
   <values>
   
     <game>
       <running default="0" min="0" max="1" />
       <computerscore default="0" min="0" max="10" />
       <humanscore default="0" min="0" max="10" />
     </game>
     
     <global>
       <ready default="0" min="0" max="8" />
     </global>
     
     <config>
       <ready default="0" min="0" max="1" />
     </config>
     
     <knowledgebase>
       <ready default="0" min="0" max="1" />
     </knowledgebase>
     
     <ball>
       <ready default="0" min="0" max="1" />
     </ball>
     
     <kicker>
       <ready default="0" min="0" max="1" />
     </kicker>
     
     <axis1computer>
       <ready default="0" min="0" max="1" />
       <blocking default="0" min="0" max="1" />
       <moving default="0" min="-10" max="10" />
       <shooting default="0" min="0" max="1" />
       <wobbling default="0" min="-1" max="1" />
     </axis1computer>
     
     <axis2computer>
       <ready default="0" min="0" max="1" />
       <blocking default="0" min="0" max="1" />
       <moving default="0" min="-10" max="10" />
       <shooting default="0" min="0" max="1" />
       <wobbling default="0" min="-1" max="1" />
     </axis2computer>
     
     <axis3computer>
       <ready default="0" min="0" max="1" />
       <blocking default="0" min="0" max="1" />
       <moving default="0" min="-10" max="10" />
       <shooting default="0" min="0" max="1" />
       <wobbling default="0" min="-1" max="1" />
     </axis3computer>
     
     <axis4computer>
       <ready default="0" min="0" max="1" />
       <blocking default="0" min="0" max="1" />
       <moving default="0" min="-10" max="10" />
       <shooting default="0" min="0" max="1" />
       <wobbling default="0" min="-1" max="1" />
     </axis4computer>
     
     <axis1human>
       <ready default="0" min="0" max="1" />
       <blocking default="0" min="0" max="1" />
       <moving default="0" min="-10" max="10" />
       <shooting default="0" min="0" max="1" />
       <wobbling default="0" min="-1" max="1" />
     </axis1human>
     
     <axis2human>
       <ready default="0" min="0" max="1" />
       <blocking default="0" min="0" max="1" />
       <moving default="0" min="-10" max="10" />
       <shooting default="0" min="0" max="1" />
       <wobbling default="0" min="-1" max="1" />
     </axis2human>
     
     <axis3human>
       <ready default="0" min="0" max="1" />
       <blocking default="0" min="0" max="1" />
       <moving default="0" min="-10" max="10" />
       <shooting default="0" min="0" max="1" />
       <wobbling default="0" min="-1" max="1" />
     </axis3human>
     
     <axis4human>
       <ready default="0" min="0" max="1" />
       <blocking default="0" min="0" max="1" />
       <moving default="0" min="-10" max="10" />
       <shooting default="0" min="0" max="1" />
       <wobbling default="0" min="-1" max="1" />
     </axis4human>
     
     <ballpos>
       <computerpossession default="0" min="0" max="1" />
       <humanpossession default="0" min="0" max="1" />
       <speed default="0" min="-10" max="10" />
     </ballpos>
     
     <ballpostoaxis1computer>
       <holdable default="0" min="0" max="10" />
       <passable default="0" min="0" max="10" />
       <shootable default="0" min="0" max="10" />
       <handable default="0" min="0" max="10" />
     </ballpostoaxis1computer>
     
     <ballpostoaxis2computer>
       <holdable default="0" min="0" max="10" />
       <passable default="0" min="0" max="10" />
       <shootable default="0" min="0" max="10" />
       <handable default="0" min="0" max="10" />
     </ballpostoaxis2computer>
     
     <ballpostoaxis3computer>
       <holdable default="0" min="0" max="10" />
       <passable default="0" min="0" max="10" />
       <shootable default="0" min="0" max="10" />
       <handable default="0" min="0" max="10" />
     </ballpostoaxis3computer>
     
     <ballpostoaxis4computer>
       <holdable default="0" min="0" max="10" />
       <passable default="0" min="0" max="10" />
       <shootable default="0" min="0" max="10" />
       <handable default="0" min="0" max="10" />
     </ballpostoaxis4computer>
     
     <ballpostoaxis1human>
       <holdable default="0" min="0" max="10" />
       <passable default="0" min="0" max="10" />
       <shootable default="0" min="0" max="10" />
       <handable default="0" min="0" max="10" />
     </ballpostoaxis1human>
     
     <ballpostoaxis2human>
       <holdable default="0" min="0" max="10" />
       <passable default="0" min="0" max="10" />
       <shootable default="0" min="0" max="10" />
       <handable default="0" min="0" max="10" />
     </ballpostoaxis2human>
     
     <ballpostoaxis3human>
       <holdable default="0" min="0" max="10" />
       <passable default="0" min="0" max="10" />
       <shootable default="0" min="0" max="10" />
       <handable default="0" min="0" max="10" />
     </ballpostoaxis3human>
     
     <ballpostoaxis4human>
       <holdable default="0" min="0" max="10" />
       <passable default="0" min="0" max="10" />
       <shootable default="0" min="0" max="10" />
       <handable default="0" min="0" max="10" />
     </ballpostoaxis4human>
   </values>
   
   <links>
     <game></game>
     <global>
       <updates group="game" state="running" />
     </global>
     <config>
       <updates group="global" state="ready" />
     </config>
     <knowledgebase>
       <updates group="global" state="ready" />
     </knowledgebase>
     <ball>
       <updates group="global" state="ready" />
     </ball>
     <kicker>
       <updates group="global" state="ready" />
     </kicker>
     <axis1computer>
       <updates group="global" state="ready" />
     </axis1computer>
     <axis2computer>
       <updates group="global" state="ready" />
     </axis2computer>
     <axis3computer>
       <updates group="global" state="ready" />
     </axis3computer>
     <axis4computer>
       <updates group="global" state="ready" />
     </axis4computer>
     <axis1human></axis1human>
     <axis2human></axis2human>
     <axis3human></axis3human>
     <axis4human></axis4human>
     <ballpos></ballpos>
     <ballpostoaxis1computer></ballpostoaxis1computer>
     <ballpostoaxis2computer></ballpostoaxis2computer>
     <ballpostoaxis3computer></ballpostoaxis3computer>
     <ballpostoaxis4computer></ballpostoaxis4computer>
     <ballpostoaxis1human></ballpostoaxis1human>
     <ballpostoaxis2human></ballpostoaxis2human>
     <ballpostoaxis3human></ballpostoaxis3human>
     <ballpostoaxis4human></ballpostoaxis4human>
   </links>
 </states>
 <shootoffset>
   <byRotation>
     <shoot angle="0" offset="0" />
     <shoot angle="10" offset="18" />
     <shoot angle="20" offset="20" />
     <shoot angle="30" offset="22" />
     <shoot angle="45" offset="25" />
   </byRotation>
   
   <byTranslation>
     <shoot angle="50" offset="20" />
     <shoot angle="60" offset="17" />
     <shoot angle="70" offset="15" />
     <shoot angle="80" offset="13" />
     <shoot angle="90" offset="0" />
   </byTranslation>
 </shootoffset>


 <other>
 </other>

</profile>

</source>