' ************************************************** ' * _slagsim.inc * ' * meta compiler file for GMT * ' ************************************************** ' Metaconstants used as compiler directives: ' The value we give to these constants is unimportant. ' The fact of being declared, steers the compiler. ' We set the values to 1 (not %True, since at this point in the code, ' this declaration fails), to be able to compare them with %True. ' TO BE REVISED!!! - no longer functional. #COMPILE EXE "slag_sim" #RESOURCE "resource\gmt_slagsim.pbr" '%Debug = 1 %klungSim = 1 ' for simulation compilation ' specify the simulatorMode by setting the global var klungsimulatormode in SUB InitGlobalVariables() ' or by user input. Uses TCP/IP for connecting to the internet. (either e-mail or ftp) %gmt_robots = 1 %gmt_slagwerk = 1 #IF %DEF(%gmt_slagwerk) %gmt_klung = 1 ' includes code for http://www.logosfoundation.org/tromp/klung.html %gmt_thunder = 1 ' includes code for http://www.logosfoundation.org/tromp/thunderwood.html %gmt_troms =1 ' includes code for http://www.logosfoundation.org/tromp/troms.html ' %gmt_rotom = 1 ' includes code for http://www.logosfoundation.org/tromp/rotomoton.html %gmt_springers = 1 ' include code for http://www.logosfoundation.org/tromp/springers.html #ENDIF #INCLUDE "..\winapi\g_win.inc" '#INCLUDE "..\winapi\wsock32.inc" ' required for internet apps ' Next we declare all our own constants, using an include file: #INCLUDE "g_kons.bi" ' only integer and string constants can be declared in PB #INCLUDE "g_type.bi" ' This declares all our own structures, user defined types #INCLUDE "gmt_glob.bi" ' This declares all variables shared across modules ' must appear after win32api: we use Win32 types as globals #INCLUDE "g_indep.bi" ' includes context independent functions and procedures. Source is in g_indep.bas #INCLUDE "g_file.bi" #INCLUDE "g_lib.bi" ' loads the library DLL, by including its declarations. ' g_lib.bas should be compiled with the PB-DLL compiler, ' as it contains all source code and resources. #INCLUDE "g_mus.bi" ' music library #INCLUDE "g_net.bi" #INCLUDE "gmt.bi" ' kernel procedure declaration file $kompilfile = $kompil_slagsim ' "slagsim" ' ******************************************************* ' conditional compilation block II - application code ' ******************************************************* ' code for Interactive Pieces: we can keep our main structure and add more #elseif statements for alternative compilations ' of different compositions. It is important to have this include after the declarations of GMT functions and libraries, ' since all the compositions make use of these functions. #INCLUDE "g_h.bi" '#IF %DEF (%Debug) ' #INCLUDE "gmt_debu.inc" ' specific debugging/ demo code and tasks '#ENDIF #INCLUDE "robots\robots.inc" 'new 27.06.2002 #IF %DEF(%klungsim) #INCLUDE ".\WebStrikesback\wsb_simu.inc" 'code used in all simulations (help window, submit) #ENDIF #IF %DEF (%gmt_klung) #INCLUDE "robots\klung\klung.bi" #IF %DEF (%klungSim) #INCLUDE "robots\klung\klungsim.inc" #ENDIF #INCLUDE "robots\klung\gmt_klun.inc" #ENDIF #IF %DEF(%gmt_thunder) #INCLUDE "robots\thunderwood\thunder.bi" #IF %DEF(%Klungsim) #INCLUDE "robots\thunderwood\thun_sim.inc" #ENDIF #INCLUDE "robots\thunderwood\thunder.inc" #ENDIF #IF %DEF(%gmt_troms) #INCLUDE "robots\troms\troms.bi" #IF %DEF(%klungSim) #INCLUDE "robots\troms\tromsim.inc" #ENDIF #INCLUDE "robots\troms\troms.inc" #ENDIF #IF %DEF (%gmt_rotom) #INCLUDE "robots\rotomoton\rotomo.bi" #IF %DEF(%klungsim) #INCLUDE "robots\rotomoton\rot_sim.inc #ENDIF #INCLUDE "robots\rotomoton\Rotomo.inc" #ENDIF #IF %DEF (%gmt_springers) #INCLUDE "robots\springers\spring.bi" #IF %DEF(%klungsim) #INCLUDE "robots\springers\sprisim.inc" #ENDIF #INCLUDE "robots\springers\spring.inc" #ENDIF 'for a web strikes back helpwindow at startup #IF %DEF(%klungSim) DECLARE SUB KlungHelpWindow #ENDIF '[EOF]