Controller.cpp 699 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // Created by jovian on 18/07/17.
  3. //
  4. #include "Controller.h"
  5. Controller::Controller()
  6. : m_boost(false), m_firing(false), m_shield(false),
  7. m_visor(0.0f, 0.0f), m_acceleration(0.0f), m_torque(0.0f), m_zoomScale(1.0f) {
  8. }
  9. bool Controller::isBoosting() const {
  10. return m_boost;
  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. float Controller::getZoomScale() const {
  22. return m_zoomScale;
  23. }
  24. float Controller::getAcceleration() const {
  25. return m_acceleration;
  26. }
  27. float Controller::getTorque() const {
  28. return m_torque;
  29. }