Chen Zirui / Mbed 2 deprecated el18zc

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
ChenZirui
Date:
Sat May 23 06:26:21 2020 +0000
Parent:
1:86da5130732b
Commit message:
rename

Changed in this revision

Fighter/Fighter.h Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Fighter/Fighter.h	Sat May 23 06:26:21 2020 +0000
@@ -0,0 +1,31 @@
+#ifndef FIGHTER_H
+#define FIGHTER_H
+
+#include "mbed.h"
+#include "N5510.h"
+#include "Gamepad.h"
+
+class fighter
+{
+
+    public:
+
+    fighter();
+    ~fighter();
+    void init(int x,int y,int height,int width);
+    void draw(N5110 &lcd);
+    void update(Direction d,float mag);
+    void add_score();
+    int get_score();
+    Vector2D get_pos();
+    
+    private:
+
+    int _height;
+    int _width;
+    int _x;
+    int _y;
+    int _speed;
+    int _score;
+    
+    };
\ No newline at end of file