-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcodedoc.txt
More file actions
152 lines (138 loc) · 4.79 KB
/
codedoc.txt
File metadata and controls
152 lines (138 loc) · 4.79 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
146
147
148
149
150
151
152
//*** How to compile ***//
Use CMake.
---- or ----
Using the Microsoft (Visual) C/C++ compiler:
- Open a Windows SDK or Visual C++ command prompt (32 bits). You can
find it in the Start menu/screen.
- cd to the directory of the source code.
- Type: vc_compall
- The new executable will be named "wkbre_vc.exe"
Using MinGW-32:
- Open a command prompt. Be sure that the bin directory of the MinGW
installation is in the environment path.
- cd to the directory of the source code.
- Type: mg_compall
- The new executable will be named "wkbre_mg.exe"
vc_release.bat and mg_release.bat are similar to vc_compall.bat and
mg_compall.bat, but they remove certain features of the program which aren't
user-friendly, for example debugging features and incomplete features.
//*** Code structure ***//
anim.cpp Anim3 files
anim.h "
bitmap.cpp Bitmap loading and conversion
bitmap.h "
cursor.cpp Mouse cursor
cursor.h "
defs.c Contains strings for every definition in defs.h
defs.h Contains definitions
defs.txt File used to generate defs.c and defs.h
dialog.cpp Code for dialog boxes
dialog.h "
drawing.cpp Contains code for basic drawing
drawing.h "
dynlist.h DynList which is no other than a linked list
file.cpp Loading file from a BCP or a directory
file.h "
font.cpp Font loading and drawing
font.h "
gfxcon.cpp Graphical console to show savegame loading progress
gfxcon.h "
global.h Contains the essential and includes all header files
growbuffer.cpp Growable buffer and list
growbuffer.h "
gui.h Basic GUI (atm only used by the menu bar)
language.cpp Reads the Languages\Language.txt file.
language.h "
lzrw_headers.h Header for using LZRW3 code
lzrw3.c Code for LZRW3 (de)compression
map.cpp Loads and renders the landscape/terrain.
map.h "
maptexdb.cpp Reads the map texture database (Maps\Map_Textures\All_Textures.dat)
maptexdb.h "
mesh.cpp Loads and renders meshes in Mesh3 format.
mesh.h "
minimap.cpp Draws a minimap and also contains code for the Position dialog box.
minimap.h "
renderer.h Contains the 3D graphics renderer abstraction structure
renderer_d3d9.cpp Direct3D 9 renderer
renderer_ogl1.cpp OpenGL 1.1 renderer
resource.h Executable resource definitions
scene.cpp Scene drawing and picking (landscape + objects)
scene.h "
settings.cpp Loads the settings.txt file
settings.h "
test.cpp Contains code that tests certain parts of the program
texture.cpp Makes from a bitmap a texture that can be used for rendering
texture.h "
util.cpp Contains useful routines.
util.h "
vecmat.cpp Vector and matrices
vecmat.h "
window.cpp Window creation/handling.
window.h "
wkbre.cpp Main code. Test7 is run by default.
wkbre.rc Resource script
gameset\
dyntext.cpp Reads formatted text from the gameset
dyntext.h "
gameset.h Definitions related to game set loading
gs_3dclip.cpp Game set 3D_CLIP (WKO map cinematics)
gs_3dclip.h "
gs_animation.cpp Game set animation conditions (including MOVEMENT_BAND, ...)
gs_animation.h "
gs_campath.cpp Game set CAMERA_PATH (for in-game cinematics)
gs_campath.h
gs_command.cpp Game set COMMAND
gs_command.h "
gs_gametextwindow.cpp Game set Game text windows
gs_gametextwindow.h "
gs_order.cpp Game set ORDER, TASK and ORDER_ASSIGNMENT
gs_order.h "
loadgameset.cpp Main code for game set loading
objdef.cpp Loads object type definitions
objdef.h "
savegame.cpp Main code for savegame loading
savegame.h "
sg_ai.cpp Reads/writes AI_CONTROLLER in savegame
sg_ai.h "
sg_clientstate.cpp CLIENT_STATE in savegame
sg_clientstate.h "
sg_diplostat.cpp Implements diplomatic relations.
sg_diplostat.h "
sg_order.cpp Savegame ORDER_CONFIGURATION, ORDER, TASK and PARAM_BLOCK
sg_order.h "
play\
otproc.cpp Order/task processing
otproc.h "
play.cpp Code that advances the current time of the game
play.h "
script\
action.cpp Implements certain types of ACTIONs.
action.h "
events.cpp Implements the event mechanism.
events.h "
finder.cpp Implements certain types of object FINDERs.
finder.h "
objCreation.cpp Implements the OBJECT_CREATION blueprint.
objCreation.h "
package.cpp Implements the PACKAGE blueprint.
package.h "
position.cpp Implements certain types of POSITION determinators.
position.h "
script.h Global header for scripting.
value.cpp Implements certain types of VALUE determinators.
value.h "
t2c\
table2c Program used to generate defs.c and defs.h
redata\
Directory containing files needed to run wkbre. The directory must be
in the same directory as the executable.
notes\
This directory contains some notes I made while writing the program.
Please note that these notes may not be accurate, so please don't believe
that everything I wrote there is correct.
...
d3dx_dll.cpp Dynamically loads D3DX9_??.DLL (unused atm)
d3dx_dll.h "
docs\
Help and important information