/*! * \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++; } }
/*! * \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++; }