Ejemplo n.º 1
0
        /*!
         * \fn void createOrbitalStationSquare(int i, int j)
         * \brief Cree une case Station Orbitale
         * \param i l'abscisse de la case
         * \param j l'ordonnee de la case
         * \return
         */
        public void createOrbitalStationSquare(int i, int j)
        {
            SolidColorBrush[]        colorTabs = { new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Blue), new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Yellow) };
            OrbitalStationSquareView s         = new OrbitalStationSquareView(this, colorTabs[nbOrbitalStationCreated]);

            addSquareToGame(s, i, j);
            if (nbOrbitalStationCreated < 4)
            {
                nbOrbitalStationCreated++;
            }
        }
Ejemplo n.º 2
0
 /*!
 * \fn void createOrbitalStationSquare(int i, int j)
 * \brief Cree une case Station Orbitale
 * \param i l'abscisse de la case
 * \param j l'ordonnee de la case
 * \return
 */
 public void createOrbitalStationSquare(int i, int j)
 {
     SolidColorBrush[] colorTabs = { new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Blue),  new SolidColorBrush(Colors.Green),new SolidColorBrush(Colors.Yellow) };
     OrbitalStationSquareView s = new OrbitalStationSquareView(this, colorTabs[nbOrbitalStationCreated]);
     addSquareToGame(s, i, j);
     if (nbOrbitalStationCreated < 4) nbOrbitalStationCreated++;
 }