Mochu Yao explorer game
Dependencies: mbed
Surface/surface.h
- Committer:
- el17my
- Date:
- 2020-04-28
- Revision:
- 26:4d193529b447
- Parent:
- 24:d7a794fd1228
- Child:
- 27:354d91d59b6d
File content as of revision 26:4d193529b447:
#ifndef LINE_H #define LINE_H #include "mbed.h" struct Line { int length; int left; int right; int y; }; //the surface function is to creat the surface for player to stand on and move class Surface { public: Surface(); ~Surface(); void init(int y1, int y2); //init the line at first to set the initial position void line_1(); void line_2(); void line_3(); void line_4(); void line_5(); void line_6(); Line getline_1(); Line getline_2(); Line getline_3(); Line getline_4(); Line getline_5(); Line getline_6(); private: Line _line_1; Line _line_2; Line _line_3; Line _line_4; Line _line_5; Line _line_6; }; #endif