Yufan Zhong / Mbed 2 deprecated GOLD_MINER

Dependencies:   mbed

Revision:
1:9c7bb3db32bc
Child:
8:c5969685cf02
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Claw/Claw.h	Wed Apr 22 15:52:04 2020 +0000
@@ -0,0 +1,45 @@
+#ifndef CLAW_H
+#define CLAW_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Winch.h"
+#include "Monster.h"
+
+/** Claw Class
+@author Dr Craig A. Evans, University of Leeds
+@brief Controls the claw in the Pong game 
+@date Febraury 2017
+*/ 
+class Claw
+{
+
+public:
+    Claw();
+    ~Claw();
+    void init(int winch_width);
+    void draw(N5110 &lcd);
+    void update(Direction d,float mag);
+    /// accessors and mutators
+    void add_now_score();
+    int get_now_score();
+    void set_velocity(int v);
+    int get_velocity();
+    Vector2D get_pos();
+    void set_pos(Vector2D p);
+    
+    
+    
+private:
+    int _winch_width;
+    int _x0;
+    int _y0;
+    int _x1;
+    int _y1;
+    int _velocity_y;
+    int _now_score;
+    int _speed_x;
+    
+};
+#endif
\ No newline at end of file