Controller.cpp 608 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // Created by jovian on 18/07/17.
  3. //
  4. #include "Controller.h"
  5. Controller::Controller()
  6. : m_jump(false), m_firing(false), m_shield(false),
  7. m_visor(0.0f, 0.0f), m_move(0.0f, 0.0f), m_zoomScale(1.0f) {
  8. }
  9. bool Controller::isJumping() const {
  10. return m_jump;
  11. }
  12. bool Controller::isFiring() const {
  13. return m_firing;
  14. }
  15. bool Controller::isShielded() const {
  16. return m_shield;
  17. }
  18. const b2Vec2 &Controller::getVisor() const {
  19. return m_visor;
  20. }
  21. const b2Vec2 &Controller::getMove() const {
  22. return m_move;
  23. }
  24. float Controller::getZoomScale() const {
  25. return m_zoomScale;
  26. }