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@21:be18f33da757, 2019-04-25 (annotated)
- Committer:
- el17sm
- Date:
- Thu Apr 25 05:27:43 2019 +0000
- Revision:
- 21:be18f33da757
- Parent:
- 14:3361879490b2
- Child:
- 23:5a8f75e93508
Snake half done no clear screen error
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 | 21:be18f33da757 | 5 | class Bullets : public Entity |
| el17sm | 21:be18f33da757 | 6 | { |
| el17sm | 21:be18f33da757 | 7 | |
| el17sm | 21:be18f33da757 | 8 | public: |
| el17sm | 13:d04a6caba40d | 9 | // Constructor |
| el17sm | 13:d04a6caba40d | 10 | Bullets(float, float, int); |
| el17sm | 21:be18f33da757 | 11 | |
| el17sm | 13:d04a6caba40d | 12 | // Functions |
| el17sm | 13:d04a6caba40d | 13 | virtual void move(float, float); |
| el17sm | 13:d04a6caba40d | 14 | virtual int * get_frame(); |
| el17sm | 14:3361879490b2 | 15 | bool out_of_bounds_check(); |
| el17sm | 21:be18f33da757 | 16 | |
| el17sm | 21:be18f33da757 | 17 | private: |
| el17sm | 13:d04a6caba40d | 18 | // Member Variable |
| el17sm | 13:d04a6caba40d | 19 | int direction; |
| el17sm | 13:d04a6caba40d | 20 | }; |
| el17sm | 13:d04a6caba40d | 21 | |
| el17sm | 13:d04a6caba40d | 22 | const int bullets_sprite[2][2] = {{1,1}, |
| el17sm | 21:be18f33da757 | 23 | {1,1} |
| el17sm | 21:be18f33da757 | 24 | }; |
| el17sm | 13:d04a6caba40d | 25 | |
| el17sm | 13:d04a6caba40d | 26 | #endif |