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.
Diff: Board/Board.h
- Revision:
- 5:7207c9b70108
- Child:
- 6:b393cfe4e0a7
diff -r e46c295d4baf -r 7207c9b70108 Board/Board.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Board/Board.h Wed May 27 21:13:59 2020 +0000
@@ -0,0 +1,33 @@
+#ifndef BOARD_H
+#define BOARD_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Bullet.h"
+
+class Board
+{
+public:
+
+ Board();
+ ~Board();
+ void init(int x,int y,int height,int width,N5110 &lcd);
+ void draw(N5110 &lcd);
+ void update(Direction d,float mag,N5110 &lcd);
+ void add_score();
+ int get_score();
+ Vector2D get_pos();
+
+private:
+
+ int _height;
+ int _width;
+ int _x;
+ int _y;
+ int _speed;
+ int _score;
+ //bullet _bullet;
+
+};
+#endif
\ No newline at end of file