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

<PropertyList>

  <path>gear.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>base</object-name>
    <object-name>nozeGON</object-name>
    <object-name>leftGON</object-name>
    <object-name>rightGON</object-name>
    <object-name>nozeRON</object-name>
    <object-name>leftRON</object-name>
    <object-name>rightRON</object-name>

    <!-- Objets transparents -->
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>base</object-name>
    <object-name>nozeGON</object-name>
    <object-name>leftGON</object-name>
    <object-name>rightGON</object-name>
    <object-name>nozeRON</object-name>
    <object-name>leftRON</object-name>
    <object-name>rightRON</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>nozeGON</object-name>
    <object-name>leftGON</object-name>
    <object-name>rightGON</object-name>
    <object-name>nozeRON</object-name>
    <object-name>leftRON</object-name>
    <object-name>rightRON</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <red>   2 </red>
      <green> 2 </green>
      <blue>  2 </blue>
    </emission>
  </animation>

  <!-- Lampe verte allumée si train sortie -->
  <animation>
    <type>select</type>
    <object-name>nozeGON</object-name>
    <condition>
      <equals>
        <property>gear/gear[0]/position-norm</property>
        <value>1</value>
      </equals>
    </condition>
  </animation>

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

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

  <!-- Lampe rouge allumée si train rentré -->
  <animation>
    <type>select</type>
    <object-name>nozeRON</object-name>
    <condition>
      <equals>
        <property>gear/gear[0]/position-norm</property>
        <value>0</value>
      </equals>
    </condition>
  </animation>

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

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

</PropertyList>
