/***************************************************************************
dice.h - description
-------------------
begin : dim déc 29 2002
copyright : (C) 2002 by
email :
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef DICE_H
#define DICE_H
/**This class implements a dice : roll it with its static method to obtain a random number between 1 and 6
*@author
*/
class Dice {
public:
Dice();
~Dice();
/** rolls the dice.
@param max the maximum of the dice (six by default)
@return a random integer between one and the argument (six by default) */
static unsigned int roll(unsigned int max=6);
};
#endif
| Generated by: gael on noirdes.limsi.u-psud.fr on Fri Jan 3 17:03:38 2003, using kdoc 2.0a53. |