Rocket.h 276 B

1234567891011121314151617
  1. #pragma once
  2. #include "oxygine-framework.h"
  3. #include "Unit.h"
  4. DECLARE_SMART(Rocket, spRocket);
  5. class Rocket: public Unit
  6. {
  7. public:
  8. Rocket(const Vector2& dir);
  9. protected:
  10. void _init();
  11. void _update(const UpdateState& us);
  12. void explode();
  13. Vector2 _dir;
  14. };