Harry Rance 200925395 Embedded Systems Project

Dependencies:   mbed

Revision:
2:50feb42b982c
Child:
3:43970d8d642e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Boss.h	Wed Apr 26 17:40:17 2017 +0000
@@ -0,0 +1,61 @@
+#ifndef BOSS_H
+#define BOSS_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+class Boss
+{
+public:
+  Boss();
+  ~Boss();
+  void initialise(int x_origin, int y_origin, int health_x, int health_y, int health, int speed);
+  void draw(N5110 &lcd);
+  void boss_sprite(N5110 &lcd);
+  void health_bar_draw(N5110 &lcd);
+  void draw_bombs(N5110 &lcd);
+  void update();
+  void set_bomb_vel(Vector2D b_vel);
+  void set_bomb_pos(Vector2D b_pos);
+  Vector2D get_bomb_vel();
+  Vector2D get_bomb_pos();
+  void set_velocity(Vector2D v);
+  Vector2D get_velocity();
+  Vector2D get_pos();
+  void set_pos(Vector2D p);
+  void decrement_health_constant();
+  int get_health_bar_constant();
+  void add_boss_score();
+  void add_boss_coins();
+  int get_boss_score();
+  int get_boss_coins();
+  void draw_lives(N5110 &lcd);
+  void dec_lives();
+  int lives();
+
+private:
+  int _boss_x;
+  int _boss_y;
+  int _bomb_x;
+  int _bomb_y;
+  int _heart_x;
+  int _heart_y;
+  int _heart_var;
+  int _b_x;
+  int _b_y;
+  int _health_x;
+  int _health_y;
+  int _health;
+  int _x;
+  int _y;
+  int _health_bar_constant;
+  int _boss_score;
+  int _boss_coins;
+  int _boss_lives;
+
+  Vector2D _velocity;
+  Vector2D _b_velocity;
+};
+#endif
+