2
0

CameraActor.h 723 B

123456789101112131415161718192021222324252627
  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. #include "SoundEvent.h"
  11. class CameraActor : public Actor
  12. {
  13. public:
  14. CameraActor(class Game* game);
  15. void UpdateActor(float deltaTime) override;
  16. void ActorInput(const uint8_t* keys) override;
  17. void SetFootstepSurface(float value);
  18. private:
  19. class MoveComponent* mMoveComp;
  20. class AudioComponent* mAudioComp;
  21. SoundEvent mFootstep;
  22. float mLastFootstep;
  23. };