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
EnemySpawner/EnemySpawner.h
- Committer:
- adat80
- Date:
- 2019-04-28
- Revision:
- 3:97cd7b3d89d0
- Parent:
- 1:3916f272663e
- Child:
- 6:f06ce4cf068a
File content as of revision 3:97cd7b3d89d0:
#ifndef ENEMYSPAWNER_H #define ENEMYSPAWNER_H #include "mbed.h" #include "Gamepad.h" #include "Enemy.h" class EnemySpawner { public: EnemySpawner(); ~EnemySpawner(); 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; }; #endif