HumanSoldier.h 456 B

12345678910111213141516171819202122232425
  1. //
  2. // Created by jovian on 18/07/17.
  3. //
  4. #ifndef TINYSHOOTER_ALLY_H
  5. #define TINYSHOOTER_ALLY_H
  6. #include "Soldier.h"
  7. class HumanSoldier : public Soldier {
  8. public:
  9. HumanSoldier(TinyWorld *tinyWorld, Controller *ctrl, b2Vec2 spawn = b2Vec2_zero, unsigned int camp = 0);
  10. void update() override;
  11. Visual* makeLifeBar();
  12. float getZoom() const;
  13. protected:
  14. float m_zoom; // Scale from Box2D to SDL2 length
  15. };
  16. #endif //TINYSHOOTER_ALLY_H