-
Notifications
You must be signed in to change notification settings - Fork 21
/
main.h
83 lines (71 loc) · 2.03 KB
/
main.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef __MAIN_H__
#define __MAIN_H__
#include <string>
#include <sstream>
#include <iostream>
#include <Urho3D/Core/CoreEvents.h>
#include <Urho3D/Engine/Application.h>
#include <Urho3D/Engine/Engine.h>
#include <Urho3D/Input/Input.h>
#include <Urho3D/Input/InputEvents.h>
#include <Urho3D/Resource/ResourceCache.h>
#include <Urho3D/Resource/XMLFile.h>
#include <Urho3D/IO/Log.h>
#include <Urho3D/UI/UI.h>
#include <Urho3D/UI/Text.h>
#include <Urho3D/UI/Font.h>
#include <Urho3D/UI/Button.h>
#include <Urho3D/UI/UIEvents.h>
#include <Urho3D/Scene/Scene.h>
#include <Urho3D/Scene/SceneEvents.h>
#include <Urho3D/Graphics/Graphics.h>
#include <Urho3D/Graphics/Camera.h>
#include <Urho3D/Graphics/Geometry.h>
#include <Urho3D/Graphics/Renderer.h>
#include <Urho3D/Graphics/DebugRenderer.h>
#include <Urho3D/Graphics/Octree.h>
#include <Urho3D/Graphics/Light.h>
#include <Urho3D/Graphics/Model.h>
#include <Urho3D/Graphics/StaticModel.h>
#include <Urho3D/Graphics/Material.h>
#include <Urho3D/Graphics/Skybox.h>
#include <Urho3D/Physics/PhysicsWorld.h>
#include <Urho3D/Engine/DebugHud.h>
#include <Urho3D/Graphics/Texture2D.h>
#include "world.h"
#include "vox.h"
#include "constants.h"
#include "char.h"
#include "map.h"
#include "enemy.h"
#include "soul.h"
const static bool debug = true;
using namespace Urho3D;
class Game : public Application
{
public:
Game(Context*);
~Game();
virtual void Setup();
virtual void Start();
virtual void Stop();
void HandleClosePressed(StringHash, VariantMap&);
void HandleKeyDown(StringHash, VariantMap&);
void HandleUpdate(StringHash, VariantMap&);
void HandlePostUpdate(StringHash eventType, VariantMap& eventData);
World *world;
Map *map;
Char *player;
std::vector<Soul*> souls;
std::vector<Enemy*> enemies;
std::vector<Chunk*> body_parts;
int framecount;
float time_;
SharedPtr<Text> text_;
SharedPtr<Scene> scene_;
SharedPtr<Graphics> graphics_;
SharedPtr<Time> time;
SharedPtr<Node> cameraNode_;
Vector<unsigned short>indexData;
};
#endif