
yumaowei 201377547
Dependencies: mbed ELEC2645_Project_el17my
predators/Predator.h
- Committer:
- yumaowei
- Date:
- 2020-05-26
- Revision:
- 2:5e54476c518f
File content as of revision 2:5e54476c518f:
#ifndef PREDATOR_H #define PREDATOR_H #include "mbed.h" #include "LCD.h" #include "Gamepad.h" /** Predator Class @author Maowei Yu, University of Leeds @Description: The class controls the predator component of the game @date May 2020 */ class Predator { public: Predator(); ~Predator(); void init(int x,int radius); void draw(LCD &lcd); void update(Direction pred,float mag); void add_points(); int get_points(); POS2D get_pos(); private: int _radius; int _x; int _y; int _speed; int _point; }; #endif