-
Notifications
You must be signed in to change notification settings - Fork 0
/
CachedPlayer.h
37 lines (32 loc) · 997 Bytes
/
CachedPlayer.h
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
32
33
34
35
36
37
///
/// @brief The class declaration for the Player.
/// @author James Rhodes
///
#ifndef __MIR_PLAYER_H
#define __MIR_PLAYER_H
#include "CachedActor.h"
#include "Network/SpatialObject.h"
#include "Network/UpdatableObject.h"
#include "RenderableObject.h"
///
/// @brief Represents a cached player on the client side.
///
class CachedPlayer : public Network::SpatialObject, public Network::UpdatableObject, public RenderableObject
{
private:
CachedActor* m_Actor;
Network::SpatialObject* m_Focus;
public:
CachedPlayer(Network::Controller& controller, std::string identifier)
: Network::SpatialObject(controller, identifier), m_Actor(NULL),
LookAtX(10), LookAtY(10), LookAtZ(10), CameraDistance(3.7416), CameraRotation(45) {}
virtual void ReceiveMessage(Network::Message& message);
virtual void Update();
virtual void Render();
double LookAtX;
double LookAtY;
double LookAtZ;
double CameraDistance;
double CameraRotation;
};
#endif