| 12345678910111213141516171819202122232425262728293031323334353637 |
- // ----------------------------------------------------------------
- // From Game Programming in C++ by Sanjay Madhav
- // Copyright (C) 2017 Sanjay Madhav. All rights reserved.
- //
- // Released under the BSD License
- // See LICENSE in root directory for full details.
- // ----------------------------------------------------------------
- #pragma once
- #include "Actor.h"
- #include "SoundEvent.h"
- class FPSActor : public Actor
- {
- public:
- FPSActor(class Game* game);
- void UpdateActor(float deltaTime) override;
- void ActorInput(const uint8_t* keys) override;
- void Shoot();
- void SetFootstepSurface(float value);
- void SetVisible(bool visible);
- void FixCollisions();
- private:
- class MoveComponent* mMoveComp;
- class AudioComponent* mAudioComp;
- class MeshComponent* mMeshComp;
- class FPSCamera* mCameraComp;
- class BoxComponent* mBoxComp;
- class Actor* mFPSModel;
- SoundEvent mFootstep;
- float mLastFootstep;
- };
|