Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
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 };
Generated on Fri Jul 15 2022 18:22:12 by
1.7.2