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.
life.h@2:cc9d8ec2e1f4, 2020-05-15 (annotated)
- Committer:
- Neowless
- Date:
- Fri May 15 17:44:25 2020 +0000
- Revision:
- 2:cc9d8ec2e1f4
- Parent:
- 1:48b0bf0bcda8
test;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Neowless | 1:48b0bf0bcda8 | 1 | #ifndef LIFE_H |
Neowless | 1:48b0bf0bcda8 | 2 | #define LIFE_H |
Neowless | 1:48b0bf0bcda8 | 3 | |
Neowless | 1:48b0bf0bcda8 | 4 | |
Neowless | 1:48b0bf0bcda8 | 5 | #include "Bitmap.h" |
Neowless | 1:48b0bf0bcda8 | 6 | #include "N5110.h" |
Neowless | 1:48b0bf0bcda8 | 7 | #include "Gamepad.h" |
Neowless | 1:48b0bf0bcda8 | 8 | class life{ |
Neowless | 1:48b0bf0bcda8 | 9 | public: |
Neowless | 1:48b0bf0bcda8 | 10 | void init(); |
Neowless | 1:48b0bf0bcda8 | 11 | void update(); |
Neowless | 1:48b0bf0bcda8 | 12 | void display(N5110 &lcd); |
Neowless | 1:48b0bf0bcda8 | 13 | int liferest(); |
Neowless | 1:48b0bf0bcda8 | 14 | |
Neowless | 1:48b0bf0bcda8 | 15 | private: |
Neowless | 1:48b0bf0bcda8 | 16 | int _x; |
Neowless | 1:48b0bf0bcda8 | 17 | int _y; |
Neowless | 1:48b0bf0bcda8 | 18 | int _num; |
Neowless | 1:48b0bf0bcda8 | 19 | int _width; |
Neowless | 1:48b0bf0bcda8 | 20 | int _height; |
Neowless | 2:cc9d8ec2e1f4 | 21 | int icon[56]; |
Neowless | 1:48b0bf0bcda8 | 22 | }; |
Neowless | 1:48b0bf0bcda8 | 23 | #endif |
Neowless | 1:48b0bf0bcda8 | 24 |