test avoid bulled game

Dependencies:   C12832_lcd LCD_fonts mbed mbed-rtos

Committer:
th_mbed
Date:
Mon Dec 05 12:01:14 2016 +0000
Revision:
12:c74115744b24
Child:
13:70e31c1d8205
modify Person and add Stage.; But Stage always returns all 1 height stage.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
th_mbed 12:c74115744b24 1 #include "point.h"
th_mbed 12:c74115744b24 2 #include "models.h"
th_mbed 12:c74115744b24 3
th_mbed 12:c74115744b24 4 Stage::Stage(int v){
th_mbed 12:c74115744b24 5 this->v = v;
th_mbed 12:c74115744b24 6 length = STEP_NUM;
th_mbed 12:c74115744b24 7 for(int i = 0; i < STEP_NUM; i++){
th_mbed 12:c74115744b24 8 stage[i].x = LCD_X - i * STEP_SIZE - 1;
th_mbed 12:c74115744b24 9 stage[i].y = 1;
th_mbed 12:c74115744b24 10 }
th_mbed 12:c74115744b24 11 }
th_mbed 12:c74115744b24 12
th_mbed 12:c74115744b24 13 Stage::getStage(point* stage){
th_mbed 12:c74115744b24 14 stage = this->stage;
th_mbed 12:c74115744b24 15 return stage;
th_mbed 12:c74115744b24 16 }