hongyun AHN / Mbed 2 deprecated Project_MaZe1_copy

Dependencies:   Gamepad N5110 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Player.h Source File

Player.h

00001 #ifndef PLAYER_H
00002 #define PLAYER_H
00003 
00004 #include "mbed.h"
00005 #include "N5110.h"
00006 #include "Gamepad.h"
00007 #include "Background.h"
00008 
00009 class Player
00010 {
00011 public:
00012 
00013     Player();
00014     ~Player();
00015     void init();
00016     void draw(N5110 &lcd);
00017     void update(Direction d,N5110 &lcd,Gamepad &pad);
00018   
00019     Vector2D get_pos();
00020    
00021 private:
00022 
00023     Background _background;
00024     
00025     int _x;
00026     int _y;
00027 
00028 };
00029 #endif