Ben Evans University Second Year Project. Game Called Defender.
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