Some cleans up, renames STATE
to State
and fixes a typo
This commit is contained in:
parent
21edd5c968
commit
c4f5edbba0
@ -10,7 +10,7 @@ typedef enum
|
||||
EMPTY,
|
||||
FILLED
|
||||
|
||||
} STATE;
|
||||
} State;
|
||||
|
||||
|
||||
class Case
|
||||
@ -20,10 +20,10 @@ class Case
|
||||
Case();
|
||||
|
||||
unsigned int getValue(void) const;
|
||||
STATE getState(void) const;
|
||||
State getState(void) const;
|
||||
|
||||
void setValue(unsigned int);
|
||||
void setState(STATE);
|
||||
void setState(State);
|
||||
|
||||
~Case();
|
||||
|
||||
@ -31,7 +31,7 @@ class Case
|
||||
|
||||
unsigned int value;
|
||||
|
||||
STATE state;
|
||||
State state;
|
||||
|
||||
};
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
void game(int*, char**);
|
||||
void initialisationGlut(int*, char**);
|
||||
void initializationGlut(int*, char**);
|
||||
void display(void);
|
||||
void reshape(int, int);
|
||||
void special(int, int, int);
|
||||
|
@ -14,7 +14,7 @@ unsigned int Case::getValue(void) const
|
||||
}
|
||||
|
||||
|
||||
STATE Case::getState(void) const
|
||||
State Case::getState(void) const
|
||||
{
|
||||
return state;
|
||||
}
|
||||
@ -26,7 +26,7 @@ void Case::setValue(unsigned int v)
|
||||
}
|
||||
|
||||
|
||||
void Case::setState(STATE s)
|
||||
void Case::setState(State s)
|
||||
{
|
||||
state = s;
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ void game(int *argc, char **argv)
|
||||
{
|
||||
srand(time(NULL));
|
||||
|
||||
initialisationGlut(argc, argv);
|
||||
initializationGlut(argc, argv);
|
||||
|
||||
getRandomNewCase();
|
||||
getRandomNewCase();
|
||||
|
@ -4,7 +4,7 @@
|
||||
extern Case matrice[GRID][GRID];
|
||||
|
||||
|
||||
void initialisationGlut(int *argc, char **argv)
|
||||
void initializationGlut(int *argc, char **argv)
|
||||
{
|
||||
glutInit(argc, argv);
|
||||
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE);
|
||||
|
@ -1,7 +1,9 @@
|
||||
#include "../inc/header.h"
|
||||
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
game(&argc, argv);
|
||||
|
Reference in New Issue
Block a user