Prints objects on to a Nokia N5110 LCD display and makes them 'fall' down the display.

Dependents:   Game_Controller_Project

Committer:
Nathanj94
Date:
Thu Mar 23 15:25:12 2017 +0000
Revision:
3:0c79211fdfe0
Parent:
2:3f42da6a4c89
Child:
4:56ca80919a98
Improved names of functions and variables;; removed redundancy in the form of irrelevant variables

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Nathanj94 0:a1d36c50a0b7 1 #ifndef OBJECTS_H
Nathanj94 0:a1d36c50a0b7 2 #define OBJECTS_H
Nathanj94 0:a1d36c50a0b7 3
Nathanj94 0:a1d36c50a0b7 4 #include "mbed.h"
Nathanj94 1:a05d10d3d33f 5 #include "N5110.h"
Nathanj94 0:a1d36c50a0b7 6 #include "Gamepad.h"
Nathanj94 0:a1d36c50a0b7 7 #include "Basket.h"
Nathanj94 0:a1d36c50a0b7 8
Nathanj94 0:a1d36c50a0b7 9 class Objects
Nathanj94 0:a1d36c50a0b7 10 {
Nathanj94 0:a1d36c50a0b7 11 public:
Nathanj94 0:a1d36c50a0b7 12
Nathanj94 0:a1d36c50a0b7 13 Objects();
Nathanj94 0:a1d36c50a0b7 14 ~Objects();
Nathanj94 3:0c79211fdfe0 15 void init(int speed);
Nathanj94 3:0c79211fdfe0 16 void draw(N5110 &lcd);
Nathanj94 3:0c79211fdfe0 17 void undraw(N5110 &lcd);
Nathanj94 3:0c79211fdfe0 18 void move();
Nathanj94 3:0c79211fdfe0 19 int get_x();
Nathanj94 3:0c79211fdfe0 20 int get_y();
Nathanj94 1:a05d10d3d33f 21
Nathanj94 1:a05d10d3d33f 22 private:
Nathanj94 1:a05d10d3d33f 23
Nathanj94 2:3f42da6a4c89 24 int objects_size;
Nathanj94 3:0c79211fdfe0 25 int x_ref;
Nathanj94 3:0c79211fdfe0 26 int y_ref;
Nathanj94 2:3f42da6a4c89 27 int objects_ep;
Nathanj94 2:3f42da6a4c89 28 int objects_speed;
Nathanj94 1:a05d10d3d33f 29 };
Nathanj94 1:a05d10d3d33f 30 #endif