home *** CD-ROM | disk | FTP | other *** search
/ Freelog 17 / Freelog017.iso / BeOS / ababelone / Sources / PlateauDeJeu.h < prev    next >
C/C++ Source or Header  |  2000-11-11  |  2KB  |  48 lines

  1. /*
  2.     Copyright (C) 2000 by Herv├⌐ PHILIPPE <rv@bemail.org>
  3.  
  4.     This library is free software; you can redistribute it and/or
  5.     modify it under the terms of the GNU Library General Public
  6.     License as published by the Free Software Foundation; either
  7.     version 2 of the License, or (at your option) any later version.
  8.  
  9.     This library is distributed in the hope that it will be useful,
  10.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.     Library General Public License for more details.
  13.  
  14.     You should have received a copy of the GNU Library General Public
  15.     License along with this library; if not, write to the Free
  16.     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. */
  18.  
  19. #ifndef _PLATEAUDEJEU_H_
  20. #define _PLATEAUDEJEU_H_
  21.  
  22. #include <SupportDefs.h>    // Pour uint8
  23.  
  24. #define NOMBRE_JOUEURS_MAXI        3    // Nombre maximum de joueurs possibles
  25.  
  26. class PlateauDeJeu
  27. {
  28. // FONCTIONS
  29.     public:
  30.                         PlateauDeJeu(uint8 nombre_boules, uint8 nombre_joueurs);
  31.         int8            CouleurBoule(int8 numero_boule);
  32.         uint8            NombreBoulesCouleur();
  33.         uint8            NombreJoueurs();
  34.         uint8            JoueurPrecedent(uint8 joueur_courant);
  35.         uint8            JoueurSuivant(uint8 joueur_courant);
  36.         virtual    void    ChangerNombreBoules(uint8 nombre_boules);
  37.         void            ChangerNombreJoueurs(uint8 nombre_joueurs);
  38.  
  39. // VARIABLES ET CONSTANTES
  40.     protected:
  41.     // nombre total de boules sur le plateau de jeu
  42.         uint8    m_NombreBoules;
  43.     // nombre total de joueurs
  44.         uint8    m_NombreJoueurs;
  45. };
  46.  
  47. #endif
  48.