]> git.localhorst.tv Git - blank.git/blob - src/app/ClientState.hpp
special treatment for players
[blank.git] / src / app / ClientState.hpp
1 #ifndef BLANK_APP_CLIENTSTATE_HPP_
2 #define BLANK_APP_CLIENTSTATE_HPP_
3
4 #include "State.hpp"
5 #include "../net/Client.hpp"
6 #include "../world/BlockTypeRegistry.hpp"
7 #include "../world/World.hpp"
8
9
10 namespace blank {
11
12 class Environment;
13
14 class ClientState
15 : public State {
16
17 public:
18         ClientState(
19                 Environment &,
20                 const World::Config &,
21                 const WorldSave &,
22                 const Client::Config &
23         );
24
25         void Handle(const SDL_Event &) override;
26         void Update(int dt) override;
27         void Render(Viewport &) override;
28
29 private:
30         Environment &env;
31         BlockTypeRegistry block_types;
32         World world;
33         Client client;
34
35 };
36
37 }
38
39 #endif