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.
Boss Class Reference
#include <boss.h>
Inherits GameObject.
Public Member Functions | |
Boss () | |
Constructor Sets values for the boss' sprite body circle area, the blast circle area and the circle radius for collsion callculations. | |
void | updateAndDrawBossBlasts () |
Updates and draws the boss blasts accross the screen. | |
bool | updateAndDrawBoss () |
Updates and draws the boss. | |
void | updateCutscene () |
Updates and draws the boss' cutscene of entering the game. | |
void | draw () |
draws boss' sprite. | |
void | resetCutscene () |
resets the boss' cutscene. | |
bool | isFinishedCutscene () |
It starts the boss fight sequence when the cutscene is finished. | |
void | spawn (Point spawn_pos) |
Activates the object at the given postion. | |
Data Fields | |
int | boss_lives |
contains boss' lives. |
Detailed Description
Boss Class.
A class to describe the states of the boss ship.
- Date:
- 30/04/2019
Definition at line 12 of file boss.h.
Constructor & Destructor Documentation
Boss | ( | ) |
Member Function Documentation
bool isFinishedCutscene | ( | ) |
void spawn | ( | Point | spawn_pos ) | [inherited] |
Activates the object at the given postion.
- Parameters:
-
spawn_pos sets position of x and y into pos (Point).
Definition at line 19 of file gameobject.h.
bool updateAndDrawBoss | ( | ) |
void updateAndDrawBossBlasts | ( | ) |
void updateCutscene | ( | ) |
Field Documentation
int boss_lives |
Generated on Wed Dec 20 2023 20:30:17 by
