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 MotionSensor
Entity/Bullets/Bullets.h@29:6b8411bb040a, 2019-05-04 (annotated)
- Committer:
- el17sm
- Date:
- Sat May 04 15:39:20 2019 +0000
- Revision:
- 29:6b8411bb040a
- Parent:
- 27:a1b41626f57c
added Room complete;; started Floor engine;; ; To do:; Floor generation;; More enemies;; Bosses;; Title Screen;; Score;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el17sm | 13:d04a6caba40d | 1 | #ifndef BULLETS_H |
| el17sm | 13:d04a6caba40d | 2 | #define BULLETS_H |
| el17sm | 13:d04a6caba40d | 3 | #include "Entity.h" |
| el17sm | 13:d04a6caba40d | 4 | |
| el17sm | 22:7abf4581bc9b | 5 | class Bullets : public Entity |
| el17sm | 22:7abf4581bc9b | 6 | { |
| el17sm | 22:7abf4581bc9b | 7 | |
| el17sm | 22:7abf4581bc9b | 8 | public: |
| el17sm | 13:d04a6caba40d | 9 | // Constructor |
| el17sm | 13:d04a6caba40d | 10 | Bullets(float, float, int); |
| el17sm | 22:7abf4581bc9b | 11 | |
| el17sm | 13:d04a6caba40d | 12 | // Functions |
| el17sm | 29:6b8411bb040a | 13 | virtual void move(float, float, int * map, bool * doorways); |
| el17sm | 13:d04a6caba40d | 14 | virtual int * get_frame(); |
| el17sm | 23:5a8f75e93508 | 15 | virtual void take_damage(int); |
| el17sm | 29:6b8411bb040a | 16 | bool out_of_bounds_check(int * map, bool * doorways); |
| el17sm | 22:7abf4581bc9b | 17 | |
| el17sm | 22:7abf4581bc9b | 18 | private: |
| el17sm | 13:d04a6caba40d | 19 | // Member Variable |
| el17sm | 13:d04a6caba40d | 20 | int direction; |
| el17sm | 13:d04a6caba40d | 21 | }; |
| el17sm | 13:d04a6caba40d | 22 | |
| el17sm | 26:abbc19edc5c1 | 23 | const int bullets_sprite[3][3] = {{1,1,1}, |
| el17sm | 26:abbc19edc5c1 | 24 | {1,1,1}, |
| el17sm | 26:abbc19edc5c1 | 25 | {1,1,1} |
| el17sm | 22:7abf4581bc9b | 26 | }; |
| el17sm | 13:d04a6caba40d | 27 | |
| el17sm | 13:d04a6caba40d | 28 | #endif |