@@ -5,39 +5,39 @@ |
||
5 | 5 | /// @brief C3 CAOS flow control (doif, else, loop, etc) dictionary */ |
6 | 6 | class C3CAOSFlowControls { |
7 | 7 | /// @brief Returns an array of tokens. |
8 | - public static function GetTokens() { |
|
9 | - return array |
|
10 | - ( |
|
8 | + public static function GetTokens() { |
|
9 | + return array |
|
10 | + ( |
|
11 | 11 | |
12 | - 'doif', |
|
13 | - 'econ', |
|
14 | - 'elif', |
|
15 | - 'else', |
|
16 | - 'enum', |
|
17 | - 'endi', |
|
18 | - 'endm', |
|
19 | - 'epas', |
|
20 | - 'esee', |
|
21 | - 'etch', |
|
22 | - 'ever', |
|
23 | - 'goto', |
|
24 | - 'gsub', |
|
25 | - 'inst', |
|
26 | - 'iscr', |
|
27 | - 'loop', |
|
28 | - 'next', |
|
29 | - 'over', //wait until current agent anim is over...sounds like a flow control to me. |
|
30 | - 'repe', |
|
31 | - 'reps', |
|
32 | - 'retn', |
|
33 | - 'rscr', |
|
34 | - 'scrp', |
|
35 | - 'slow', |
|
36 | - 'subr', |
|
37 | - 'untl', |
|
12 | + 'doif', |
|
13 | + 'econ', |
|
14 | + 'elif', |
|
15 | + 'else', |
|
16 | + 'enum', |
|
17 | + 'endi', |
|
18 | + 'endm', |
|
19 | + 'epas', |
|
20 | + 'esee', |
|
21 | + 'etch', |
|
22 | + 'ever', |
|
23 | + 'goto', |
|
24 | + 'gsub', |
|
25 | + 'inst', |
|
26 | + 'iscr', |
|
27 | + 'loop', |
|
28 | + 'next', |
|
29 | + 'over', //wait until current agent anim is over...sounds like a flow control to me. |
|
30 | + 'repe', |
|
31 | + 'reps', |
|
32 | + 'retn', |
|
33 | + 'rscr', |
|
34 | + 'scrp', |
|
35 | + 'slow', |
|
36 | + 'subr', |
|
37 | + 'untl', |
|
38 | 38 | |
39 | - ); |
|
40 | - } |
|
39 | + ); |
|
40 | + } |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /// @endcond |
@@ -6,8 +6,7 @@ |
||
6 | 6 | class C3CAOSFlowControls { |
7 | 7 | /// @brief Returns an array of tokens. |
8 | 8 | public static function GetTokens() { |
9 | - return array |
|
10 | - ( |
|
9 | + return array( |
|
11 | 10 | |
12 | 11 | 'doif', |
13 | 12 | 'econ', |
@@ -8,160 +8,160 @@ |
||
8 | 8 | */ |
9 | 9 | class C3CAOSVariables { |
10 | 10 | /// @brief Returns an array of tokens. |
11 | - public static function GetTokens() { |
|
12 | - return array |
|
13 | - ( |
|
14 | - //agents |
|
15 | - 'abba', |
|
16 | - 'carr', |
|
17 | - 'cata', |
|
18 | - 'clac', |
|
19 | - 'fltx', |
|
20 | - 'flty', |
|
21 | - 'fmly', |
|
22 | - 'from', |
|
23 | - 'gnus', |
|
24 | - 'held', |
|
25 | - 'hght', |
|
26 | - 'iitt', |
|
27 | - 'imsk', |
|
28 | - 'mows', |
|
29 | - 'mthx', |
|
30 | - 'mthy', |
|
31 | - 'null', |
|
32 | - 'ownr', |
|
33 | - 'pnts', |
|
34 | - 'posb', |
|
35 | - 'posl', |
|
36 | - 'posr', |
|
37 | - 'post', |
|
38 | - 'posx', |
|
39 | - 'posy', |
|
40 | - 'spcs', |
|
41 | - 'wdth', |
|
42 | - '_it_', |
|
11 | + public static function GetTokens() { |
|
12 | + return array |
|
13 | + ( |
|
14 | + //agents |
|
15 | + 'abba', |
|
16 | + 'carr', |
|
17 | + 'cata', |
|
18 | + 'clac', |
|
19 | + 'fltx', |
|
20 | + 'flty', |
|
21 | + 'fmly', |
|
22 | + 'from', |
|
23 | + 'gnus', |
|
24 | + 'held', |
|
25 | + 'hght', |
|
26 | + 'iitt', |
|
27 | + 'imsk', |
|
28 | + 'mows', |
|
29 | + 'mthx', |
|
30 | + 'mthy', |
|
31 | + 'null', |
|
32 | + 'ownr', |
|
33 | + 'pnts', |
|
34 | + 'posb', |
|
35 | + 'posl', |
|
36 | + 'posr', |
|
37 | + 'post', |
|
38 | + 'posx', |
|
39 | + 'posy', |
|
40 | + 'spcs', |
|
41 | + 'wdth', |
|
42 | + '_it_', |
|
43 | 43 | |
44 | - //camera |
|
45 | - 'cmrx', |
|
46 | - 'cmry', |
|
47 | - 'wndb', |
|
48 | - 'wndh', |
|
49 | - 'wndl', |
|
50 | - 'wndr', |
|
51 | - 'wndt', |
|
52 | - 'wndw', |
|
44 | + //camera |
|
45 | + 'cmrx', |
|
46 | + 'cmry', |
|
47 | + 'wndb', |
|
48 | + 'wndh', |
|
49 | + 'wndl', |
|
50 | + 'wndr', |
|
51 | + 'wndt', |
|
52 | + 'wndw', |
|
53 | 53 | |
54 | - //cd player |
|
55 | - '_cd_ frqh', |
|
56 | - '_cd_ frql', |
|
57 | - '_cd_ frqm', |
|
54 | + //cd player |
|
55 | + '_cd_ frqh', |
|
56 | + '_cd_ frql', |
|
57 | + '_cd_ frqm', |
|
58 | 58 | |
59 | - //compound |
|
60 | - 'npgs', |
|
59 | + //compound |
|
60 | + 'npgs', |
|
61 | 61 | |
62 | - //creatures |
|
63 | - 'attn', |
|
64 | - 'bvar', |
|
65 | - 'byit', |
|
66 | - 'cage', |
|
67 | - 'decn', |
|
68 | - 'dftx', |
|
69 | - 'dfty', |
|
70 | - 'drv!', |
|
71 | - 'expr', |
|
72 | - 'hhld', |
|
73 | - 'orgn', |
|
74 | - 'tage', |
|
75 | - 'uftx', |
|
76 | - 'ufty', |
|
62 | + //creatures |
|
63 | + 'attn', |
|
64 | + 'bvar', |
|
65 | + 'byit', |
|
66 | + 'cage', |
|
67 | + 'decn', |
|
68 | + 'dftx', |
|
69 | + 'dfty', |
|
70 | + 'drv!', |
|
71 | + 'expr', |
|
72 | + 'hhld', |
|
73 | + 'orgn', |
|
74 | + 'tage', |
|
75 | + 'uftx', |
|
76 | + 'ufty', |
|
77 | 77 | |
78 | - //debug |
|
79 | - 'code', |
|
80 | - 'codf', |
|
81 | - 'codg', |
|
82 | - 'codp', |
|
83 | - 'cods', |
|
84 | - 'paws', |
|
85 | - 'tack', |
|
86 | - 'unid', |
|
78 | + //debug |
|
79 | + 'code', |
|
80 | + 'codf', |
|
81 | + 'codg', |
|
82 | + 'codp', |
|
83 | + 'cods', |
|
84 | + 'paws', |
|
85 | + 'tack', |
|
86 | + 'unid', |
|
87 | 87 | |
88 | - //files |
|
89 | - 'innf', |
|
90 | - 'inni', |
|
91 | - 'innl', |
|
92 | - 'inok', |
|
88 | + //files |
|
89 | + 'innf', |
|
90 | + 'inni', |
|
91 | + 'innl', |
|
92 | + 'inok', |
|
93 | 93 | |
94 | - //input |
|
95 | - 'hotp', |
|
96 | - 'hots', |
|
97 | - 'mopx', |
|
98 | - 'mopy', |
|
99 | - 'movx', |
|
100 | - 'movy', |
|
101 | - 'down', |
|
102 | - 'emid', |
|
103 | - 'left', |
|
104 | - 'maph', |
|
105 | - 'mapw', |
|
106 | - 'mloc', |
|
107 | - 'rght', |
|
108 | - '_up_', |
|
94 | + //input |
|
95 | + 'hotp', |
|
96 | + 'hots', |
|
97 | + 'mopx', |
|
98 | + 'mopy', |
|
99 | + 'movx', |
|
100 | + 'movy', |
|
101 | + 'down', |
|
102 | + 'emid', |
|
103 | + 'left', |
|
104 | + 'maph', |
|
105 | + 'mapw', |
|
106 | + 'mloc', |
|
107 | + 'rght', |
|
108 | + '_up_', |
|
109 | 109 | |
110 | - //motion |
|
111 | - 'fall', |
|
112 | - 'movs', |
|
113 | - 'velx', |
|
114 | - 'vely', |
|
115 | - 'wall', |
|
110 | + //motion |
|
111 | + 'fall', |
|
112 | + 'movs', |
|
113 | + 'velx', |
|
114 | + 'vely', |
|
115 | + 'wall', |
|
116 | 116 | |
117 | - //ports |
|
118 | - 'prt: itot', |
|
119 | - 'prt: otot', |
|
117 | + //ports |
|
118 | + 'prt: itot', |
|
119 | + 'prt: otot', |
|
120 | 120 | |
121 | - //resources |
|
121 | + //resources |
|
122 | 122 | |
123 | - //scripts |
|
123 | + //scripts |
|
124 | 124 | |
125 | - //time |
|
126 | - 'date', |
|
127 | - 'dayt', |
|
128 | - 'etik', |
|
129 | - 'mont', |
|
130 | - 'msec', |
|
131 | - 'pace', |
|
132 | - 'race', |
|
133 | - 'rtim', |
|
134 | - 'sean', |
|
135 | - 'time', |
|
136 | - 'wtik', |
|
137 | - 'year', |
|
125 | + //time |
|
126 | + 'date', |
|
127 | + 'dayt', |
|
128 | + 'etik', |
|
129 | + 'mont', |
|
130 | + 'msec', |
|
131 | + 'pace', |
|
132 | + 'race', |
|
133 | + 'rtim', |
|
134 | + 'sean', |
|
135 | + 'time', |
|
136 | + 'wtik', |
|
137 | + 'year', |
|
138 | 138 | |
139 | - //variables |
|
140 | - 'gnam', |
|
141 | - 'modu', |
|
142 | - 'eame', |
|
143 | - 'name', |
|
144 | - 'game', |
|
145 | - 'ufos', |
|
146 | - 'vmjr', |
|
147 | - 'vmnr', |
|
148 | - '_p1_', |
|
149 | - '_p2_', |
|
150 | - 'null', |
|
139 | + //variables |
|
140 | + 'gnam', |
|
141 | + 'modu', |
|
142 | + 'eame', |
|
143 | + 'name', |
|
144 | + 'game', |
|
145 | + 'ufos', |
|
146 | + 'vmjr', |
|
147 | + 'vmnr', |
|
148 | + '_p1_', |
|
149 | + '_p2_', |
|
150 | + 'null', |
|
151 | 151 | |
152 | - //vehicles |
|
153 | - 'cabb', |
|
154 | - 'cabl', |
|
155 | - 'cabr', |
|
156 | - 'cabt', |
|
152 | + //vehicles |
|
153 | + 'cabb', |
|
154 | + 'cabl', |
|
155 | + 'cabr', |
|
156 | + 'cabt', |
|
157 | 157 | |
158 | - //world |
|
159 | - 'nwld', |
|
160 | - 'wnam', |
|
161 | - 'wuid', |
|
158 | + //world |
|
159 | + 'nwld', |
|
160 | + 'wnam', |
|
161 | + 'wuid', |
|
162 | 162 | |
163 | - ); |
|
164 | - } |
|
163 | + ); |
|
164 | + } |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | /// @endcond |
@@ -9,8 +9,7 @@ |
||
9 | 9 | class C3CAOSVariables { |
10 | 10 | /// @brief Returns an array of tokens. |
11 | 11 | public static function GetTokens() { |
12 | - return array |
|
13 | - ( |
|
12 | + return array( |
|
14 | 13 | //agents |
15 | 14 | 'abba', |
16 | 15 | 'carr', |
@@ -5,429 +5,429 @@ |
||
5 | 5 | /// @brief C3 CAOS commands dictionary |
6 | 6 | class C3CAOSCommands { |
7 | 7 | /// @brief Returns an array of tokens. |
8 | - public static function GetTokens() { |
|
9 | - return array |
|
10 | - ( |
|
11 | - 'alph', |
|
12 | - 'anim', |
|
13 | - 'amms', |
|
14 | - 'call', |
|
15 | - 'cati', |
|
16 | - 'cato', |
|
17 | - 'catx', |
|
18 | - 'core', |
|
19 | - 'dcor', |
|
20 | - 'disq', |
|
21 | - 'drop', |
|
22 | - 'dsee', |
|
23 | - 'frat', |
|
24 | - 'gait', |
|
25 | - 'kill', |
|
26 | - 'mesg writ', |
|
27 | - 'mesg wrt+', |
|
28 | - 'ncls', |
|
29 | - 'nohh', |
|
30 | - 'pcls', |
|
31 | - 'puhl', |
|
32 | - 'pupt', |
|
33 | - 'rtar', |
|
34 | - 'seee', |
|
35 | - 'show', |
|
36 | - 'star', |
|
37 | - 'tcor', |
|
38 | - 'tino', |
|
39 | - 'tint', |
|
40 | - 'totl', |
|
41 | - 'touc', |
|
42 | - 'tran', |
|
43 | - 'ttar', |
|
44 | - 'twin', |
|
45 | - 'ucln', |
|
46 | - 'visi', |
|
47 | - 'wild', |
|
8 | + public static function GetTokens() { |
|
9 | + return array |
|
10 | + ( |
|
11 | + 'alph', |
|
12 | + 'anim', |
|
13 | + 'amms', |
|
14 | + 'call', |
|
15 | + 'cati', |
|
16 | + 'cato', |
|
17 | + 'catx', |
|
18 | + 'core', |
|
19 | + 'dcor', |
|
20 | + 'disq', |
|
21 | + 'drop', |
|
22 | + 'dsee', |
|
23 | + 'frat', |
|
24 | + 'gait', |
|
25 | + 'kill', |
|
26 | + 'mesg writ', |
|
27 | + 'mesg wrt+', |
|
28 | + 'ncls', |
|
29 | + 'nohh', |
|
30 | + 'pcls', |
|
31 | + 'puhl', |
|
32 | + 'pupt', |
|
33 | + 'rtar', |
|
34 | + 'seee', |
|
35 | + 'show', |
|
36 | + 'star', |
|
37 | + 'tcor', |
|
38 | + 'tino', |
|
39 | + 'tint', |
|
40 | + 'totl', |
|
41 | + 'touc', |
|
42 | + 'tran', |
|
43 | + 'ttar', |
|
44 | + 'twin', |
|
45 | + 'ucln', |
|
46 | + 'visi', |
|
47 | + 'wild', |
|
48 | 48 | |
49 | - //brain |
|
50 | - 'adin', |
|
51 | - 'brn: dmpb', |
|
52 | - 'brn: dmpd', |
|
53 | - 'brn: dmpl', |
|
54 | - 'brn: dmpn', |
|
55 | - 'brn: dmpt', |
|
56 | - 'brn: setd', |
|
57 | - 'brn: setl', |
|
58 | - 'brn: setn', |
|
59 | - 'brn: sett', |
|
60 | - 'doin', |
|
49 | + //brain |
|
50 | + 'adin', |
|
51 | + 'brn: dmpb', |
|
52 | + 'brn: dmpd', |
|
53 | + 'brn: dmpl', |
|
54 | + 'brn: dmpn', |
|
55 | + 'brn: dmpt', |
|
56 | + 'brn: setd', |
|
57 | + 'brn: setl', |
|
58 | + 'brn: setn', |
|
59 | + 'brn: sett', |
|
60 | + 'doin', |
|
61 | 61 | |
62 | - //camera |
|
63 | - 'bkgd', |
|
64 | - 'brmi', |
|
65 | - 'cmra', |
|
66 | - 'cmrp', |
|
67 | - 'cmrt', |
|
68 | - 'frsh', |
|
69 | - 'line', |
|
70 | - 'loft', |
|
71 | - 'scam', |
|
72 | - 'snap', |
|
73 | - 'snax', |
|
74 | - 'zoom', |
|
62 | + //camera |
|
63 | + 'bkgd', |
|
64 | + 'brmi', |
|
65 | + 'cmra', |
|
66 | + 'cmrp', |
|
67 | + 'cmrt', |
|
68 | + 'frsh', |
|
69 | + 'line', |
|
70 | + 'loft', |
|
71 | + 'scam', |
|
72 | + 'snap', |
|
73 | + 'snax', |
|
74 | + 'zoom', |
|
75 | 75 | |
76 | - //cd player |
|
77 | - '_cd_ ejct', |
|
78 | - '_cd_ init', |
|
79 | - '_cd_ paws', |
|
80 | - '_cd_ play', |
|
81 | - '_cd_ shut', |
|
82 | - '_cd_ stop', |
|
76 | + //cd player |
|
77 | + '_cd_ ejct', |
|
78 | + '_cd_ init', |
|
79 | + '_cd_ paws', |
|
80 | + '_cd_ play', |
|
81 | + '_cd_ shut', |
|
82 | + '_cd_ stop', |
|
83 | 83 | |
84 | - //compounds |
|
85 | - 'fcus', |
|
86 | - 'frmt', |
|
87 | - 'grpl', |
|
88 | - 'grpv', |
|
89 | - 'part', |
|
90 | - 'pat: butt', |
|
91 | - 'pat: cmra', |
|
92 | - 'pat: dull', |
|
93 | - 'pat: fixd', |
|
94 | - 'pat: grph', |
|
95 | - 'pat: kill', |
|
96 | - 'pat: move', |
|
97 | - 'pat: text', |
|
98 | - 'pnxt', |
|
84 | + //compounds |
|
85 | + 'fcus', |
|
86 | + 'frmt', |
|
87 | + 'grpl', |
|
88 | + 'grpv', |
|
89 | + 'part', |
|
90 | + 'pat: butt', |
|
91 | + 'pat: cmra', |
|
92 | + 'pat: dull', |
|
93 | + 'pat: fixd', |
|
94 | + 'pat: grph', |
|
95 | + 'pat: kill', |
|
96 | + 'pat: move', |
|
97 | + 'pat: text', |
|
98 | + 'pnxt', |
|
99 | 99 | |
100 | - //creation |
|
101 | - 'new: simp', |
|
102 | - 'new: comp', |
|
103 | - 'new: crag', |
|
104 | - 'new: crea', |
|
105 | - 'new: vhcl', |
|
106 | - 'newc', |
|
100 | + //creation |
|
101 | + 'new: simp', |
|
102 | + 'new: comp', |
|
103 | + 'new: crag', |
|
104 | + 'new: crea', |
|
105 | + 'new: vhcl', |
|
106 | + 'newc', |
|
107 | 107 | |
108 | - //creatures |
|
109 | - 'ages', |
|
110 | - 'appr', |
|
111 | - 'body', |
|
112 | - 'boot', |
|
113 | - 'born', |
|
114 | - 'calg', |
|
115 | - 'chem', |
|
116 | - 'crea', |
|
117 | - 'done', |
|
118 | - 'driv', |
|
119 | - 'forf', |
|
120 | - 'hair', |
|
121 | - 'injr', |
|
122 | - 'like', |
|
123 | - 'limb', |
|
124 | - 'loci', |
|
125 | - 'ltcy', |
|
126 | - 'mate', |
|
127 | - 'mvft', |
|
128 | - 'nude', |
|
129 | - 'ordr shou', |
|
130 | - 'ordr sign', |
|
131 | - 'ordr tact', |
|
132 | - 'ordr writ', |
|
133 | - 'orgf', |
|
134 | - 'orgi', |
|
135 | - 'plmd', |
|
136 | - 'plmu', |
|
137 | - 'sayn', |
|
138 | - 'seen', |
|
139 | - 'soul', |
|
140 | - 'spnl', |
|
141 | - 'step', |
|
142 | - 'stim shou', |
|
143 | - 'stim sign', |
|
144 | - 'stim tact', |
|
145 | - 'stim writ', |
|
146 | - 'sway shou', |
|
147 | - 'sway sign', |
|
148 | - 'sway tact', |
|
149 | - 'sway writ', |
|
150 | - 'touc', |
|
151 | - 'urge shou', |
|
152 | - 'urge sign', |
|
153 | - 'urge tact', |
|
154 | - 'urge writ', |
|
155 | - 'vocb', |
|
156 | - 'walk', |
|
157 | - 'wear', |
|
108 | + //creatures |
|
109 | + 'ages', |
|
110 | + 'appr', |
|
111 | + 'body', |
|
112 | + 'boot', |
|
113 | + 'born', |
|
114 | + 'calg', |
|
115 | + 'chem', |
|
116 | + 'crea', |
|
117 | + 'done', |
|
118 | + 'driv', |
|
119 | + 'forf', |
|
120 | + 'hair', |
|
121 | + 'injr', |
|
122 | + 'like', |
|
123 | + 'limb', |
|
124 | + 'loci', |
|
125 | + 'ltcy', |
|
126 | + 'mate', |
|
127 | + 'mvft', |
|
128 | + 'nude', |
|
129 | + 'ordr shou', |
|
130 | + 'ordr sign', |
|
131 | + 'ordr tact', |
|
132 | + 'ordr writ', |
|
133 | + 'orgf', |
|
134 | + 'orgi', |
|
135 | + 'plmd', |
|
136 | + 'plmu', |
|
137 | + 'sayn', |
|
138 | + 'seen', |
|
139 | + 'soul', |
|
140 | + 'spnl', |
|
141 | + 'step', |
|
142 | + 'stim shou', |
|
143 | + 'stim sign', |
|
144 | + 'stim tact', |
|
145 | + 'stim writ', |
|
146 | + 'sway shou', |
|
147 | + 'sway sign', |
|
148 | + 'sway tact', |
|
149 | + 'sway writ', |
|
150 | + 'touc', |
|
151 | + 'urge shou', |
|
152 | + 'urge sign', |
|
153 | + 'urge tact', |
|
154 | + 'urge writ', |
|
155 | + 'vocb', |
|
156 | + 'walk', |
|
157 | + 'wear', |
|
158 | 158 | |
159 | - //debug |
|
160 | - 'agnt', |
|
161 | - 'apro', |
|
162 | - 'bang', |
|
163 | - 'dbg#', |
|
164 | - 'dbg: asrt', |
|
165 | - 'dbg: cpro', |
|
166 | - 'dbg: flsh', |
|
167 | - 'dbg: html', |
|
168 | - 'dbg: outs', |
|
169 | - 'dbg: outv', |
|
170 | - 'dbg: paws', |
|
171 | - 'dbg: play', |
|
172 | - 'dbg: poll', |
|
173 | - 'dbg: prof', |
|
174 | - 'dbg: tack', |
|
175 | - 'dbg: tock', |
|
176 | - 'dbg: wtik', |
|
177 | - 'dbga', |
|
178 | - 'head', |
|
179 | - 'help', |
|
180 | - 'mann', |
|
181 | - 'memx', |
|
159 | + //debug |
|
160 | + 'agnt', |
|
161 | + 'apro', |
|
162 | + 'bang', |
|
163 | + 'dbg#', |
|
164 | + 'dbg: asrt', |
|
165 | + 'dbg: cpro', |
|
166 | + 'dbg: flsh', |
|
167 | + 'dbg: html', |
|
168 | + 'dbg: outs', |
|
169 | + 'dbg: outv', |
|
170 | + 'dbg: paws', |
|
171 | + 'dbg: play', |
|
172 | + 'dbg: poll', |
|
173 | + 'dbg: prof', |
|
174 | + 'dbg: tack', |
|
175 | + 'dbg: tock', |
|
176 | + 'dbg: wtik', |
|
177 | + 'dbga', |
|
178 | + 'head', |
|
179 | + 'help', |
|
180 | + 'mann', |
|
181 | + 'memx', |
|
182 | 182 | |
183 | - //files |
|
184 | - 'file glob', |
|
185 | - 'file iclo', |
|
186 | - 'file iope', |
|
187 | - 'file jdel', |
|
188 | - 'file oclo', |
|
189 | - 'file oflu', |
|
190 | - 'file oope', |
|
191 | - 'fvwm', |
|
192 | - 'outs', |
|
193 | - 'outv', |
|
194 | - 'outx', |
|
195 | - 'webb', |
|
183 | + //files |
|
184 | + 'file glob', |
|
185 | + 'file iclo', |
|
186 | + 'file iope', |
|
187 | + 'file jdel', |
|
188 | + 'file oclo', |
|
189 | + 'file oflu', |
|
190 | + 'file oope', |
|
191 | + 'fvwm', |
|
192 | + 'outs', |
|
193 | + 'outv', |
|
194 | + 'outx', |
|
195 | + 'webb', |
|
196 | 196 | |
197 | - //genetics |
|
198 | - 'gene clon', |
|
199 | - 'gene cros', |
|
200 | - 'gene kill', |
|
201 | - 'gene load', |
|
202 | - 'gene move', |
|
203 | - 'gtos', |
|
204 | - 'mtoa', |
|
205 | - 'mtoc', |
|
197 | + //genetics |
|
198 | + 'gene clon', |
|
199 | + 'gene cros', |
|
200 | + 'gene kill', |
|
201 | + 'gene load', |
|
202 | + 'gene move', |
|
203 | + 'gtos', |
|
204 | + 'mtoa', |
|
205 | + 'mtoc', |
|
206 | 206 | |
207 | - //history |
|
208 | - 'hist cage', |
|
209 | - 'hist coun', |
|
210 | - 'hist cros', |
|
211 | - 'hist evnt', |
|
212 | - 'hist find', |
|
213 | - 'hist finr', |
|
214 | - 'hist foto', |
|
215 | - 'hist gend', |
|
216 | - 'hist gnus', |
|
217 | - 'hist mon1', |
|
218 | - 'hist mon2', |
|
219 | - 'hist mute', |
|
220 | - 'hist name', |
|
221 | - 'hist next', |
|
222 | - 'hist prev', |
|
223 | - 'hist rtim', |
|
224 | - 'hist tage', |
|
225 | - 'hist type', |
|
226 | - 'hist utxt', |
|
227 | - 'hist vari', |
|
228 | - 'hist wipe', |
|
229 | - 'hist wnam', |
|
230 | - 'hist wtik', |
|
231 | - 'hist wuid', |
|
232 | - 'ooww', |
|
207 | + //history |
|
208 | + 'hist cage', |
|
209 | + 'hist coun', |
|
210 | + 'hist cros', |
|
211 | + 'hist evnt', |
|
212 | + 'hist find', |
|
213 | + 'hist finr', |
|
214 | + 'hist foto', |
|
215 | + 'hist gend', |
|
216 | + 'hist gnus', |
|
217 | + 'hist mon1', |
|
218 | + 'hist mon2', |
|
219 | + 'hist mute', |
|
220 | + 'hist name', |
|
221 | + 'hist next', |
|
222 | + 'hist prev', |
|
223 | + 'hist rtim', |
|
224 | + 'hist tage', |
|
225 | + 'hist type', |
|
226 | + 'hist utxt', |
|
227 | + 'hist vari', |
|
228 | + 'hist wipe', |
|
229 | + 'hist wnam', |
|
230 | + 'hist wtik', |
|
231 | + 'hist wuid', |
|
232 | + 'ooww', |
|
233 | 233 | |
234 | - //input |
|
235 | - 'clac', |
|
236 | - 'clik', |
|
237 | - 'imsk', |
|
238 | - 'keyd', |
|
239 | - 'mous', |
|
240 | - 'tran', |
|
234 | + //input |
|
235 | + 'clac', |
|
236 | + 'clik', |
|
237 | + 'imsk', |
|
238 | + 'keyd', |
|
239 | + 'mous', |
|
240 | + 'tran', |
|
241 | 241 | |
242 | - //map |
|
243 | - 'addb', |
|
244 | - 'addm', |
|
245 | - 'addr', |
|
246 | - 'altr', |
|
247 | - 'bkds', |
|
248 | - 'cacl', |
|
249 | - 'calc', |
|
250 | - 'delm', |
|
251 | - 'delr', |
|
252 | - 'dmap', |
|
253 | - 'doca', |
|
254 | - 'door', |
|
255 | - 'emit', |
|
256 | - 'erid', |
|
257 | - 'gmap', |
|
258 | - 'grap', |
|
259 | - 'grid', |
|
260 | - 'hirp', |
|
261 | - 'link', |
|
262 | - 'lorp', |
|
263 | - 'mapd', |
|
264 | - 'mapk', |
|
265 | - 'prop', |
|
266 | - 'rate', |
|
267 | - 'rloc', |
|
268 | - 'room', |
|
269 | - 'rtyp', |
|
270 | - 'torx', |
|
271 | - 'tory', |
|
242 | + //map |
|
243 | + 'addb', |
|
244 | + 'addm', |
|
245 | + 'addr', |
|
246 | + 'altr', |
|
247 | + 'bkds', |
|
248 | + 'cacl', |
|
249 | + 'calc', |
|
250 | + 'delm', |
|
251 | + 'delr', |
|
252 | + 'dmap', |
|
253 | + 'doca', |
|
254 | + 'door', |
|
255 | + 'emit', |
|
256 | + 'erid', |
|
257 | + 'gmap', |
|
258 | + 'grap', |
|
259 | + 'grid', |
|
260 | + 'hirp', |
|
261 | + 'link', |
|
262 | + 'lorp', |
|
263 | + 'mapd', |
|
264 | + 'mapk', |
|
265 | + 'prop', |
|
266 | + 'rate', |
|
267 | + 'rloc', |
|
268 | + 'room', |
|
269 | + 'rtyp', |
|
270 | + 'torx', |
|
271 | + 'tory', |
|
272 | 272 | |
273 | - //motion |
|
274 | - 'angl', |
|
275 | - 'flto', |
|
276 | - 'frel', |
|
277 | - 'mvby', |
|
278 | - 'mvsf', |
|
279 | - 'mvto', |
|
280 | - 'obst', |
|
281 | - 'relx', |
|
282 | - 'rely', |
|
283 | - 'rotn', |
|
284 | - 'tmvb', |
|
285 | - 'tmvf', |
|
286 | - 'tmvt', |
|
287 | - 'vecx', |
|
288 | - 'vecy', |
|
289 | - 'velo', |
|
273 | + //motion |
|
274 | + 'angl', |
|
275 | + 'flto', |
|
276 | + 'frel', |
|
277 | + 'mvby', |
|
278 | + 'mvsf', |
|
279 | + 'mvto', |
|
280 | + 'obst', |
|
281 | + 'relx', |
|
282 | + 'rely', |
|
283 | + 'rotn', |
|
284 | + 'tmvb', |
|
285 | + 'tmvf', |
|
286 | + 'tmvt', |
|
287 | + 'vecx', |
|
288 | + 'vecy', |
|
289 | + 'velo', |
|
290 | 290 | |
291 | - //ports |
|
292 | - 'prt: bang', |
|
293 | - 'prt: frma', |
|
294 | - 'prt: from', |
|
295 | - 'prt: inew', |
|
296 | - 'prt: izap', |
|
297 | - 'prt: join', |
|
298 | - 'prt: kraf', |
|
299 | - 'prt: name', |
|
300 | - 'prt: onew', |
|
301 | - 'prt: ozap', |
|
302 | - 'prt: send', |
|
291 | + //ports |
|
292 | + 'prt: bang', |
|
293 | + 'prt: frma', |
|
294 | + 'prt: from', |
|
295 | + 'prt: inew', |
|
296 | + 'prt: izap', |
|
297 | + 'prt: join', |
|
298 | + 'prt: kraf', |
|
299 | + 'prt: name', |
|
300 | + 'prt: onew', |
|
301 | + 'prt: ozap', |
|
302 | + 'prt: send', |
|
303 | 303 | |
304 | - //resources |
|
305 | - 'pray agti', |
|
306 | - 'pray agts', |
|
307 | - 'pray back', |
|
308 | - 'pray coun', |
|
309 | - 'pray deps', |
|
310 | - 'pray expo', |
|
311 | - 'pray file', |
|
312 | - 'pray fore', |
|
313 | - 'pray garb', |
|
314 | - 'pray impo', |
|
315 | - 'pray injt', |
|
316 | - 'pray kill', |
|
317 | - 'pray make', |
|
318 | - 'pray next', |
|
319 | - 'pray prev', |
|
320 | - 'pray refr', |
|
321 | - 'pray test', |
|
304 | + //resources |
|
305 | + 'pray agti', |
|
306 | + 'pray agts', |
|
307 | + 'pray back', |
|
308 | + 'pray coun', |
|
309 | + 'pray deps', |
|
310 | + 'pray expo', |
|
311 | + 'pray file', |
|
312 | + 'pray fore', |
|
313 | + 'pray garb', |
|
314 | + 'pray impo', |
|
315 | + 'pray injt', |
|
316 | + 'pray kill', |
|
317 | + 'pray make', |
|
318 | + 'pray next', |
|
319 | + 'pray prev', |
|
320 | + 'pray refr', |
|
321 | + 'pray test', |
|
322 | 322 | |
323 | - //caos |
|
324 | - 'caos', |
|
325 | - 'gids fmly', |
|
326 | - 'gids gnus', |
|
327 | - 'gids root', |
|
328 | - 'inst', |
|
329 | - 'ject', |
|
330 | - 'lock', |
|
331 | - 'scrx', |
|
332 | - 'slow', |
|
333 | - 'sorc', |
|
334 | - 'sorq', |
|
335 | - 'stop', |
|
336 | - 'stpt', |
|
337 | - 'unlk', |
|
338 | - 'wait', |
|
323 | + //caos |
|
324 | + 'caos', |
|
325 | + 'gids fmly', |
|
326 | + 'gids gnus', |
|
327 | + 'gids root', |
|
328 | + 'inst', |
|
329 | + 'ject', |
|
330 | + 'lock', |
|
331 | + 'scrx', |
|
332 | + 'slow', |
|
333 | + 'sorc', |
|
334 | + 'sorq', |
|
335 | + 'stop', |
|
336 | + 'stpt', |
|
337 | + 'unlk', |
|
338 | + 'wait', |
|
339 | 339 | |
340 | - //sounds |
|
341 | - 'fade', |
|
342 | - 'mclr', |
|
343 | - 'midi', |
|
344 | - 'mmsc', |
|
345 | - 'mute', |
|
346 | - 'rclr', |
|
347 | - 'rmsc', |
|
348 | - 'sezz', |
|
349 | - 'sndc', |
|
350 | - 'snde', |
|
351 | - 'sdnl', |
|
352 | - 'sndq', |
|
353 | - 'stpc', |
|
354 | - 'strk', |
|
355 | - 'voic', |
|
356 | - 'volm', |
|
340 | + //sounds |
|
341 | + 'fade', |
|
342 | + 'mclr', |
|
343 | + 'midi', |
|
344 | + 'mmsc', |
|
345 | + 'mute', |
|
346 | + 'rclr', |
|
347 | + 'rmsc', |
|
348 | + 'sezz', |
|
349 | + 'sndc', |
|
350 | + 'snde', |
|
351 | + 'sdnl', |
|
352 | + 'sndq', |
|
353 | + 'stpc', |
|
354 | + 'strk', |
|
355 | + 'voic', |
|
356 | + 'volm', |
|
357 | 357 | |
358 | - //time |
|
359 | - 'hist date', |
|
360 | - 'hist sean', |
|
361 | - 'hist time', |
|
362 | - 'hist year', |
|
363 | - 'rtif', |
|
364 | - 'scol', |
|
365 | - 'wolf', |
|
358 | + //time |
|
359 | + 'hist date', |
|
360 | + 'hist sean', |
|
361 | + 'hist time', |
|
362 | + 'hist year', |
|
363 | + 'rtif', |
|
364 | + 'scol', |
|
365 | + 'wolf', |
|
366 | 366 | |
367 | - //variables |
|
368 | - 'absv', |
|
369 | - 'acos', |
|
370 | - 'adds', |
|
371 | - 'addv', |
|
372 | - 'andv', |
|
373 | - 'asin', |
|
374 | - 'atan', |
|
375 | - 'avar', |
|
376 | - 'char', |
|
377 | - 'cos_', |
|
378 | - 'dele', |
|
379 | - 'delg', |
|
380 | - 'deln', |
|
381 | - 'divv', |
|
382 | - 'eamn', |
|
383 | - 'ftoi', |
|
384 | - 'gamn', |
|
385 | - 'itof', |
|
386 | - 'lowa', |
|
387 | - 'modv', |
|
388 | - 'mulv', |
|
389 | - 'namn', |
|
390 | - 'negv', |
|
391 | - 'notv', |
|
392 | - 'orrv', |
|
393 | - 'rand', |
|
394 | - 'read', |
|
395 | - 'reaf', |
|
396 | - 'rean', |
|
397 | - 'reaq', |
|
398 | - 'seta', |
|
399 | - 'sets', |
|
400 | - 'setv', |
|
401 | - 'sins', |
|
402 | - 'sin_', |
|
403 | - 'sqrt', |
|
404 | - 'stof', |
|
405 | - 'stoi', |
|
406 | - 'strl', |
|
407 | - 'subs', |
|
408 | - 'subv', |
|
409 | - 'tan_', |
|
410 | - 'type', |
|
411 | - 'uppa', |
|
412 | - 'vtos', |
|
367 | + //variables |
|
368 | + 'absv', |
|
369 | + 'acos', |
|
370 | + 'adds', |
|
371 | + 'addv', |
|
372 | + 'andv', |
|
373 | + 'asin', |
|
374 | + 'atan', |
|
375 | + 'avar', |
|
376 | + 'char', |
|
377 | + 'cos_', |
|
378 | + 'dele', |
|
379 | + 'delg', |
|
380 | + 'deln', |
|
381 | + 'divv', |
|
382 | + 'eamn', |
|
383 | + 'ftoi', |
|
384 | + 'gamn', |
|
385 | + 'itof', |
|
386 | + 'lowa', |
|
387 | + 'modv', |
|
388 | + 'mulv', |
|
389 | + 'namn', |
|
390 | + 'negv', |
|
391 | + 'notv', |
|
392 | + 'orrv', |
|
393 | + 'rand', |
|
394 | + 'read', |
|
395 | + 'reaf', |
|
396 | + 'rean', |
|
397 | + 'reaq', |
|
398 | + 'seta', |
|
399 | + 'sets', |
|
400 | + 'setv', |
|
401 | + 'sins', |
|
402 | + 'sin_', |
|
403 | + 'sqrt', |
|
404 | + 'stof', |
|
405 | + 'stoi', |
|
406 | + 'strl', |
|
407 | + 'subs', |
|
408 | + 'subv', |
|
409 | + 'tan_', |
|
410 | + 'type', |
|
411 | + 'uppa', |
|
412 | + 'vtos', |
|
413 | 413 | |
414 | - //vehicles |
|
415 | - 'cabn', |
|
416 | - 'cabw', |
|
417 | - 'dpas', |
|
418 | - 'gpas', |
|
419 | - 'rpas', |
|
420 | - 'spas', |
|
421 | - 'psed', |
|
422 | - 'quit', |
|
423 | - 'rgam', |
|
424 | - 'save', |
|
425 | - 'tntw', |
|
426 | - 'wnti', |
|
427 | - 'wrld', |
|
428 | - 'wtnt', |
|
429 | - ); |
|
430 | - } |
|
414 | + //vehicles |
|
415 | + 'cabn', |
|
416 | + 'cabw', |
|
417 | + 'dpas', |
|
418 | + 'gpas', |
|
419 | + 'rpas', |
|
420 | + 'spas', |
|
421 | + 'psed', |
|
422 | + 'quit', |
|
423 | + 'rgam', |
|
424 | + 'save', |
|
425 | + 'tntw', |
|
426 | + 'wnti', |
|
427 | + 'wrld', |
|
428 | + 'wtnt', |
|
429 | + ); |
|
430 | + } |
|
431 | 431 | } |
432 | 432 | /// @endcond |
433 | 433 | ?> |
@@ -6,8 +6,7 @@ |
||
6 | 6 | class C3CAOSCommands { |
7 | 7 | /// @brief Returns an array of tokens. |
8 | 8 | public static function GetTokens() { |
9 | - return array |
|
10 | - ( |
|
9 | + return array( |
|
11 | 10 | 'alph', |
12 | 11 | 'anim', |
13 | 12 | 'amms', |
@@ -6,13 +6,13 @@ discard block |
||
6 | 6 | |
7 | 7 | /// @cond INTERNAL_DOCS |
8 | 8 | |
9 | - private $creationTime; |
|
10 | - private $version; |
|
11 | - private $revision; |
|
12 | - private $authorName; |
|
13 | - private $authorEmail; |
|
14 | - private $authorURL; |
|
15 | - private $authorComments; |
|
9 | + private $creationTime; |
|
10 | + private $version; |
|
11 | + private $revision; |
|
12 | + private $authorName; |
|
13 | + private $authorEmail; |
|
14 | + private $authorURL; |
|
15 | + private $authorComments; |
|
16 | 16 | |
17 | 17 | /// @endcond |
18 | 18 | |
@@ -20,103 +20,103 @@ discard block |
||
20 | 20 | |
21 | 21 | /** |
22 | 22 | * @param $authorName the name of the author of this COB |
23 | - * @param $authorEmail the author's email address |
|
24 | - * @param $authorURL The author's website address |
|
25 | - * @param $authorComments Any comments the author had about this COB |
|
26 | - * @param $creationTime the time this COB was compiled as a UNIX timestamp |
|
27 | - * @param $version The version number of this COB (integer) |
|
28 | - * @param $revision the COB's revision number (integer) |
|
29 | - */ |
|
30 | - public function COBAuthorBlock($authorName,$authorEmail,$authorURL,$authorComments,$creationTime,$version,$revision) { |
|
31 | - parent::COBBlock(COB_BLOCK_AUTHOR); |
|
32 | - $this->authorName = $authorName; |
|
33 | - $this->authorEmail = $authorEmail; |
|
34 | - $this->authorURL = $authorURL; |
|
35 | - $this->authorComments = $authorComments; |
|
36 | - $this->creationTime = $creationTime; |
|
37 | - $this->version = $version; |
|
38 | - $this->revision = $revision; |
|
23 | + * @param $authorEmail the author's email address |
|
24 | + * @param $authorURL The author's website address |
|
25 | + * @param $authorComments Any comments the author had about this COB |
|
26 | + * @param $creationTime the time this COB was compiled as a UNIX timestamp |
|
27 | + * @param $version The version number of this COB (integer) |
|
28 | + * @param $revision the COB's revision number (integer) |
|
29 | + */ |
|
30 | + public function COBAuthorBlock($authorName,$authorEmail,$authorURL,$authorComments,$creationTime,$version,$revision) { |
|
31 | + parent::COBBlock(COB_BLOCK_AUTHOR); |
|
32 | + $this->authorName = $authorName; |
|
33 | + $this->authorEmail = $authorEmail; |
|
34 | + $this->authorURL = $authorURL; |
|
35 | + $this->authorComments = $authorComments; |
|
36 | + $this->creationTime = $creationTime; |
|
37 | + $this->version = $version; |
|
38 | + $this->revision = $revision; |
|
39 | 39 | } |
40 | 40 | |
41 | - /// @brief Gets the name of the author |
|
41 | + /// @brief Gets the name of the author |
|
42 | 42 | /** |
43 | 43 | * @return Author's name |
44 | 44 | */ |
45 | - public function GetAuthorName() { |
|
46 | - return $this->authorName; |
|
45 | + public function GetAuthorName() { |
|
46 | + return $this->authorName; |
|
47 | 47 | } |
48 | 48 | |
49 | - /// @brief Gets the author's email address |
|
49 | + /// @brief Gets the author's email address |
|
50 | 50 | /** |
51 | 51 | * @return string |
52 | - */ |
|
53 | - public function GetAuthorEmail() { |
|
54 | - return $this->authorEmail; |
|
52 | + */ |
|
53 | + public function GetAuthorEmail() { |
|
54 | + return $this->authorEmail; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /// @brief Gets the author's web address |
58 | 58 | /** |
59 | 59 | * @return string |
60 | 60 | */ |
61 | - public function GetAuthorURL() { |
|
62 | - return $this->authorURL; |
|
61 | + public function GetAuthorURL() { |
|
62 | + return $this->authorURL; |
|
63 | 63 | } |
64 | 64 | |
65 | - /// @brief Gets comments from the author |
|
65 | + /// @brief Gets comments from the author |
|
66 | 66 | /** |
67 | 67 | * @return string |
68 | 68 | */ |
69 | - public function GetAuthorComments() { |
|
70 | - return $this->authorComments; |
|
69 | + public function GetAuthorComments() { |
|
70 | + return $this->authorComments; |
|
71 | 71 | } |
72 | 72 | |
73 | - /// @brief Gets the time this COB was created |
|
73 | + /// @brief Gets the time this COB was created |
|
74 | 74 | /** |
75 | 75 | * @return A UNIX timestamp representing the time this COB was created. |
76 | 76 | */ |
77 | - public function GetCreationTime() { |
|
78 | - return $this->creationTime; |
|
77 | + public function GetCreationTime() { |
|
78 | + return $this->creationTime; |
|
79 | 79 | } |
80 | 80 | |
81 | - /// @brief Gets the COB's version number |
|
81 | + /// @brief Gets the COB's version number |
|
82 | 82 | /** |
83 | 83 | * @see GetRevision() |
84 | 84 | * @return An integer |
85 | - */ |
|
86 | - public function GetVersion() { |
|
87 | - return $this->version; |
|
88 | - } |
|
85 | + */ |
|
86 | + public function GetVersion() { |
|
87 | + return $this->version; |
|
88 | + } |
|
89 | 89 | |
90 | - /// @brief Gets the COB's revision number |
|
90 | + /// @brief Gets the COB's revision number |
|
91 | 91 | /** |
92 | 92 | * The revision number is less significant than the version |
93 | 93 | * number. |
94 | 94 | * @return An integer |
95 | 95 | */ |
96 | - public function GetRevision() { |
|
97 | - return $this->revision; |
|
96 | + public function GetRevision() { |
|
97 | + return $this->revision; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | /// @cond INTERNAL_DOCS |
101 | 101 | |
102 | 102 | /// @brief Creates the COBAuthorBlock from an IReader. |
103 | 103 | /** |
104 | - * @param $reader The IReader, currently at the position of the author block |
|
105 | - * @return COBAuthorBlock |
|
106 | - */ |
|
107 | - public static function CreateFromReader(IReader $reader) { |
|
108 | - $creationDay = $reader->ReadInt(1); |
|
109 | - $creationMonth = $reader->ReadInt(1); |
|
110 | - $creationYear = $reader->ReadInt(2); |
|
111 | - $timestamp = mktime(0,0,0,$creationMonth,$creationDay,$creationYear); |
|
112 | - $version = $reader->ReadInt(1); |
|
113 | - $revision = $reader->ReadInt(1); |
|
114 | - $authorName = $reader->ReadCString(); |
|
115 | - $authorEmail = $reader->ReadCString(); |
|
116 | - $authorURL = $reader->ReadCString(); |
|
117 | - $authorComments = $reader->ReadCString(); |
|
104 | + * @param $reader The IReader, currently at the position of the author block |
|
105 | + * @return COBAuthorBlock |
|
106 | + */ |
|
107 | + public static function CreateFromReader(IReader $reader) { |
|
108 | + $creationDay = $reader->ReadInt(1); |
|
109 | + $creationMonth = $reader->ReadInt(1); |
|
110 | + $creationYear = $reader->ReadInt(2); |
|
111 | + $timestamp = mktime(0,0,0,$creationMonth,$creationDay,$creationYear); |
|
112 | + $version = $reader->ReadInt(1); |
|
113 | + $revision = $reader->ReadInt(1); |
|
114 | + $authorName = $reader->ReadCString(); |
|
115 | + $authorEmail = $reader->ReadCString(); |
|
116 | + $authorURL = $reader->ReadCString(); |
|
117 | + $authorComments = $reader->ReadCString(); |
|
118 | 118 | |
119 | - return $readerData; |
|
119 | + return $readerData; |
|
120 | 120 | } |
121 | 121 | /// @endcond |
122 | 122 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @param $version The version number of this COB (integer) |
28 | 28 | * @param $revision the COB's revision number (integer) |
29 | 29 | */ |
30 | - public function COBAuthorBlock($authorName,$authorEmail,$authorURL,$authorComments,$creationTime,$version,$revision) { |
|
30 | + public function COBAuthorBlock($authorName, $authorEmail, $authorURL, $authorComments, $creationTime, $version, $revision) { |
|
31 | 31 | parent::COBBlock(COB_BLOCK_AUTHOR); |
32 | 32 | $this->authorName = $authorName; |
33 | 33 | $this->authorEmail = $authorEmail; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $creationDay = $reader->ReadInt(1); |
109 | 109 | $creationMonth = $reader->ReadInt(1); |
110 | 110 | $creationYear = $reader->ReadInt(2); |
111 | - $timestamp = mktime(0,0,0,$creationMonth,$creationDay,$creationYear); |
|
111 | + $timestamp = mktime(0, 0, 0, $creationMonth, $creationDay, $creationYear); |
|
112 | 112 | $version = $reader->ReadInt(1); |
113 | 113 | $revision = $reader->ReadInt(1); |
114 | 114 | $authorName = $reader->ReadCString(); |
@@ -14,29 +14,29 @@ |
||
14 | 14 | |
15 | 15 | /// @brief The base COB block class |
16 | 16 | abstract class COBBlock { |
17 | - /// @cond INTERNAL_DOCS |
|
17 | + /// @cond INTERNAL_DOCS |
|
18 | 18 | |
19 | - private $type; |
|
19 | + private $type; |
|
20 | 20 | |
21 | - /// @brief Instantiates a new COBBlock |
|
22 | - /** This function must be called from all COBBlock parents |
|
23 | - * @param $type What type of COBBlock it is. Must be a 4-character string. |
|
24 | - */ |
|
25 | - public function COBBlock($type) { |
|
26 | - if(strlen($type) != 4) { |
|
27 | - throw new Exception('Invalid COB block type: '.$type); |
|
28 | - } |
|
29 | - $this->type = $type; |
|
21 | + /// @brief Instantiates a new COBBlock |
|
22 | + /** This function must be called from all COBBlock parents |
|
23 | + * @param $type What type of COBBlock it is. Must be a 4-character string. |
|
24 | + */ |
|
25 | + public function COBBlock($type) { |
|
26 | + if(strlen($type) != 4) { |
|
27 | + throw new Exception('Invalid COB block type: '.$type); |
|
28 | + } |
|
29 | + $this->type = $type; |
|
30 | 30 | } |
31 | 31 | /// @endcond |
32 | 32 | |
33 | 33 | /// @brief Gets the type of this COB block |
34 | 34 | /** |
35 | - * @return string One of the COB_BLOCK_* defines. |
|
36 | - */ |
|
37 | - public function GetType() { |
|
38 | - return $this->type; |
|
39 | - } |
|
35 | + * @return string One of the COB_BLOCK_* defines. |
|
36 | + */ |
|
37 | + public function GetType() { |
|
38 | + return $this->type; |
|
39 | + } |
|
40 | 40 | /// @brief Compiles this COB Block and returns COB file as a binary string. |
41 | 41 | /** |
42 | 42 | * @return string |
@@ -5,11 +5,11 @@ discard block |
||
5 | 5 | */ |
6 | 6 | ///@{ |
7 | 7 | /// @brief Agent Block - 'agnt' |
8 | -define('COB_BLOCK_AGENT','agnt'); |
|
8 | +define('COB_BLOCK_AGENT', 'agnt'); |
|
9 | 9 | /// @brief File Block - 'file' |
10 | -define('COB_BLOCK_FILE','file'); |
|
10 | +define('COB_BLOCK_FILE', 'file'); |
|
11 | 11 | /// @brief Author Block - 'auth' |
12 | -define('COB_BLOCK_AUTHOR','auth'); |
|
12 | +define('COB_BLOCK_AUTHOR', 'auth'); |
|
13 | 13 | ///@} |
14 | 14 | |
15 | 15 | /// @brief The base COB block class |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @param $type What type of COBBlock it is. Must be a 4-character string. |
24 | 24 | */ |
25 | 25 | public function COBBlock($type) { |
26 | - if(strlen($type) != 4) { |
|
26 | + if (strlen($type) != 4) { |
|
27 | 27 | throw new Exception('Invalid COB block type: '.$type); |
28 | 28 | } |
29 | 29 | $this->type = $type; |
@@ -12,16 +12,16 @@ |
||
12 | 12 | |
13 | 13 | /// @brief Creates a new COBUnknown block with the given type and contents |
14 | 14 | /** |
15 | - * @param $type The four-character type of the block |
|
16 | - * @param $contents The contents of the block |
|
17 | - */ |
|
18 | - public function COBUnknownBlock($type,$contents) { |
|
19 | - parent::COBBlock($type); |
|
15 | + * @param $type The four-character type of the block |
|
16 | + * @param $contents The contents of the block |
|
17 | + */ |
|
18 | + public function COBUnknownBlock($type,$contents) { |
|
19 | + parent::COBBlock($type); |
|
20 | 20 | } |
21 | 21 | |
22 | - /// @brief Gets the block's contents |
|
23 | - public function GetContents() { |
|
24 | - return $this->contents; |
|
25 | - } |
|
22 | + /// @brief Gets the block's contents |
|
23 | + public function GetContents() { |
|
24 | + return $this->contents; |
|
25 | + } |
|
26 | 26 | } |
27 | 27 | ?> |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * @param $type The four-character type of the block |
16 | 16 | * @param $contents The contents of the block |
17 | 17 | */ |
18 | - public function COBUnknownBlock($type,$contents) { |
|
18 | + public function COBUnknownBlock($type, $contents) { |
|
19 | 19 | parent::COBBlock($type); |
20 | 20 | } |
21 | 21 |
@@ -11,12 +11,12 @@ discard block |
||
11 | 11 | * @name C1 format cob |
12 | 12 | * Value: C1 |
13 | 13 | */ |
14 | -define('COB_FORMAT_C1','C1'); |
|
14 | +define('COB_FORMAT_C1', 'C1'); |
|
15 | 15 | /** |
16 | 16 | * @name C2 format COB |
17 | 17 | * Value: C2 |
18 | 18 | */ |
19 | -define('COB_FORMAT_C2','C2'); |
|
19 | +define('COB_FORMAT_C2', 'C2'); |
|
20 | 20 | ///@} |
21 | 21 | |
22 | 22 | /// @brief Class that interacts with COB files (c1 and c2 formats) |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | * This code will only parse C1 cobs. |
43 | 43 | * @param $reader The reader which contains the cob to read from. Can be null. |
44 | 44 | */ |
45 | - public function COB(IReader $reader=null) { |
|
46 | - if($reader != null) { |
|
45 | + public function COB(IReader $reader = null) { |
|
46 | + if ($reader != null) { |
|
47 | 47 | $this->LoadCOB($reader); |
48 | 48 | } |
49 | 49 | } |
@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | * @param $reader The reader to read from |
59 | 59 | */ |
60 | 60 | private function LoadCOB(IReader $reader) { |
61 | - if($reader->Read(4) == 'cob2') { |
|
61 | + if ($reader->Read(4) == 'cob2') { |
|
62 | 62 | $reader->Seek(0); |
63 | 63 | $this->LoadC2COB($reader); |
64 | 64 | } else { |
65 | 65 | $string = $reader->GetSubString(0); |
66 | 66 | $data = @gzuncompress($string); |
67 | - if($data===false) { |
|
67 | + if ($data === false) { |
|
68 | 68 | $reader->Seek(0); |
69 | 69 | $this->LoadC1COB($reader); |
70 | 70 | } else { |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function LoadC2COB(IReader $reader) { |
85 | 85 | $this->format = COB_FORMAT_C2; |
86 | - if($reader->Read(4) == 'cob2') { |
|
87 | - while($block = $this->ReadBlock($reader)) { |
|
86 | + if ($reader->Read(4) == 'cob2') { |
|
87 | + while ($block = $this->ReadBlock($reader)) { |
|
88 | 88 | $this->blocks[] = $block; |
89 | 89 | } |
90 | 90 | } else { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | public function LoadC1COB(IReader $reader) { |
102 | 102 | $this->format = COB_FORMAT_C1; |
103 | 103 | $version = $reader->ReadInt(2); |
104 | - if($version > 4) { |
|
104 | + if ($version > 4) { |
|
105 | 105 | throw new Exception('Invalid cob file.'); |
106 | 106 | } else { |
107 | 107 | $this->blocks[] = COBAgentBlock::CreateFromReaderC1($reader); |
@@ -124,11 +124,11 @@ discard block |
||
124 | 124 | * a representative COBBlock, and returns it. |
125 | 125 | */ |
126 | 126 | private function ReadBlock(IReader $reader) { |
127 | - if(!($type = $reader->Read(4))) { |
|
127 | + if (!($type = $reader->Read(4))) { |
|
128 | 128 | return false; |
129 | 129 | } |
130 | 130 | $size = $reader->ReadInt(4); |
131 | - switch($type) { |
|
131 | + switch ($type) { |
|
132 | 132 | case 'agnt': |
133 | 133 | //we read the entire thing so that if there are errors we can still go on with the other blocks. |
134 | 134 | return COBAgentBlock::CreateFromReaderC2($reader); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | default: |
143 | 143 | //throw new Exception('Invalid block type: Probably a bug or an invalid COB file: '.$type); |
144 | 144 | //simply ignore unknown block types, in case people add their own |
145 | - return new COBUnknownBlock($type,$reader->Read($size)); |
|
145 | + return new COBUnknownBlock($type, $reader->Read($size)); |
|
146 | 146 | break; |
147 | 147 | } |
148 | 148 | } |
@@ -157,10 +157,10 @@ discard block |
||
157 | 157 | * @param $type The type of block to get (agnt, auth, file). False by default. |
158 | 158 | * @return An array of COBBlocks. |
159 | 159 | */ |
160 | - public function GetBlocks($type=false) { |
|
160 | + public function GetBlocks($type = false) { |
|
161 | 161 | $blocks = array(); |
162 | - foreach($this->blocks as $block) { |
|
163 | - if($type === false || $type == $block->GetType()) { |
|
162 | + foreach ($this->blocks as $block) { |
|
163 | + if ($type === false || $type == $block->GetType()) { |
|
164 | 164 | $blocks[] = $block; |
165 | 165 | } |
166 | 166 | } |
@@ -173,13 +173,13 @@ discard block |
||
173 | 173 | * @return A binary string containing the COB. |
174 | 174 | */ |
175 | 175 | public function Compile($format = null) { |
176 | - if($format == null) { |
|
176 | + if ($format == null) { |
|
177 | 177 | $format = $this->GetType(); |
178 | 178 | } |
179 | - if($format != FORMAT_C1) { |
|
179 | + if ($format != FORMAT_C1) { |
|
180 | 180 | $format = FORMAT_C2 |
181 | 181 | } |
182 | - switch($format) { |
|
182 | + switch ($format) { |
|
183 | 183 | case FORMAT_C1: |
184 | 184 | $this->CompileC1(); |
185 | 185 | case FORMAT_C2: |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | // TODO: Check accuracy |
199 | 199 | public function CompileC2() { |
200 | 200 | $data = 'cob2'; |
201 | - foreach($this->blocks as $block) { |
|
201 | + foreach ($this->blocks as $block) { |
|
202 | 202 | $data .= $block->Compile(); |
203 | 203 | } |
204 | 204 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | class PrayDependency { |
45 | 45 | /// @cond INTERNAL_DOCS |
46 | 46 | |
47 | - private $category; |
|
47 | + private $category; |
|
48 | 48 | private $filename; |
49 | 49 | |
50 | 50 | /// @endcond |
@@ -54,15 +54,15 @@ discard block |
||
54 | 54 | * @param $category One of the PRAY_DEPENDENCY_* constants |
55 | 55 | * @param $filename The name of the file this dependency relates to. |
56 | 56 | */ |
57 | - public function PrayDependency($category,$filename) { |
|
58 | - $this->category = $category; |
|
59 | - $this->filename = $filename; |
|
60 | - } |
|
61 | - public function GetCategory() { |
|
62 | - return $this->category; |
|
63 | - } |
|
64 | - public function GetFileName() { |
|
65 | - return $this->filename; |
|
66 | - } |
|
57 | + public function PrayDependency($category,$filename) { |
|
58 | + $this->category = $category; |
|
59 | + $this->filename = $filename; |
|
60 | + } |
|
61 | + public function GetCategory() { |
|
62 | + return $this->category; |
|
63 | + } |
|
64 | + public function GetFileName() { |
|
65 | + return $this->filename; |
|
66 | + } |
|
67 | 67 | } |
68 | 68 | ?> |
@@ -20,21 +20,21 @@ discard block |
||
20 | 20 | */ |
21 | 21 | ///@{ |
22 | 22 | /// Value: 1 |
23 | -define('PRAY_DEPENDENCY_SOUND',1); |
|
23 | +define('PRAY_DEPENDENCY_SOUND', 1); |
|
24 | 24 | /// Value: 2 |
25 | -define('PRAY_DEPENDENCY_IMAGE',2); |
|
25 | +define('PRAY_DEPENDENCY_IMAGE', 2); |
|
26 | 26 | /// Value: 3 |
27 | -define('PRAY_DEPENDENCY_GENE',3); |
|
27 | +define('PRAY_DEPENDENCY_GENE', 3); |
|
28 | 28 | /// Value: 4 |
29 | -define('PRAY_DEPENDENCY_BODYDATA',4); |
|
29 | +define('PRAY_DEPENDENCY_BODYDATA', 4); |
|
30 | 30 | /// Value: 5 |
31 | -define('PRAY_DEPENDENCY_OVERLAY',5); |
|
31 | +define('PRAY_DEPENDENCY_OVERLAY', 5); |
|
32 | 32 | /// Value: 6 |
33 | -define('PRAY_DEPENDENCY_BACKGROUND',6); |
|
33 | +define('PRAY_DEPENDENCY_BACKGROUND', 6); |
|
34 | 34 | /// Value: 7 |
35 | -define('PRAY_DEPENDENCY_CATALOGUE',7); |
|
35 | +define('PRAY_DEPENDENCY_CATALOGUE', 7); |
|
36 | 36 | /// Value: 10 |
37 | -define('PRAY_DEPENDENCY_CREATURE',10); |
|
37 | +define('PRAY_DEPENDENCY_CREATURE', 10); |
|
38 | 38 | //@} |
39 | 39 | |
40 | 40 | /// @brief Dependency class used in various PrayBlocks. |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * @param $category One of the PRAY_DEPENDENCY_* constants |
55 | 55 | * @param $filename The name of the file this dependency relates to. |
56 | 56 | */ |
57 | - public function PrayDependency($category,$filename) { |
|
57 | + public function PrayDependency($category, $filename) { |
|
58 | 58 | $this->category = $category; |
59 | 59 | $this->filename = $filename; |
60 | 60 | } |