Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Map Class Reference
#include <Map.h>
Inherits Position.
Public Member Functions | |
| Map () | |
| Constructor. | |
| ~Map () | |
| Destructor. | |
| void | init (Gamepad &pad) |
| Initialises Spaceship. | |
| void | draw_map (N5110 &lcd, Direction d_) |
| Draws map out of combination of random triangle hight and random length lines so map is different each new game and loops round at ends. | |
| int | get_position_x_map () |
| Gets x postion of the map for testing. | |
| int | get_length_map () |
| Gets map length. | |
Private Member Functions | |
| Vector2D | get_pos () |
| Gets the xy position of the sprite. | |
Private Attributes | |
| int | position_x_ |
| X position on lcd. | |
| int | position_y_ |
| Y position on lcd. | |
| bool | direction_ |
| Movement direction. | |
Detailed Description
Map class.
Draws
- Date:
- April 2020
Definition at line 14 of file Map.h.
Constructor & Destructor Documentation
Member Function Documentation
| void draw_map | ( | N5110 & | lcd, |
| Direction | d_ | ||
| ) |
| int get_position_x_map | ( | ) |
Generated on Fri Aug 5 2022 06:55:08 by
1.7.2