Ejemplo n.º 1
0
 public CBaseRoulante(CCanAppli gestionCan)
 {
     m_gestionCan = gestionCan;
 }
Ejemplo n.º 2
0
 public void initialiser(couleur myColor, int myPosition)
 {
     //Init can
     m_gestionCan = new CCanAppli();
     //Init m_baseRoulante
     m_baseRoulante = new CBaseRoulante(m_gestionCan);
     switch (myColor)
     {
         case couleur.NONE:
             break;
         case couleur.JESUISBLEU:
             m_baseRoulante.initialiser(40, 0x42, myPosition); // Base roulante initialisée à 0x42 = 'B' pour Bleu
             m_myEtat.sens = 0x41;
             break;
         case couleur.JESUISROUGE:
             m_baseRoulante.initialiser(40, 0x52, myPosition); // Base roulante intialisée à 0x52 = 'R' pour Rouge
             m_myEtat.sens = 0x52;
             break;
         default:
             break;
     }
     m_baseRoulante.positionRequest(ref m_myEtat.coordonnees);
 }