ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Committer:
el17m2h
Date:
Wed May 01 16:40:35 2019 +0000
Revision:
21:6b16ca9834e6
Parent:
20:a359092079b0
Child:
24:67dc71a8f009
Changed the values the floors need to be to add score points, so that the score value will increase every time the floors are y=10.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el17m2h 1:0001cb3eb053 1 #ifndef FLOORS_H
el17m2h 1:0001cb3eb053 2 #define FLOORS_H
el17m2h 1:0001cb3eb053 3
el17m2h 1:0001cb3eb053 4 #include "mbed.h"
el17m2h 1:0001cb3eb053 5 #include "N5110.h"
el17m2h 1:0001cb3eb053 6 #include "Gamepad.h"
el17m2h 20:a359092079b0 7 #include "Enemy.h"
el17m2h 8:90e789413e0b 8
el17m2h 1:0001cb3eb053 9 class Floors{
el17m2h 1:0001cb3eb053 10 public:
el17m2h 1:0001cb3eb053 11 Floors();
el17m2h 1:0001cb3eb053 12 ~Floors();
el17m2h 11:2041290b5a74 13 void init(int y, int width, int height);
el17m2h 1:0001cb3eb053 14 void draw(N5110 &lcd);
el17m2h 15:4efa04a6a376 15 void update(float doodler_pos_y);
el17m2h 14:529f798adae4 16 Vector2D get_position();
el17m2h 14:529f798adae4 17 void set_position(Vector2D pos); // mutators
el17m2h 1:0001cb3eb053 18
el17m2h 1:0001cb3eb053 19 private:
el17m2h 1:0001cb3eb053 20 int _height;
el17m2h 1:0001cb3eb053 21 int _width;
el17m2h 15:4efa04a6a376 22 float _doodler_pos_y;
el17m2h 14:529f798adae4 23 Vector2D _position;
el17m2h 20:a359092079b0 24 Enemy _eny;
el17m2h 20:a359092079b0 25 int place;
el17m2h 1:0001cb3eb053 26
el17m2h 1:0001cb3eb053 27 };
el17m2h 1:0001cb3eb053 28 #endif