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.
Character/Character.h@12:c557b6c9b17a, 2020-05-25 (annotated)
- Committer:
- Albutt
- Date:
- Mon May 25 17:22:06 2020 +0000
- Revision:
- 12:c557b6c9b17a
- Parent:
- 10:71ced616a64f
- Child:
- 17:c81c09625d92
Function Clean up
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Albutt | 2:c25ec0da7636 | 1 | #include "mbed.h" |
Albutt | 2:c25ec0da7636 | 2 | #include "N5110.h" |
Albutt | 2:c25ec0da7636 | 3 | #include "Gamepad.h" |
Albutt | 2:c25ec0da7636 | 4 | |
Albutt | 2:c25ec0da7636 | 5 | |
Albutt | 2:c25ec0da7636 | 6 | class Character |
Albutt | 2:c25ec0da7636 | 7 | { |
Albutt | 2:c25ec0da7636 | 8 | public: |
Albutt | 2:c25ec0da7636 | 9 | Character(); |
Albutt | 2:c25ec0da7636 | 10 | ~Character(); |
Albutt | 2:c25ec0da7636 | 11 | void init(int x,int y); |
Albutt | 2:c25ec0da7636 | 12 | void draw(N5110 &lcd); |
Albutt | 12:c557b6c9b17a | 13 | void update(Direction d); |
Albutt | 10:71ced616a64f | 14 | void reset(); |
Albutt | 4:b16b6078a432 | 15 | int get_direction(); |
Albutt | 4:b16b6078a432 | 16 | int get_x(); |
Albutt | 4:b16b6078a432 | 17 | int get_y(); |
Albutt | 2:c25ec0da7636 | 18 | |
Albutt | 2:c25ec0da7636 | 19 | private: |
Albutt | 2:c25ec0da7636 | 20 | |
Albutt | 2:c25ec0da7636 | 21 | int _x; |
Albutt | 2:c25ec0da7636 | 22 | int _y; |
Albutt | 2:c25ec0da7636 | 23 | int _speed; |
Albutt | 2:c25ec0da7636 | 24 | int _dir; |
Albutt | 2:c25ec0da7636 | 25 | }; |