ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18zc

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Fighter.h Source File

Fighter.h

00001 #ifndef FIGHTER_H
00002 #define FIGHTER_H
00003 
00004 #include "mbed.h"
00005 #include "N5510.h"
00006 #include "Gamepad.h"
00007 
00008 class fighter
00009 {
00010 
00011     public:
00012 
00013     fighter();
00014     ~fighter();
00015     void init(int x,int y,int height,int width);
00016     void draw(N5110 &lcd);
00017     void update(Direction d,float mag);
00018     void add_score();
00019     int get_score();
00020     Vector2D get_pos();
00021     
00022     private:
00023 
00024     int _height;
00025     int _width;
00026     int _x;
00027     int _y;
00028     int _speed;
00029     int _score;
00030     
00031     };