![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
testing documentation
Dependencies: mbed ll16j23s_test_docs
Diff: SnakeBody/SnakeBody.h
- Revision:
- 7:dd84e0fab346
- Parent:
- 6:6c9453397f4a
- Child:
- 8:bcc3403d7e79
--- a/SnakeBody/SnakeBody.h Sat May 23 20:01:00 2020 +0000 +++ b/SnakeBody/SnakeBody.h Sun May 24 22:18:55 2020 +0000 @@ -21,7 +21,7 @@ void init(); void snake_movement(Gamepad &pad); void draw_body(N5110 &lcd); - void snake_snake_collision(Gamepad &pad, bool &death); //(int _x_head, int _y_head, vector<int> _body_x, vector<int> _body_y, int _length); + void snake_snake_collision(Gamepad &pad); //(int _x_head, int _y_head, vector<int> _body_x, vector<int> _body_y, int _length); int _state; int _x_head; @@ -30,14 +30,7 @@ std::vector<int> _body_x; std::vector<int> _body_y; - /* - void init(int x,int height,int width); - void draw(N5110 &lcd); - void update(Direction d,float mag); - void add_score(); - int get_score(); - Vector2D get_pos(); - */ + private: int update_direction(float _angle, int _x_head, int _y_head); //int _angle, int _x_head, int _y_head @@ -47,13 +40,5 @@ float _angle; int _d; - /* - int _height; - int _width; - int _x; - int _y; - int _speed; - int _score; - */ }; #endif \ No newline at end of file