forked from gameprogcpp/code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFollowActor.h
More file actions
31 lines (25 loc) · 887 Bytes
/
FollowActor.h
File metadata and controls
31 lines (25 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// ----------------------------------------------------------------
// 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"
class FollowActor : public Actor
{
public:
FollowActor(class Game* game);
void ActorInput(const uint8_t* keys) override;
void SetVisible(bool visible);
void LoadProperties(const rapidjson::Value& inObj) override;
void SaveProperties(rapidjson::Document::AllocatorType& alloc,
rapidjson::Value& inObj) const override;
TypeID GetType() const override { return TFollowActor; }
private:
class MoveComponent* mMoveComp;
class FollowCamera* mCameraComp;
class SkeletalMeshComponent* mMeshComp;
bool mMoving;
};