pp
Dependencies: mbed
Game.cpp@4:a61cdd4e7afa, 2015-12-05 (annotated)
- Committer:
- NamSom
- Date:
- Sat Dec 05 19:01:26 2015 +0000
- Revision:
- 4:a61cdd4e7afa
- Parent:
- 1:ba7154d2d7ca
Game3 underdevelopment
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
NamSom | 1:ba7154d2d7ca | 1 | #include"Game.h" |
NamSom | 4:a61cdd4e7afa | 2 | |
NamSom | 4:a61cdd4e7afa | 3 | Game::Game(){level=1;} |
NamSom | 4:a61cdd4e7afa | 4 | int Game::randomHex(float x) {return (int)(x*1000)%16;} |
NamSom | 4:a61cdd4e7afa | 5 | int checkButton(int x) {return x;} |
NamSom | 4:a61cdd4e7afa | 6 | int Game::getlevel() {return level;} |
NamSom | 4:a61cdd4e7afa | 7 | void Game::resetlevel() {level = 0;} |
NamSom | 4:a61cdd4e7afa | 8 | void Game::pluslevel() {if(level<4)level++;} |