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.
Enemies Class Reference
#include <enemies.h>
Public Member Functions | |
Enemies () | |
Constructor Sets values for the enemy's sprite body circle area, the blast circle area and the circle radius for collsion callculations. | |
void | spawnNewEnemy () |
This function spawns a new enemy on the screen. | |
void | updateAndDrawEnemies () |
Draws the ships and the blasts. | |
void | updateAndDrawEnemyBlasts () |
Uodates and draws all active blasts. | |
Static Public Attributes | |
static const int | max_enemies = 4 |
Maximum enemies allowed on the screen. | |
static const int | max_enemy_blasts = max_enemies*2 |
Maximum enemies' blasts allowed on the screen. |
Detailed Description
Enemies Class.
The class manages all enemy ships.
Responsible for spawning new ships and holding and updating them and controlling time intervals between enemy shots.
- Date:
- 15/04/2019
Definition at line 121 of file enemies.h.
Constructor & Destructor Documentation
Enemies | ( | ) |
Member Function Documentation
void spawnNewEnemy | ( | ) |
void updateAndDrawEnemies | ( | ) |
void updateAndDrawEnemyBlasts | ( | ) |
Field Documentation
static const int max_enemies = 4 [static] |
static const int max_enemy_blasts = max_enemies*2 [static] |
Generated on Wed Dec 20 2023 20:30:17 by
