Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed 4DGL-uLCD-SE PinDetect
die.h
- Committer:
- klin315
- Date:
- 2021-10-26
- Revision:
- 0:8ee41d0deef7
- Child:
- 1:3cd6e5938144
File content as of revision 0:8ee41d0deef7:
#define WHITE 0xFFFFFF
#define BLACK 0x000000
#ifndef DIE_H
#define DIE_H
#include "mbed.h"
#include "uLCD_4DGL.h"
#include <string>
class Die {
private:
int value;
public:
Die();
Die(int);
void rollDie();
void displayOneDice(int, uLCD_4DGL&);
void displayTwoDice(int, uLCD_4DGL&);
void displayThreeDice(int, uLCD_4DGL&);
void displayFourDice(int, uLCD_4DGL&);
void displayFiveDice(int, uLCD_4DGL&);
void displaySixDice(int, uLCD_4DGL&);
//display drawings
void displayDie(int, uLCD_4DGL&);
//val s&g
int getValue();
void setValue(int);
};
#endif