-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig_Objects.h
More file actions
145 lines (94 loc) · 3.4 KB
/
Config_Objects.h
File metadata and controls
145 lines (94 loc) · 3.4 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#ifndef CONFIG_OBJECTS_H_INCLUDED
#define CONFIG_OBJECTS_H_INCLUDED
//#include "Global.h"
#include "Soul.h"
//The tile
class Config_Objects: public Soul
{
private:
Chain_Link Link;
Square Floating_Objects, Floating_Objects_Base;
int Gravity_Physics;
//The tile type and the type of the class
int Type, Gate_Type, Object_Type;
//Coordinates of the objects
int Object_Coord_x, Object_Coord_y, Object_Coord_z;
int Center_Base;
// Collsion detection properties of Objects. Width relates to x, Lenght relate to y, Height relates to z.
int Object_Width, Object_Lenght, Object_Height;
// The front edge of an object. Have a value in relation to y
int Object_Front_Edge, Object_Elevation;
// Activate animation for objects base on type
bool Animated;
bool Alive_Key;
int Location, Level;
public:
//(0) This constructor set the values of a few special variables.
Config_Objects();
//(2) The construtor for floating square objects. Requires many many test. Check logs to see completeion prerequisits.
Config_Objects( int x, int y, int z, int object_type, int gate_type );
//Define a square using object type.
void Variable_Setter();
void Variable_Update(Uint32 deltaTicks);
void Soul_Physics(int condition, Uint32 deltaTicks);
//Get the tile type
int Get_Type();
int Get_Object_Type();
int Get_Gate_Type();
int Get_Gravity_Physics();
int Get_Object_Elevation();
int Get_X();
int Get_Y();
int Get_Z();
int Get_Center_Base();
//Get the collision box of squares.
bool Get_Alive_Key();
Square Get_Objects();
Square Get_Objects_Base();
//Display functions only
void Show();
void Show_Base();
//
///////
////////////////
//////////////////////////
//////////////////////////////////////
///////////////////////////////////////////////////
//USELESS
///////////////////////////////////////////////////
///////////////////////////////////////
///////////////////////////
////////////////
///////
//
void Game_Start(External_Configuration config){}
void Build_Font(SDL_Surface *font){}
void Move_Special_Object(){}
void Soul_Health_Condtions(Uint32 deltaTicks){}
void Variable_Setter_Bool_Conditional(int condition, bool condition2){}
void Variable_Setter_Int_Conditional(int condition, int condition2){}
void Variable_Setter_Special_Conditional(int condition, int condition2, bool conditionBool, int conditionInt){}
void Variable_Setter_Ai_Brain_Conditional(int condition, Ai_Brain Copy_Brain) {}
void Soul_Logic(Ai_Brain Copy_Brain, Uint32 deltaTicks){}
void Teleport_Direct_Input(){}
void Teleport_Force_Input(float condition, int condition2){}
void Command_Slave_Calculation(){}
int Get_Health() {return -1;}
int Get_Object_State() {return 0;}
int Get_Child_Num(){return 0;}
int Get_Slave_Order(){return 0;}
bool Get_Render_Key(){return false;}
bool Get_Animated_Key(){return false;}
bool Get_Active_Animation_Key(){return false;}
Chain_Link Get_Chain_Link(){return Link;}
std::string Get_Text() {return "";}
Square Get_Objects_Children(int condition){return Floating_Objects;}
void Soul_Input(){}
void Show(int o){}
void Show_Children(int condition, int condition2){}
void Show_Text( int x, int y, std::string text, SDL_Surface *font ){}
void Show_Graphic_Fx_Shadowed(){}
void Show_Graphic_Fx_Drop_Shadow(int coord){}
void Show_Graphic_Fx_Transparancy(){}
};
#endif // ENVIRONMENT_OBJECTS_H_INCLUDED