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
bullet/bullet.h@23:bfda24746bd4, 2019-04-19 (annotated)
- Committer:
- fy14lkaa
- Date:
- Fri Apr 19 19:16:48 2019 +0000
- Revision:
- 23:bfda24746bd4
- Parent:
- 22:6d3c3f2715d0
- Child:
- 24:d4919c29a663
declare initialization of the bullet size and its speed by using [void init(int size,int speed);] in bullet.h.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| fy14lkaa | 21:5b953e368fba | 1 | #include "mbed.h" |
| fy14lkaa | 21:5b953e368fba | 2 | #include "N5110.h" |
| fy14lkaa | 21:5b953e368fba | 3 | #include "Gamepad.h" |
| fy14lkaa | 21:5b953e368fba | 4 | #include "alien.h" |
| fy14lkaa | 21:5b953e368fba | 5 | |
| fy14lkaa | 22:6d3c3f2715d0 | 6 | /** bullet Class |
| fy14lkaa | 22:6d3c3f2715d0 | 7 | @author Laila Al Badwawi, University of Leeds |
| fy14lkaa | 22:6d3c3f2715d0 | 8 | @brief Controls the bullet in the SpaceInvaders game |
| fy14lkaa | 22:6d3c3f2715d0 | 9 | @date April 2019 |
| fy14lkaa | 22:6d3c3f2715d0 | 10 | */ |
| fy14lkaa | 22:6d3c3f2715d0 | 11 | |
| fy14lkaa | 22:6d3c3f2715d0 | 12 | class bullet |
| fy14lkaa | 22:6d3c3f2715d0 | 13 | { |
| fy14lkaa | 22:6d3c3f2715d0 | 14 | |
| fy14lkaa | 22:6d3c3f2715d0 | 15 | public: |
| fy14lkaa | 22:6d3c3f2715d0 | 16 | bullet(); |
| fy14lkaa | 23:bfda24746bd4 | 17 | ~bullet(); |
| fy14lkaa | 23:bfda24746bd4 | 18 | |
| fy14lkaa | 23:bfda24746bd4 | 19 | void init(int size,int speed); |