ECE_4180_Project / Mbed 2 deprecated Farkle_main

Dependencies:   4DGL-uLCD-SE PinDetect mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers farkel_class.h Source File

farkel_class.h

00001 #ifndef farkel_class_H
00002 #define farkel_class_H
00003 #include <stdio.h>      /* printf */
00004 #include <ctime>       /* time_t, struct tm, difftime, time, mktime */
00005 #include "die.h"
00006 #include "uLCD_4DGL.h"
00007 #include "PinDetect.h"
00008 
00009 
00010 class farkel{
00011     
00012     public:
00013         farkel();
00014         farkel(int randomNum);
00015         void dicePlacer(int dicePlace,int identity,int gameScore);
00016         int roll();
00017         void testPrint(int flag);
00018         void clearSc();
00019         void mainMenu(int diceNum);
00020         int diceNumInc(int dicenum);  
00021         //int whileBrake(int mainMenuFlag); 
00022         int gameScoring();
00023         bool tripCheck();
00024         bool dubCheck();
00025         void printfark();
00026         int resetDie(int diceNum,int scorehold);
00027         int scoreingScreen(int gameScore);
00028         int back2MainMenu();
00029         int butDetect(int gameScore);
00030     private:
00031         int diceColor;
00032         int identity;
00033         int score;
00034         int holder1;
00035         int holder2;
00036 
00037     
00038     
00039     };
00040 
00041 
00042 #endif