Farkle Game Code-Final

Dependencies:   mbed 4DGL-uLCD-SE PinDetect

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers diceMath.h Source File

diceMath.h

00001 //This file contains all the function prototypes for diceMath.cpp
00002 #ifndef DICEMATH_H
00003 #define DICEMATH_H
00004 
00005 class Dice{
00006     public:
00007         Dice(); //Constructor
00008         
00009         //Function prototypes
00010         void accelerometer();
00011         void startDiceRoll();
00012         void rollDice(int[]);
00013         int rollDie();
00014         void displayStartScreen(int);
00015         void displayDiceOutline(int currPos);
00016         void displayDiceNumber(int currPos, int currValue);
00017         
00018         //Setters and Getters
00019         void setTakeaway(int);
00020         void setSetTakeaway(int input);
00021         int getTakeaway();
00022         void setNumOfDice();
00023         int getNumOfDice();
00024         void setNumberOfDice(int);
00025         int getDiceResult(int[], int);
00026         int getGetDiceResults(int);
00027         void setDiceResult (int[], int position, int value);
00028         void setSetDiceResult (int position, int value);
00029         
00030     private:
00031         int numberOfDice;
00032         int diceResults[7];
00033         int takeaway;
00034 };  //end of class
00035 #endif