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/Walls/Walls.h@41:0697508a28ba, 2019-05-07 (annotated)
- Committer:
- el17sm
- Date:
- Tue May 07 17:02:30 2019 +0000
- Revision:
- 41:0697508a28ba
- Parent:
- 40:cbcbf6fc1421
- Child:
- 58:c8d90bb7404a
Added room types and wall entity
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el17sm | 41:0697508a28ba | 1 | #ifndef WALLS_H |
| el17sm | 41:0697508a28ba | 2 | #define WALLS_H |
| el17sm | 41:0697508a28ba | 3 | #include "Entity.h" |
| el17sm | 41:0697508a28ba | 4 | |
| el17sm | 41:0697508a28ba | 5 | class Walls : public Entity |
| el17sm | 41:0697508a28ba | 6 | { |
| el17sm | 41:0697508a28ba | 7 | public: |
| el17sm | 41:0697508a28ba | 8 | // Constructor |
| el17sm | 41:0697508a28ba | 9 | Walls(int pos_x, int pos_y, int hitbox_width, int hitbox_height); |
| el17sm | 41:0697508a28ba | 10 | |
| el17sm | 41:0697508a28ba | 11 | // Functions |
| el17sm | 41:0697508a28ba | 12 | virtual void move(float unused, float unused1, char * unused2, bool * unused3); // movement control and miscellaneous updates |
| el17sm | 41:0697508a28ba | 13 | virtual void take_damage(int damage); |
| el17sm | 41:0697508a28ba | 14 | virtual void draw(N5110 &lcd); |
| el17sm | 41:0697508a28ba | 15 | }; |
| el17sm | 41:0697508a28ba | 16 | |
| el17sm | 41:0697508a28ba | 17 | #endif |