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
Diff: EnemySpawner/EnemySpawner.h
- Revision:
- 3:97cd7b3d89d0
- Parent:
- 1:3916f272663e
- Child:
- 6:f06ce4cf068a
--- a/EnemySpawner/EnemySpawner.h Wed Apr 24 12:38:53 2019 +0000 +++ b/EnemySpawner/EnemySpawner.h Sun Apr 28 16:55:24 2019 +0000 @@ -16,9 +16,13 @@ Enemy* init(int level); void update(int fps); + void set_number_of_enemies(int enemies); + int get_number_of_enemies(); + private: float _minTimeBetweenSpawns; float _timeIntoLevel; + int _number_of_enemies; Enemy *_enemies; int _level; };