<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

  <path>gears.ac</path>

  <animation>
    <object-name>fond</object-name>
    <object-name>info</object-name>
    <object-name>gearslevel</object-name>
    <object-name>NozeGreen</object-name>
    <object-name>LeftGreen</object-name>
    <object-name>RightGreen</object-name>
    <object-name>NozeRed</object-name>
    <object-name>LeftRed</object-name>
    <object-name>RightRed</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
    <object-name>info</object-name>
    <object-name>gearslevel</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>info</object-name>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   0.5 </red>
      <green> 0.4 </green>
      <blue>  0.3 </blue>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <object-name>NozeGreen</object-name>
    <object-name>LeftGreen</object-name>
    <object-name>RightGreen</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <red>   0 </red>
      <green> 2 </green>
      <blue>  0 </blue>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <object-name>NozeRed</object-name>
    <object-name>LeftRed</object-name>
    <object-name>RightRed</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <red>   2 </red>
      <green> 0 </green>
      <blue>  0 </blue>
    </emission>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>gearslevel</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 95 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Lampes vertes allumées si train sortie -->
  <animation>
    <type>select</type>
    <object-name>NozeGreen</object-name>
    <condition>
      <equals>
        <property>gear/gear[0]/position-norm</property>
        <value> 1 </value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>LeftGreen</object-name>
    <condition>
      <equals>
        <property>gear/gear[1]/position-norm</property>
        <value> 1 </value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>RightGreen</object-name>
    <condition>
      <equals>
        <property>gear/gear[2]/position-norm</property>
        <value> 1 </value>
      </equals>
    </condition>
  </animation>

  <!-- Lampes rouges allumées si train rentré -->
  <animation>
    <type>select</type>
    <object-name>NozeRed</object-name>
    <condition>
      <equals>
        <property>gear/gear[0]/position-norm</property>
        <value> 0 </value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>LeftRed</object-name>
    <condition>
      <equals>
        <property>gear/gear[1]/position-norm</property>
        <value> 0 </value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>RightRed</object-name>
    <condition>
      <equals>
        <property>gear/gear[2]/position-norm</property>
        <value> 0 </value>
      </equals>
    </condition>
  </animation>

</PropertyList>
