hongyun AHN / Mbed 2 deprecated Project_MaZe1_copy

Dependencies:   Gamepad N5110 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Background.h Source File

Background.h

00001 #ifndef BACKGROUND_H
00002 #define BACKGROUND_H
00003 
00004 #include "mbed.h"
00005 #include "N5110.h"
00006 #include "Gamepad.h"
00007 #include "Player.h"
00008 
00009 class Background
00010 {
00011 
00012 public:
00013     Background();
00014     ~Background();
00015 
00016     void init( );
00017     void read_input(Gamepad &pad);
00018     void update(Gamepad &pad,N5110 &lcd);
00019     void draw(N5110 &lcd);
00020     
00021 private:
00022 
00023     void check_goal(Gamepad &pad,N5110 &lcd);
00024     void print_scores(N5110 &lcd);
00025     
00026     Player _player;
00027 
00028     Direction _d;
00029     float _mag;
00030 
00031 };
00032 
00033 #endif