2
0

BallActor.h 626 B

12345678910111213141516171819202122232425
  1. // ----------------------------------------------------------------
  2. // From Game Programming in C++ by Sanjay Madhav
  3. // Copyright (C) 2017 Sanjay Madhav. All rights reserved.
  4. //
  5. // Released under the BSD License
  6. // See LICENSE in root directory for full details.
  7. // ----------------------------------------------------------------
  8. #pragma once
  9. #include "Actor.h"
  10. class BallActor : public Actor
  11. {
  12. public:
  13. BallActor(class Game* game);
  14. void UpdateActor(float deltaTime) override;
  15. void SetPlayer(Actor* player);
  16. void HitTarget();
  17. private:
  18. class AudioComponent* mAudioComp;
  19. class BallMove* mMyMove;
  20. float mLifeSpan;
  21. };