test avoid bulled game

Dependencies:   C12832_lcd LCD_fonts mbed mbed-rtos

Stage.cpp

Committer:
th_mbed
Date:
2016-12-05
Revision:
12:c74115744b24
Child:
13:70e31c1d8205

File content as of revision 12:c74115744b24:

#include "point.h"
#include "models.h"

Stage::Stage(int v){
    this->v = v;
    length = STEP_NUM;
    for(int i = 0; i < STEP_NUM; i++){
        stage[i].x = LCD_X - i * STEP_SIZE - 1;
        stage[i].y = 1;    
    }    
}

Stage::getStage(point* stage){
    stage = this->stage;
    return stage;
}