test 1 doc

Dependencies:   mbed Gamepad2

Committer:
joebarhouch
Date:
Wed May 27 03:52:11 2020 +0000
Revision:
11:b3024ab59fa5
Parent:
9:9830d3a78572
Child:
14:58887d7e1072
Coin class and enemy collision;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joebarhouch 2:f22cb01c43bc 1 #ifndef PLAYER_H
joebarhouch 2:f22cb01c43bc 2 #define PLAYER_H
joebarhouch 2:f22cb01c43bc 3
joebarhouch 2:f22cb01c43bc 4 #include "mbed.h"
joebarhouch 2:f22cb01c43bc 5 #include "N5110.h"
joebarhouch 2:f22cb01c43bc 6 #include "Gamepad.h"
joebarhouch 2:f22cb01c43bc 7 #include "Bitmap.h"
joebarhouch 2:f22cb01c43bc 8
joebarhouch 2:f22cb01c43bc 9
joebarhouch 2:f22cb01c43bc 10
joebarhouch 2:f22cb01c43bc 11
joebarhouch 2:f22cb01c43bc 12 class Player
joebarhouch 2:f22cb01c43bc 13 {
joebarhouch 2:f22cb01c43bc 14 public:
joebarhouch 2:f22cb01c43bc 15 Player();
joebarhouch 2:f22cb01c43bc 16 ~Player();
joebarhouch 2:f22cb01c43bc 17
joebarhouch 3:e4e1cbf750b6 18 void init(int x, int y);
joebarhouch 3:e4e1cbf750b6 19 //bool health;
joebarhouch 7:530ca713d2b2 20
joebarhouch 3:e4e1cbf750b6 21 //bool is_jumping();
joebarhouch 2:f22cb01c43bc 22 void draw(N5110 &lcd);
joebarhouch 5:928c2eee4109 23 bool floorCollide();
joebarhouch 7:530ca713d2b2 24 void update(Direction d, float mag, int Ypos, bool fall, bool jump);
joebarhouch 3:e4e1cbf750b6 25 Vector2D get_pos();
joebarhouch 8:d19b30a6cd69 26
joebarhouch 11:b3024ab59fa5 27
joebarhouch 2:f22cb01c43bc 28
joebarhouch 2:f22cb01c43bc 29 private:
joebarhouch 2:f22cb01c43bc 30 int _vx;
joebarhouch 2:f22cb01c43bc 31 int _vy;
joebarhouch 2:f22cb01c43bc 32 int _playerX;
joebarhouch 2:f22cb01c43bc 33 int _playerY;
joebarhouch 5:928c2eee4109 34 bool _floorCollision;
joebarhouch 8:d19b30a6cd69 35 char _dir;
joebarhouch 8:d19b30a6cd69 36 Timer t;
joebarhouch 9:9830d3a78572 37 bool f;
joebarhouch 2:f22cb01c43bc 38
joebarhouch 2:f22cb01c43bc 39 };
joebarhouch 2:f22cb01c43bc 40
joebarhouch 2:f22cb01c43bc 41 #endif