ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_quake Class Reference
+ Inheritance diagram for HFile_quake:
+ Collaboration diagram for HFile_quake:

Public Member Functions

 HFile_quake ()
 
 donothing ($keywordin)
 
- Public Member Functions inherited from HFile
 __construct ()
 
 parse_file ($file)
 
 to_perl ($stub, $tofile=1)
 
 to_php ($stub, $tofile=1)
 
 _get_categories ()
 
 _dump_linkscripts ()
 
 _dump_perl_linkscripts ()
 
 _dump_perl_defaultscripts ()
 
 _dump_colours ()
 
 _dump_var ($variable, $name)
 
 _dump_array ($array, $name)
 
 _dump_perl_array ($array, $name)
 
 _dump_hash ($hash, $name)
 
 _dump_perl_hash ($hash, $name)
 

Detailed Description

Definition at line 7 of file HFile_quake.php.

Member Function Documentation

◆ donothing()

HFile_quake::donothing (   $keywordin)

Definition at line 584 of file HFile_quake.php.

585  {
586  return $keywordin;
587  }

◆ HFile_quake()

HFile_quake::HFile_quake ( )

Definition at line 9 of file HFile_quake.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Quake2 Config
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "0";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray", "brown", "blue", "purple", "gray");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array();
32  $this->unindent = array();
33 
34  // String characters and delimiters
35 
36  $this->stringchars = array();
37  $this->delimiters = array("-", "+", "=", "/", "\"", ",", ".", "%");
38  $this->escchar = "";
39 
40  // Comment settings
41 
42  $this->linecommenton = array("//");
43  $this->blockcommenton = array("");
44  $this->blockcommentoff = array("");
45 
46  // Keywords (keyword mapping to colour number)
47 
48  $this->keywords = array(
49  "alias" => "1",
50  "bind" => "1",
51  "condump" => "1",
52  "connect" => "1",
53  "demomap" => "1",
54  "dir" => "1",
55  "download" => "1",
56  "drop" => "1",
57  "echo" => "1",
58  "error" => "1",
59  "exec" => "1",
60  "gamemap" => "1",
61  "give" => "1",
62  "gun_model" => "1",
63  "impulse" => "1",
64  "kick" => "1",
65  "link" => "1",
66  "load" => "1",
67  "map" => "1",
68  "play" => "1",
69  "rcon" => "1",
70  "rcon_address" => "1",
71  "rcon_password" => "1",
72  "record" => "1",
73  "save" => "1",
74  "say" => "1",
75  "say_team" => "1",
76  "serverrecord" => "1",
77  "set" => "1",
78  "setenv" => "1",
79  "setmaster" => "1",
80  "sky" => "1",
81  "sv" => "1",
82  "sv_maplist" => "1",
83  "timelimit" => "1",
84  "timerefresh" => "1",
85  "unbind" => "1",
86  "use" => "1",
87  "wave" => "1",
88  "allow_download" => "2",
89  "allow_download_maps" => "2",
90  "allow_download_models" => "2",
91  "allow_download_players" => "2",
92  "allow_download_sounds" => "2",
93  "cd_nocd" => "2",
94  "cheats" => "2",
95  "cl_autoskins" => "2",
96  "cl_blend" => "2",
97  "cl_entities" => "2",
98  "cl_footsteps" => "2",
99  "cl_gun" => "2",
100  "cl_lights" => "2",
101  "cl_nodelta" => "2",
102  "cl_noskins" => "2",
103  "cl_particles" => "2",
104  "cl_predict" => "2",
105  "cl_run" => "2",
106  "cl_showmiss" => "2",
107  "cl_shownet" => "2",
108  "cl_stats" => "2",
109  "cl_stereo" => "2",
110  "cl_testblend" => "2",
111  "cl_testentities" => "2",
112  "cl_testlights" => "2",
113  "cl_testparticles" => "2",
114  "cl_vwep" => "2",
115  "coop" => "2",
116  "deathmatch" => "2",
117  "debuggraph" => "2",
118  "dedicated" => "2",
119  "developer" => "2",
120  "filterban" => "2",
121  "fixedtime" => "2",
122  "flushmap" => "2",
123  "freelook" => "2",
124  "g_select_empty" => "2",
125  "gender_auto" => "2",
126  "gl_3dlabs_broken" => "2",
127  "gl_allow_software" => "2",
128  "gl_bitdepth" => "2",
129  "gl_clear" => "2",
130  "gl_cull" => "2",
131  "gl_dynamic" => "2",
132  "gl_ext_compiled_vertex_array" => "2",
133  "gl_ext_multitexture" => "2",
134  "gl_ext_palettedtexture" => "2",
135  "gl_ext_pointparameters_ext_swapinterval" => "2",
136  "gl_finish" => "2",
137  "gl_flashblend" => "2",
138  "gl_lightmap" => "2",
139  "gl_lockpvs" => "2",
140  "gl_log" => "2",
141  "gl_monolightmap" => "2",
142  "gl_nobind" => "2",
143  "gl_nosubimage" => "2",
144  "gl_playermip" => "2",
145  "gl_polyblend" => "2",
146  "gl_round_down" => "2",
147  "gl_saturatelightning" => "2",
148  "gl_shadows" => "2",
149  "gl_showtris" => "2",
150  "gl_skymip" => "2",
151  "gl_swapinterval" => "2",
152  "gl_vertex_arrays" => "2",
153  "gl_ztrick" => "2",
154  "in_joystick" => "2",
155  "in_mouse" => "2",
156  "joy_advanced" => "2",
157  "log_stats" => "2",
158  "lookspring" => "2",
159  "lookstrafe" => "2",
160  "m_filter" => "2",
161  "netgraph" => "2",
162  "paused" => "2",
163  "public" => "2",
164  "r_drawentities" => "2",
165  "r_dspeeds" => "2",
166  "r_fullbright" => "2",
167  "r_lerpmodels" => "2",
168  "r_nocull" => "2",
169  "r_norefresh" => "2",
170  "r_novis" => "2",
171  "r_speeds" => "2",
172  "s_initsound" => "2",
173  "s_loadas8bit" => "2",
174  "s_primary" => "2",
175  "s_show" => "2",
176  "s_textsound" => "2",
177  "s_wavonly" => "2",
178  "scr_drawall" => "2",
179  "scr_showpause" => "2",
180  "scr_showturtle" => "2",
181  "showclamp" => "2",
182  "showdrop" => "2",
183  "showpackets" => "2",
184  "showtrace" => "2",
185  "spectator" => "2",
186  "sv_enforcetime" => "2",
187  "sv_noreload" => "2",
188  "sw_allow_modex" => "2",
189  "sw_drawflat" => "2",
190  "sw_draworder" => "2",
191  "sw_polymodelstats" => "2",
192  "sw_reportedgeout" => "2",
193  "sw_reportsurfout" => "2",
194  "sw_stipplealpha" => "2",
195  "sw_surfcacheoverride" => "2",
196  "sw_waterwarp" => "2",
197  "timedemo" => "2",
198  "timegraph" => "2",
199  "vid_fullscreen" => "2",
200  "win_noalttab" => "2",
201  "ALT" => "3",
202  "AUX1" => "3",
203  "AUX10" => "3",
204  "AUX11" => "3",
205  "AUX12" => "3",
206  "AUX13" => "3",
207  "AUX14" => "3",
208  "AUX15" => "3",
209  "AUX16" => "3",
210  "AUX17" => "3",
211  "AUX18" => "3",
212  "AUX19" => "3",
213  "AUX2" => "3",
214  "AUX20" => "3",
215  "AUX21" => "3",
216  "AUX22" => "3",
217  "AUX23" => "3",
218  "AUX24" => "3",
219  "AUX25" => "3",
220  "AUX26" => "3",
221  "AUX27" => "3",
222  "AUX28" => "3",
223  "AUX29" => "3",
224  "AUX3" => "3",
225  "AUX30" => "3",
226  "AUX31" => "3",
227  "AUX32" => "3",
228  "AUX4" => "3",
229  "AUX5" => "3",
230  "AUX6" => "3",
231  "AUX7" => "3",
232  "AUX8" => "3",
233  "AUX9" => "3",
234  "BACKSPACE" => "3",
235  "CTRL" => "3",
236  "DEL" => "3",
237  "DOWNARROW" => "3",
238  "END" => "3",
239  "ENTER" => "3",
240  "F1" => "3",
241  "F10" => "3",
242  "F11" => "3",
243  "F12" => "3",
244  "F2" => "3",
245  "F3" => "3",
246  "F4" => "3",
247  "F5" => "3",
248  "F6" => "3",
249  "F7" => "3",
250  "F8" => "3",
251  "F9" => "3",
252  "HOME" => "3",
253  "INS" => "3",
254  "JOY1" => "3",
255  "JOY2" => "3",
256  "JOY3" => "3",
257  "JOY4" => "3",
258  "KP_5" => "3",
259  "KP_DEL" => "3",
260  "KP_DOWNARROW" => "3",
261  "KP_END" => "3",
262  "KP_ENTER" => "3",
263  "KP_HOME" => "3",
264  "KP_INS" => "3",
265  "KP_LEFTARROW" => "3",
266  "KP_MINUS" => "3",
267  "KP_PGDN" => "3",
268  "KP_PGUP" => "3",
269  "KP_PLUS" => "3",
270  "KP_RIGHTARROW" => "3",
271  "KP_SLASH" => "3",
272  "KP_UPARROW" => "3",
273  "LEFTARROW" => "3",
274  "MOUSE1" => "3",
275  "MOUSE2" => "3",
276  "MOUSE3" => "3",
277  "MWHEELDOWN" => "3",
278  "MWHEELUP" => "3",
279  "PAUSE" => "3",
280  "PGDN" => "3",
281  "PGUP" => "3",
282  "RIGHTARROW" => "3",
283  "SEMICOLON" => "3",
284  "SHIFT" => "3",
285  "SPACE" => "3",
286  "TAB" => "3",
287  "UPARROW" => "3",
288  "adr0" => "4",
289  "adr1" => "4",
290  "adr2" => "4",
291  "adr3" => "4",
292  "adr4" => "4",
293  "adr5" => "4",
294  "adr6" => "4",
295  "adr7" => "4",
296  "adr8" => "4",
297  "bob_pitch" => "4",
298  "bob_roll" => "4",
299  "bob_up" => "4",
300  "cd_loopcount" => "4",
301  "cd_looptrack" => "4",
302  "cl_anglespeedkey" => "4",
303  "cl_forwardspeed" => "4",
304  "cl_maxfps" => "4",
305  "cl_pitchspeed" => "4",
306  "cl_sidespeed" => "4",
307  "cl_stereo_separation" => "4",
308  "cl_timeout" => "4",
309  "cl_upspeed" => "4",
310  "cl_yawspeed" => "4",
311  "clientport" => "4",
312  "con_notifytime" => "4",
313  "crosshair" => "4",
314  "dumpuser" => "4",
315  "flood_msgs" => "4",
316  "flood_persecond" => "4",
317  "flood_waitdelay" => "4",
318  "fov" => "4",
319  "fraglimit" => "4",
320  "gl_mode" => "4",
321  "gl_modulate" => "4",
322  "gl_particle_att_a" => "4",
323  "gl_particle_att_b" => "4",
324  "gl_particle_att_c" => "4",
325  "gl_particle_max_size" => "4",
326  "gl_particle_min_size" => "4",
327  "gl_particle_size" => "4",
328  "gl_picmip" => "4",
329  "graphheight" => "4",
330  "graphscale" => "4",
331  "graphshift" => "4",
332  "gun_x" => "4",
333  "gun_y" => "4",
334  "gun_z" => "4",
335  "game" => "4",
336  "gamedate" => "4",
337  "gamedir" => "4",
338  "gamename" => "4",
339  "gender" => "4",
340  "gl_drawbuffer" => "4",
341  "gl_driver" => "4",
342  "gl_texturerealalphamode" => "4",
343  "gl_texturemode" => "4",
344  "gl_texturesolidmode" => "4",
345  "hand" => "4",
346  "host_speeds" => "4",
347  "hostname" => "4",
348  "hostport" => "4",
349  "intensity" => "4",
350  "ip" => "4",
351  "ip_clientport" => "4",
352  "ip_hostport" => "4",
353  "ipx_clientport" => "4",
354  "ipx_hostport" => "4",
355  "joy_name" => "4",
356  "joy_advancedupdate" => "4",
357  "joy_advaxisx" => "4",
358  "joy_advaxisy" => "4",
359  "joy_advaxisz" => "4",
360  "joy_advaxisr" => "4",
361  "joy_advaxisu" => "4",
362  "joy_advaxisv" => "4",
363  "joy_forwardsensitivity" => "4",
364  "joy_forwardthreshold" => "4",
365  "joy_pitchsensitivity" => "4",
366  "joy_pitchthreshold" => "4",
367  "joy_sidesensitivity" => "4",
368  "joy_sidethreshold" => "4",
369  "joy_upsensitivity" => "4",
370  "joy_upthreshold" => "4",
371  "joy_yawsensitivity" => "4",
372  "joy_yawthreshold" => "4",
373  "logfile" => "4",
374  "m_forward" => "4",
375  "m_pitch" => "4",
376  "m_side" => "4",
377  "m_yaw" => "4",
378  "mapame" => "4",
379  "maxclients" => "4",
380  "maxentities" => "4",
381  "maxspectators" => "4",
382  "msg" => "4",
383  "name" => "4",
384  "netserver" => "4",
385  "password" => "4",
386  "port" => "4",
387  "rate" => "4",
388  "run_pitch" => "4",
389  "run_roll" => "4",
390  "s_khz" => "4",
391  "s_mixahead" => "4",
392  "s_volume" => "4",
393  "scr_centertime" => "4",
394  "scr_conspeed" => "4",
395  "scr_printspeed" => "4",
396  "sensitivity" => "4",
397  "skill" => "4",
398  "skin" => "4",
399  "spectator_password" => "4",
400  "sv_airaccelerate" => "4",
401  "sv_gravity" => "4",
402  "sv_maxvelocity" => "4",
403  "sv_reconnect_limit" => "4",
404  "sw_clearcolor" => "4",
405  "sw_maxedges" => "4",
406  "sw_maxsurfs" => "4",
407  "sw_mipcap" => "4",
408  "sw_mipscale" => "4",
409  "sw_mode" => "4",
410  "timeout" => "4",
411  "timescale" => "4",
412  "v_centermove" => "4",
413  "v_centerspeed" => "4",
414  "vid_gamma" => "4",
415  "vid_ref" => "4",
416  "vid_xpos" => "4",
417  "vid_ypos" => "4",
418  "viewsize" => "4",
419  "zombietime" => "4",
420  "attack" => "5",
421  "back" => "5",
422  "forward" => "5",
423  "klook" => "5",
424  "left" => "5",
425  "lookdown" => "5",
426  "lookup" => "5",
427  "mlook" => "5",
428  "movedown" => "5",
429  "moveleft" => "5",
430  "moveright" => "5",
431  "moveup" => "5",
432  "right" => "5",
433  "speed" => "5",
434  "strafe" => "5",
435  "bindlist" => "6",
436  "centerview" => "6",
437  "changing" => "6",
438  "clear" => "6",
439  "cmdlist" => "6",
440  "cvarlist" => "6",
441  "disconnect" => "6",
442  "god" => "6",
443  "gun_next" => "6",
444  "gun_prev" => "6",
445  "heartbeat" => "6",
446  "imagelist" => "6",
447  "info" => "6",
448  "invdrop" => "6",
449  "inven" => "6",
450  "invnext" => "6",
451  "invnextp" => "6",
452  "invnextw" => "6",
453  "invprev" => "6",
454  "invprevp" => "6",
455  "invprevw" => "6",
456  "invuse" => "6",
457  "kill" => "6",
458  "killserver" => "6",
459  "loading" => "6",
460  "menu_addressbook" => "6",
461  "menu_credits" => "6",
462  "menu_dmoptions" => "6",
463  "menu_game" => "6",
464  "menu_joinserver" => "6",
465  "menu_keys" => "6",
466  "menu_loadgame" => "6",
467  "menu_main" => "6",
468  "menu_multiplayer" => "6",
469  "menu_options" => "6",
470  "menu_playerconfig" => "6",
471  "menu_quit" => "6",
472  "menu_savegame" => "6",
473  "menu_startserver" => "6",
474  "menu_video" => "6",
475  "messagemode" => "6",
476  "messagemode2" => "6",
477  "modelist" => "6",
478  "noclip" => "6",
479  "notarget" => "6",
480  "path" => "6",
481  "pause" => "6",
482  "pingservers" => "6",
483  "playerlist" => "6",
484  "players" => "6",
485  "precache" => "6",
486  "quit" => "6",
487  "reconnect" => "6",
488  "score" => "6",
489  "screenshot" => "6",
490  "serverinfo" => "6",
491  "serverstop" => "6",
492  "sizedown" => "6",
493  "sizeup" => "6",
494  "skins" => "6",
495  "snd_restart" => "6",
496  "soundinfo" => "6",
497  "soundlist" => "6",
498  "status" => "6",
499  "stop" => "6",
500  "stopsound" => "6",
501  "togglconsole" => "6",
502  "togglechat" => "6",
503  "unbindall" => "6",
504  "userinfo" => "6",
505  "vid_front" => "6",
506  "vid_restart" => "6",
507  "viewpos" => "6",
508  "wait" => "6",
509  "weaplast" => "6",
510  "weapnext" => "6",
511  "weapprev" => "6",
512  "z_stats" => "6",
513  "adrenaline" => "7",
514  "airstrike" => "7",
515  "all" => "7",
516  "ammo" => "7",
517  "ancient" => "7",
518  "armor" => "7",
519  "bandolier" => "7",
520  "bfg10k" => "7",
521  "blue" => "7",
522  "bullets" => "7",
523  "cd" => "7",
524  "cells" => "7",
525  "chaingun" => "7",
526  "combat" => "7",
527  "commander\'s" => "7",
528  "cube" => "7",
529  "damage" => "7",
530  "data" => "7",
531  "environment" => "7",
532  "grapple" => "7",
533  "grenade" => "7",
534  "grenades" => "7",
535  "head" => "7",
536  "health" => "7",
537  "hyperblaster" => "7",
538  "invulnerability" => "7",
539  "jacket" => "7",
540  "key" => "7",
541  "launcher" => "7",
542  "machinegun" => "7",
543  "marker" => "7",
544  "pack" => "7",
545  "pass" => "7",
546  "power" => "7",
547  "pyramid" => "7",
548  "quad" => "7",
549  "railgun" => "7",
550  "rebreather" => "7",
551  "red" => "7",
552  "rocket" => "7",
553  "rockets" => "7",
554  "screen" => "7",
555  "security" => "7",
556  "shard" => "7",
557  "shells" => "7",
558  "shield" => "7",
559  "shotgun" => "7",
560  "silencer" => "7",
561  "slugs" => "7",
562  "spinner" => "7",
563  "suit" => "7",
564  "super" => "7");
565 
566  // Special extensions
567 
568  // Each category can specify a PHP function that returns an altered
569  // version of the keyword.
570 
571 
572 
573  $this->linkscripts = array(
574  "1" => "donothing",
575  "2" => "donothing",
576  "3" => "donothing",
577  "4" => "donothing",
578  "5" => "donothing",
579  "6" => "donothing",
580  "7" => "donothing");
581  }
Create styles array
The data for the language used.
Definition: HFile.php:21

The documentation for this class was generated from the following file: