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.
Bullet Class Reference
#include <shot.h>
Public Member Functions | |
Bullet () | |
Constructor. | |
~Bullet () | |
Destructor. | |
void | init (int x, int y, int sizeX, int sizeY) |
Initialize the position and the size of the bullet. | |
void | draw (N5110 &lcd) |
draw the image of the bullet | |
void | update () |
Update the position of the bullet. | |
Vector2D | getPos () |
get the position of bullet in the lcd |
Detailed Description
Bullet Class.
Library for one of the objects bullet of star war, University of Leeds
- Date:
- May 2019
Definition at line 14 of file shot.h.
Constructor & Destructor Documentation
Bullet | ( | ) |
Constructor.
~Bullet | ( | ) |
Destructor.
Member Function Documentation
Vector2D getPos | ( | ) |
get the position of bullet in the lcd
- Returns:
- the current postion of bullet
void init | ( | int | x, |
int | y, | ||
int | sizeX, | ||
int | sizeY | ||
) |
Initialize the position and the size of the bullet.
- Parameters:
-
the value of horizontal position x (int) the value of vertical position x (int) the number of columns of bullet image (int) the number of rows of bullet image (int)
void update | ( | ) |
Update the position of the bullet.
Generated on Wed Jul 13 2022 13:02:18 by
