Projectile Library
Projectile.h
- Committer:
- ll14c4p
- Date:
- 2017-05-02
- Revision:
- 6:70b35ebfa8c8
- Parent:
- 4:977109f7b9f6
- Child:
- 9:64ba68ae2640
File content as of revision 6:70b35ebfa8c8:
#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); void set_velocity(Vector2D v); Vector2D get_velocity(); Vector2D get_pos(); void update(); int playerx; int playery; int _playerx; int _playery; void set_pos(Vector2D p); private: int m; Vector2D _velocity; int _size; int _x; int _y; }; #endif