Projectile Library
Projectile.h
- Committer:
- ll14c4p
- Date:
- 2017-05-04
- Revision:
- 9:64ba68ae2640
- Parent:
- 6:70b35ebfa8c8
- Child:
- 10:ee3c4bb4ce37
File content as of revision 9:64ba68ae2640:
#ifndef PROJECTILE_H #define PROJECTILE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Player.h" class Projectile { public: Projectile(); ~Projectile(); void init(int playerx, int playery); void draw(N5110 &lcd); Vector2D get_pos(); void update(); int playerx; int playery; int _playerx; int _playery; void set_pos(Vector2D p); int reload; private: int m; Vector2D _velocity; int _size; int _x; int _y; }; #endif