-
Notifications
You must be signed in to change notification settings - Fork 0
/
CachedUniverse.h
41 lines (36 loc) · 1.08 KB
/
CachedUniverse.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
38
39
40
41
///
/// @brief The class declaration for a Universe.
/// @author James Rhodes
///
#ifndef __MIR_UNIVERSE_H
#define __MIR_UNIVERSE_H
#include <list>
#include "CachedActor.h"
#include "CachedShip.h"
#include "CachedCelestialBody.h"
#include "Network/Controller.h"
#include "Network/IdentifiableObject.h"
#include "Network/UpdatableObject.h"
#include "RenderableObject.h"
#include "CachedPlayer.h"
///
/// @brief Represents a cached universe on the client side.
///
class CachedUniverse : public Network::IdentifiableObject, public Network::UpdatableObject, public RenderableObject
{
private:
std::list<CachedActor*> m_CachedActors;
std::list<CachedShip*> m_CachedShips;
std::list<CachedCelestialBody*> m_CachedCelestialBodies;
Network::Controller* m_Controller;
bool m_SphereGenerated;
int m_SphereID;
CachedPlayer* GetPlayer();
bool m_SendLocalizedRequests;
public:
CachedUniverse(Network::Controller& controller, std::string identifier);
virtual void ReceiveMessage(Network::Message& message);
virtual void Update();
virtual void Render();
};
#endif