diff options
author | Dmitry Mikhirev | 2014-10-23 22:57:51 +0400 |
---|---|---|
committer | Dmitry Mikhirev | 2014-10-23 22:57:51 +0400 |
commit | 6a6d104f35b57f1dcdd966f354b2beca73310fe4 (patch) | |
tree | 4e8d8802baabdcb59713e80fd50375d1e2413fb4 /game.h | |
parent | 89711b175e318ba17b9e1504382e16c88cafbeea (diff) | |
download | brainuino-6a6d104f35b57f1dcdd966f354b2beca73310fe4.tar.gz brainuino-6a6d104f35b57f1dcdd966f354b2beca73310fe4.tar.bz2 brainuino-6a6d104f35b57f1dcdd966f354b2beca73310fe4.tar.xz brainuino-6a6d104f35b57f1dcdd966f354b2beca73310fe4.zip |
major code revision
Diffstat (limited to 'game.h')
-rw-r--r-- | game.h | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -1,7 +1,7 @@ /* Brainuino Aleph - Copyright (C) 2011 Dmitry Mikhirev + Copyright (C) 2011, 2014 Dmitry Mikhirev 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 @@ -21,17 +21,21 @@ #define game_h // game types -#define BRAIN 0 -#define SI 1 -#define CHGK 2 +enum game_t { + BRAIN , + SI, + CHGK, +}; //question status -#define CORRECT 1 -#define WRONG 0 -#define NOREPLY -1 - -uint8_t gameType; -uint8_t withFalseStart; +enum answer_t { + CORRECT = 1, + WRONG = 0, + NOREPLY = -1, +}; + +game_t gameType; +bool withFalseStart; uint8_t timer1; uint8_t timer2; //uint32_t timer; |