-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.h
executable file
·61 lines (47 loc) · 969 Bytes
/
common.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
#ifndef COMMON_H_
#define COMMON_H_
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
#include <cstddef>
#include <dtCore/refptr.h>
#include <dtCore/deltadrawable.h>
#include <osg/BoundingBox>
#include <ostream>
#include <osg/Vec3>
//This is for the CEGUI headers.
#ifdef None
#undef None
#endif
#include <CEGUI/CEGUI.h>
#define HT_MAX(A,B) ( (A) > (B) ) ? (A) : (B)
#define HT_MIN(A,B) ( (A) < (B) ) ? (A) : (B)
typedef CEGUI::Window* MarkerType;
enum UnitSide {
ALL,
NONE,
ACTIVE,
RED,
BLUE
};
enum UnitType {
TANK,
SOLDIER
};
enum UnitInstance {
LOCAL,
REMOTE
};
enum UnitObserverType {
GLOBAL,
SEQUENTIAL,
THREAT,
FOLLOWING,
ROUND_ROBIN
};
class HTAppBase;
extern dtCore::RefPtr<HTAppBase> theApp;
// global functions
bool GetBoundingBox(osg::BoundingBox & BB, dtCore::DeltaDrawable & drawable);
float random(float min,float max);
int random(int min,int max);
#endif /*COMMON_H_*/