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
Enemy/Enemy.h
- Committer:
- el17m2h
- Date:
- 2019-05-08
- Revision:
- 24:67dc71a8f009
- Parent:
- 22:0d2ac98a8b48
- Child:
- 26:d16a5b1e0ace
File content as of revision 24:67dc71a8f009:
#ifndef ENEMY_H #define ENEMY_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Bullet.h" /** Enemy class @brief Class for the ghost enemies @author Melissa Hartmann @date May 2019 */ class Enemy{ public: Enemy(); ~Enemy(); void init(float floor_pos_x, float floor_pos_y); void draw(N5110 &lcd); void update(float floor_pos_x, float floor_pos_y); Vector2D get_position(); void set_position(Vector2D pos); // mutators void set_score(int score); private: Bullet b; Vector2D _position; float bullet_pos_y; int _radius; }; #endif