// // Created by Wouter Groeneveld on 09/08/18. // #ifndef GBA_SPRITE_ENGINE_PROJECT_BULLET_H #define GBA_SPRITE_ENGINE_PROJECT_BULLET_H #include #include #include class Bullet { private: std::unique_ptr sprite; std::deque coords; VECTOR dest; public: Bullet(std::unique_ptr sprite) : sprite(std::move(sprite)), dest(VECTOR()) {} void tick(); void setDestination(VECTOR destination); bool isOffScreen() { return sprite->isOffScreen(); } Sprite* getSprite() { return sprite.get(); } }; #endif //GBA_SPRITE_ENGINE_PROJECT_BULLET_H