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.
Dependencies: mbed
Alien Class Reference
#include <Alien.h>
Public Member Functions | |
void | init (int x_alien, int y_alien, int speed_alien) |
initialise an identity for the Alien | |
void | draw (N5110 &lcd) |
drawing the alien in the lcd | |
void | update (Direction d, float mag) |
updating the direction and the magintuide of the alien (Direction d,float mag) | |
void | set_pos (int x, int y) |
sitting up the position the of the alien | |
int | get_pos_y () |
Gets the postion of the y-cooridante. | |
int | get_pos_x () |
Gets the postion of the x-cooridante. | |
void | add_score () |
adding scores of the Alien | |
int | get_score () |
Gets the scores of the Alien. | |
void | read_input (Gamepad &pad) |
reading the position of the alien | |
bool | isAlive () |
Gets the alive Alien. | |
void | setAlive (bool alive) |
sitting the alive Alien |
Detailed Description
Alien class.
class for Alien
- Version:
- 1.0
- Date:
- April 2019
Definition at line 52 of file Alien.h.
Member Function Documentation
void add_score | ( | ) |
void draw | ( | N5110 & | lcd ) |
int get_pos_x | ( | ) |
int get_pos_y | ( | ) |
int get_score | ( | ) |
void init | ( | int | x_alien, |
int | y_alien, | ||
int | speed_alien | ||
) |
bool isAlive | ( | ) |
void read_input | ( | Gamepad & | pad ) |
reading the position of the alien
- Parameters:
-
_(Gamepad and pad)
the libraries which reading the position of the alien in class Alien to detect the collisions between it and the other objects.
void set_pos | ( | int | x, |
int | y | ||
) |
void setAlive | ( | bool | alive ) |
Generated on Sat Aug 6 2022 12:54:46 by
