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
spase_ship/space_ship.h@41:e68e2eebcce2, 2019-04-21 (annotated)
- Committer:
- fy14lkaa
- Date:
- Sun Apr 21 00:06:11 2019 +0000
- Revision:
- 41:e68e2eebcce2
- Parent:
- 40:a0607d4fae74
- Child:
- 42:83f332262165
added a function that when the bullet fired the alien the scores increased.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fy14lkaa | 34:4bff5515060e | 1 | #ifndef SPACE_SHIP_H |
fy14lkaa | 34:4bff5515060e | 2 | #define SPACE_SHIP_H |
fy14lkaa | 34:4bff5515060e | 3 | |
fy14lkaa | 34:4bff5515060e | 4 | #include "mbed.h" |
fy14lkaa | 34:4bff5515060e | 5 | #include "N5110.h" |
fy14lkaa | 34:4bff5515060e | 6 | #include "Gamepad.h" |
fy14lkaa | 35:261df7c3a3fb | 7 | #include "SpaceInvadersEngine.h" |
fy14lkaa | 35:261df7c3a3fb | 8 | #include "Alien.h" |
fy14lkaa | 35:261df7c3a3fb | 9 | #include "bullet.h" |
fy14lkaa | 34:4bff5515060e | 10 | |
fy14lkaa | 36:9bb204e390c5 | 11 | class space_ship |
fy14lkaa | 36:9bb204e390c5 | 12 | { |
fy14lkaa | 37:b2ced2de074b | 13 | |
fy14lkaa | 37:b2ced2de074b | 14 | public: |
fy14lkaa | 37:b2ced2de074b | 15 | |
fy14lkaa | 37:b2ced2de074b | 16 | space_ship(); |
fy14lkaa | 37:b2ced2de074b | 17 | ~space_ship(); |
fy14lkaa | 38:07b77fa42fe1 | 18 | void init(int x,int height,int width); |
fy14lkaa | 39:d99148c1c92d | 19 | void draw(N5110 &lcd); |
fy14lkaa | 40:a0607d4fae74 | 20 | void update(Direction d,float mag); |
fy14lkaa | 41:e68e2eebcce2 | 21 | void add_score(); |
fy14lkaa | 37:b2ced2de074b | 22 | |
fy14lkaa | 34:4bff5515060e | 23 | |
fy14lkaa | 34:4bff5515060e | 24 | |
fy14lkaa | 34:4bff5515060e | 25 | |
fy14lkaa | 34:4bff5515060e | 26 | |
fy14lkaa | 34:4bff5515060e | 27 | |
fy14lkaa | 34:4bff5515060e | 28 | |
fy14lkaa | 34:4bff5515060e | 29 | |
fy14lkaa | 34:4bff5515060e | 30 | |
fy14lkaa | 34:4bff5515060e | 31 | |
fy14lkaa | 34:4bff5515060e | 32 | |
fy14lkaa | 34:4bff5515060e | 33 | |
fy14lkaa | 34:4bff5515060e | 34 | |
fy14lkaa | 34:4bff5515060e | 35 | |
fy14lkaa | 34:4bff5515060e | 36 | |
fy14lkaa | 34:4bff5515060e | 37 | |
fy14lkaa | 34:4bff5515060e | 38 | |
fy14lkaa | 34:4bff5515060e | 39 | |
fy14lkaa | 34:4bff5515060e | 40 | |
fy14lkaa | 34:4bff5515060e | 41 | |
fy14lkaa | 34:4bff5515060e | 42 | |
fy14lkaa | 34:4bff5515060e | 43 | |
fy14lkaa | 34:4bff5515060e | 44 | |
fy14lkaa | 34:4bff5515060e | 45 | |
fy14lkaa | 34:4bff5515060e | 46 | |
fy14lkaa | 34:4bff5515060e | 47 | |
fy14lkaa | 34:4bff5515060e | 48 | |
fy14lkaa | 34:4bff5515060e | 49 | |
fy14lkaa | 34:4bff5515060e | 50 | |
fy14lkaa | 34:4bff5515060e | 51 | |
fy14lkaa | 34:4bff5515060e | 52 | |
fy14lkaa | 34:4bff5515060e | 53 | |
fy14lkaa | 34:4bff5515060e | 54 | |
fy14lkaa | 34:4bff5515060e | 55 | |
fy14lkaa | 34:4bff5515060e | 56 | |
fy14lkaa | 34:4bff5515060e | 57 | #endif |