Arturs Kozlovskis 201253737
Objects Class Reference
#include <Objects.h>
Public Member Functions | |
| Objects () | |
| Constructor. | |
| void | draw_base (N5110 &lcd) |
| Draw the base of the game. | |
| void | cannon_position (Gamepad &pad) |
| Update the cannon position. | |
| void | draw_cannon (N5110 &lcd) |
| Draw a cannon. | |
| void | draw_shots (N5110 &lcd, Gamepad &pad, bool c) |
| Draw shots. | |
| void | draw_ball (N5110 &lcd, int ball_x, int ball_y, int delta_r) |
| Draw ball. | |
| int | get_size () |
| Get size value of _shot_y_pos vector. | |
| int | get_x_value (int i) |
| Get x value. | |
| int | get_y_value (int i) |
| Get y value. | |
| void | erase_shot (int i) |
| Erase a shot. | |
| int | get_x_cannon () |
| Get cannon x position. | |
Detailed Description
Objects class.
draws game objects on the lcd screen
- Date:
- April,2020
Definition at line 14 of file Objects.h.
Constructor & Destructor Documentation
| Objects | ( | ) |
Constructor.
Definition at line 17 of file Objects.cpp.
Member Function Documentation
| void cannon_position | ( | Gamepad & | pad ) |
Update the cannon position.
- Parameters:
-
Gamepad class object
Definition at line 32 of file Objects.cpp.
| void draw_ball | ( | N5110 & | lcd, |
| int | ball_x, | ||
| int | ball_y, | ||
| int | delta_r | ||
| ) |
Draw ball.
- Parameters:
-
N5110 calss object ball_x ball x position(int) ball_y ball y position(int) delta_r ball's radiuss(int)
Definition at line 81 of file Objects.cpp.
| void draw_base | ( | N5110 & | lcd ) |
| void draw_cannon | ( | N5110 & | lcd ) |
Draw shots.
Definition at line 57 of file Objects.cpp.
| void erase_shot | ( | int | i ) |
Erase a shot.
- Parameters:
-
i which shot value to erase(int)
Definition at line 101 of file Objects.cpp.
| int get_size | ( | ) |
Get size value of _shot_y_pos vector.
- Returns:
- size of vector
Definition at line 86 of file Objects.cpp.
| int get_x_cannon | ( | ) |
| int get_x_value | ( | int | i ) |
Get x value.
- Parameters:
-
i which shot value to return(int)
- Returns:
- shot x value
Definition at line 91 of file Objects.cpp.
| int get_y_value | ( | int | i ) |
Get y value.
- Parameters:
-
i which shot value to return(int)
- Returns:
- shot y value
Definition at line 96 of file Objects.cpp.
Generated on Thu Jul 14 2022 06:47:19 by
1.7.2