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
Frog/Frog.cpp@31:70521f37e004, 2020-05-16 (annotated)
- Committer:
- el19tb
- Date:
- Sat May 16 04:15:46 2020 +0000
- Revision:
- 31:70521f37e004
- Parent:
- Frog/Chicken.cpp@5:6e3afee7eac3
- Child:
- 39:8b09540724b3
MBED DELETED MAJOR PARTS OF MY CODE, had to re write some of it
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el19tb | 31:70521f37e004 | 1 | #include "Frog.h" |
el19tb | 5:6e3afee7eac3 | 2 | |
el19tb | 5:6e3afee7eac3 | 3 | Serial pc(USBTX, USBRX); |
el19tb | 5:6e3afee7eac3 | 4 | |
el19tb | 5:6e3afee7eac3 | 5 | //every chicken object will accept x, y, and width (square) |
el19tb | 31:70521f37e004 | 6 | Frog::Frog(int x, int y, int width){ |
el19tb | 5:6e3afee7eac3 | 7 | this->x = x; |
el19tb | 5:6e3afee7eac3 | 8 | this->y = y; |
el19tb | 5:6e3afee7eac3 | 9 | this->width = width; |
el19tb | 5:6e3afee7eac3 | 10 | |
el19tb | 5:6e3afee7eac3 | 11 | left_side = x; |
el19tb | 5:6e3afee7eac3 | 12 | right_side = width + x; |
el19tb | 5:6e3afee7eac3 | 13 | up = y; |
el19tb | 5:6e3afee7eac3 | 14 | down = width + y; |
el19tb | 5:6e3afee7eac3 | 15 | } |
el19tb | 5:6e3afee7eac3 | 16 |