ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

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?

UserRevisionLine numberNew 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