ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18lg

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Body.h Source File

Body.h

00001 #ifndef BODY_H
00002 #define BODY_H
00003  
00004 #include "mbed.h"
00005 #include "Gamepad.h"
00006 #include "N5110.h"
00007 #include "Head.h"
00008 
00009 class Body 
00010  
00011 {
00012  
00013 public: 
00014 
00015     Body();
00016     ~Body();
00017        
00018     void draw(N5110 &lcd, int width);
00019     void update(Vector2D hP, int width);
00020     Vector2D get_pos();
00021  
00022 private: 
00023     int bodyx[100];
00024     int bodyy[100];
00025     int _x, _y, _prevx, _prevy, _prev2x, _prev2y, _nbody;
00026 };
00027 #endif