Fawkes API Fawkes Development Version
|
00001 /* 00002 ** Lua binding: interfaces_GameStateInterface 00003 ** Generated automatically by tolua++-1.0.92 00004 */ 00005 /* This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. A runtime exception applies to 00009 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU Library General Public License for more details. 00015 * 00016 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00017 */ 00018 00019 #ifndef __cplusplus 00020 #include "stdlib.h" 00021 #endif 00022 #include "string.h" 00023 00024 #include "tolua++.h" 00025 00026 /* Exported function */ 00027 TOLUA_API int tolua_interfaces_GameStateInterface_open (lua_State* tolua_S); 00028 00029 #include <interfaces/GameStateInterface.h> 00030 using namespace fawkes; 00031 00032 /* function to release collected object via destructor */ 00033 #ifdef __cplusplus 00034 00035 static int tolua_collect_fawkes__GameStateInterface__SetStateTeamMessage (lua_State* tolua_S) 00036 { 00037 fawkes::GameStateInterface::SetStateTeamMessage* self = (fawkes::GameStateInterface::SetStateTeamMessage*) tolua_tousertype(tolua_S,1,0); 00038 Mtolua_delete(self); 00039 return 0; 00040 } 00041 00042 static int tolua_collect_fawkes__GameStateInterface__SetTeamColorMessage (lua_State* tolua_S) 00043 { 00044 fawkes::GameStateInterface::SetTeamColorMessage* self = (fawkes::GameStateInterface::SetTeamColorMessage*) tolua_tousertype(tolua_S,1,0); 00045 Mtolua_delete(self); 00046 return 0; 00047 } 00048 00049 static int tolua_collect_fawkes__GameStateInterface__SetKickoffMessage (lua_State* tolua_S) 00050 { 00051 fawkes::GameStateInterface::SetKickoffMessage* self = (fawkes::GameStateInterface::SetKickoffMessage*) tolua_tousertype(tolua_S,1,0); 00052 Mtolua_delete(self); 00053 return 0; 00054 } 00055 #endif 00056 00057 00058 /* function to register type */ 00059 static void tolua_reg_types (lua_State* tolua_S) 00060 { 00061 tolua_usertype(tolua_S,"Message"); 00062 tolua_usertype(tolua_S,"fawkes::GameStateInterface::SetKickoffMessage"); 00063 tolua_usertype(tolua_S,"fawkes::GameStateInterface::SetStateTeamMessage"); 00064 tolua_usertype(tolua_S,"fawkes::GameStateInterface::SetTeamColorMessage"); 00065 tolua_usertype(tolua_S,"fawkes::GameStateInterface"); 00066 tolua_usertype(tolua_S,"Interface"); 00067 } 00068 00069 /* get function: GS_FROZEN of class fawkes::GameStateInterface */ 00070 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_FROZEN 00071 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_FROZEN(lua_State* tolua_S) 00072 { 00073 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_FROZEN); 00074 return 1; 00075 } 00076 #endif //#ifndef TOLUA_DISABLE 00077 00078 /* get function: GS_PLAY of class fawkes::GameStateInterface */ 00079 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_PLAY 00080 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_PLAY(lua_State* tolua_S) 00081 { 00082 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_PLAY); 00083 return 1; 00084 } 00085 #endif //#ifndef TOLUA_DISABLE 00086 00087 /* get function: GS_KICK_OFF of class fawkes::GameStateInterface */ 00088 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_KICK_OFF 00089 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_KICK_OFF(lua_State* tolua_S) 00090 { 00091 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_KICK_OFF); 00092 return 1; 00093 } 00094 #endif //#ifndef TOLUA_DISABLE 00095 00096 /* get function: GS_DROP_BALL of class fawkes::GameStateInterface */ 00097 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_DROP_BALL 00098 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_DROP_BALL(lua_State* tolua_S) 00099 { 00100 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_DROP_BALL); 00101 return 1; 00102 } 00103 #endif //#ifndef TOLUA_DISABLE 00104 00105 /* get function: GS_PENALTY of class fawkes::GameStateInterface */ 00106 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_PENALTY 00107 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_PENALTY(lua_State* tolua_S) 00108 { 00109 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_PENALTY); 00110 return 1; 00111 } 00112 #endif //#ifndef TOLUA_DISABLE 00113 00114 /* get function: GS_CORNER_KICK of class fawkes::GameStateInterface */ 00115 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_CORNER_KICK 00116 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_CORNER_KICK(lua_State* tolua_S) 00117 { 00118 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_CORNER_KICK); 00119 return 1; 00120 } 00121 #endif //#ifndef TOLUA_DISABLE 00122 00123 /* get function: GS_THROW_IN of class fawkes::GameStateInterface */ 00124 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_THROW_IN 00125 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_THROW_IN(lua_State* tolua_S) 00126 { 00127 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_THROW_IN); 00128 return 1; 00129 } 00130 #endif //#ifndef TOLUA_DISABLE 00131 00132 /* get function: GS_FREE_KICK of class fawkes::GameStateInterface */ 00133 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_FREE_KICK 00134 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_FREE_KICK(lua_State* tolua_S) 00135 { 00136 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_FREE_KICK); 00137 return 1; 00138 } 00139 #endif //#ifndef TOLUA_DISABLE 00140 00141 /* get function: GS_GOAL_KICK of class fawkes::GameStateInterface */ 00142 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_GOAL_KICK 00143 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_GOAL_KICK(lua_State* tolua_S) 00144 { 00145 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_GOAL_KICK); 00146 return 1; 00147 } 00148 #endif //#ifndef TOLUA_DISABLE 00149 00150 /* get function: GS_HALF_TIME of class fawkes::GameStateInterface */ 00151 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_HALF_TIME 00152 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_HALF_TIME(lua_State* tolua_S) 00153 { 00154 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_HALF_TIME); 00155 return 1; 00156 } 00157 #endif //#ifndef TOLUA_DISABLE 00158 00159 /* get function: GS_SPL_INITIAL of class fawkes::GameStateInterface */ 00160 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_INITIAL 00161 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_INITIAL(lua_State* tolua_S) 00162 { 00163 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_SPL_INITIAL); 00164 return 1; 00165 } 00166 #endif //#ifndef TOLUA_DISABLE 00167 00168 /* get function: GS_SPL_READY of class fawkes::GameStateInterface */ 00169 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_READY 00170 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_READY(lua_State* tolua_S) 00171 { 00172 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_SPL_READY); 00173 return 1; 00174 } 00175 #endif //#ifndef TOLUA_DISABLE 00176 00177 /* get function: GS_SPL_SET of class fawkes::GameStateInterface */ 00178 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_SET 00179 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_SET(lua_State* tolua_S) 00180 { 00181 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_SPL_SET); 00182 return 1; 00183 } 00184 #endif //#ifndef TOLUA_DISABLE 00185 00186 /* get function: GS_SPL_PLAY of class fawkes::GameStateInterface */ 00187 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_PLAY 00188 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_PLAY(lua_State* tolua_S) 00189 { 00190 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_SPL_PLAY); 00191 return 1; 00192 } 00193 #endif //#ifndef TOLUA_DISABLE 00194 00195 /* get function: GS_SPL_FINISHED of class fawkes::GameStateInterface */ 00196 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_FINISHED 00197 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_FINISHED(lua_State* tolua_S) 00198 { 00199 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_SPL_FINISHED); 00200 return 1; 00201 } 00202 #endif //#ifndef TOLUA_DISABLE 00203 00204 /* method: new of class SetTeamColorMessage */ 00205 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00 00206 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00(lua_State* tolua_S) 00207 { 00208 #ifndef TOLUA_RELEASE 00209 tolua_Error tolua_err; 00210 if ( 00211 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) || 00212 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00213 !tolua_isnoobj(tolua_S,3,&tolua_err) 00214 ) 00215 goto tolua_lerror; 00216 else 00217 #endif 00218 { 00219 fawkes::GameStateInterface::if_gamestate_team_t ini_our_team = ((fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0)); 00220 { 00221 fawkes::GameStateInterface::SetTeamColorMessage* tolua_ret = (fawkes::GameStateInterface::SetTeamColorMessage*) Mtolua_new((fawkes::GameStateInterface::SetTeamColorMessage)(ini_our_team)); 00222 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetTeamColorMessage"); 00223 } 00224 } 00225 return 1; 00226 #ifndef TOLUA_RELEASE 00227 tolua_lerror: 00228 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); 00229 return 0; 00230 #endif 00231 } 00232 #endif //#ifndef TOLUA_DISABLE 00233 00234 /* method: new_local of class SetTeamColorMessage */ 00235 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00_local 00236 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00_local(lua_State* tolua_S) 00237 { 00238 #ifndef TOLUA_RELEASE 00239 tolua_Error tolua_err; 00240 if ( 00241 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) || 00242 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00243 !tolua_isnoobj(tolua_S,3,&tolua_err) 00244 ) 00245 goto tolua_lerror; 00246 else 00247 #endif 00248 { 00249 fawkes::GameStateInterface::if_gamestate_team_t ini_our_team = ((fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0)); 00250 { 00251 fawkes::GameStateInterface::SetTeamColorMessage* tolua_ret = (fawkes::GameStateInterface::SetTeamColorMessage*) Mtolua_new((fawkes::GameStateInterface::SetTeamColorMessage)(ini_our_team)); 00252 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetTeamColorMessage"); 00253 tolua_register_gc(tolua_S,lua_gettop(tolua_S)); 00254 } 00255 } 00256 return 1; 00257 #ifndef TOLUA_RELEASE 00258 tolua_lerror: 00259 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); 00260 return 0; 00261 #endif 00262 } 00263 #endif //#ifndef TOLUA_DISABLE 00264 00265 /* method: new of class SetTeamColorMessage */ 00266 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01 00267 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01(lua_State* tolua_S) 00268 { 00269 tolua_Error tolua_err; 00270 if ( 00271 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) || 00272 !tolua_isnoobj(tolua_S,2,&tolua_err) 00273 ) 00274 goto tolua_lerror; 00275 else 00276 { 00277 { 00278 fawkes::GameStateInterface::SetTeamColorMessage* tolua_ret = (fawkes::GameStateInterface::SetTeamColorMessage*) Mtolua_new((fawkes::GameStateInterface::SetTeamColorMessage)()); 00279 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetTeamColorMessage"); 00280 } 00281 } 00282 return 1; 00283 tolua_lerror: 00284 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00(tolua_S); 00285 } 00286 #endif //#ifndef TOLUA_DISABLE 00287 00288 /* method: new_local of class SetTeamColorMessage */ 00289 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01_local 00290 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01_local(lua_State* tolua_S) 00291 { 00292 tolua_Error tolua_err; 00293 if ( 00294 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) || 00295 !tolua_isnoobj(tolua_S,2,&tolua_err) 00296 ) 00297 goto tolua_lerror; 00298 else 00299 { 00300 { 00301 fawkes::GameStateInterface::SetTeamColorMessage* tolua_ret = (fawkes::GameStateInterface::SetTeamColorMessage*) Mtolua_new((fawkes::GameStateInterface::SetTeamColorMessage)()); 00302 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetTeamColorMessage"); 00303 tolua_register_gc(tolua_S,lua_gettop(tolua_S)); 00304 } 00305 } 00306 return 1; 00307 tolua_lerror: 00308 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00_local(tolua_S); 00309 } 00310 #endif //#ifndef TOLUA_DISABLE 00311 00312 /* method: delete of class SetTeamColorMessage */ 00313 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_delete00 00314 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_delete00(lua_State* tolua_S) 00315 { 00316 #ifndef TOLUA_RELEASE 00317 tolua_Error tolua_err; 00318 if ( 00319 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) || 00320 !tolua_isnoobj(tolua_S,2,&tolua_err) 00321 ) 00322 goto tolua_lerror; 00323 else 00324 #endif 00325 { 00326 fawkes::GameStateInterface::SetTeamColorMessage* self = (fawkes::GameStateInterface::SetTeamColorMessage*) tolua_tousertype(tolua_S,1,0); 00327 #ifndef TOLUA_RELEASE 00328 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL); 00329 #endif 00330 Mtolua_delete(self); 00331 } 00332 return 0; 00333 #ifndef TOLUA_RELEASE 00334 tolua_lerror: 00335 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err); 00336 return 0; 00337 #endif 00338 } 00339 #endif //#ifndef TOLUA_DISABLE 00340 00341 /* method: our_team of class SetTeamColorMessage */ 00342 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_our_team00 00343 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_our_team00(lua_State* tolua_S) 00344 { 00345 #ifndef TOLUA_RELEASE 00346 tolua_Error tolua_err; 00347 if ( 00348 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) || 00349 !tolua_isnoobj(tolua_S,2,&tolua_err) 00350 ) 00351 goto tolua_lerror; 00352 else 00353 #endif 00354 { 00355 fawkes::GameStateInterface::SetTeamColorMessage* self = (fawkes::GameStateInterface::SetTeamColorMessage*) tolua_tousertype(tolua_S,1,0); 00356 #ifndef TOLUA_RELEASE 00357 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'our_team'", NULL); 00358 #endif 00359 { 00360 fawkes::GameStateInterface::if_gamestate_team_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_team_t) self->our_team(); 00361 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00362 } 00363 } 00364 return 1; 00365 #ifndef TOLUA_RELEASE 00366 tolua_lerror: 00367 tolua_error(tolua_S,"#ferror in function 'our_team'.",&tolua_err); 00368 return 0; 00369 #endif 00370 } 00371 #endif //#ifndef TOLUA_DISABLE 00372 00373 /* method: set_our_team of class SetTeamColorMessage */ 00374 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_set_our_team00 00375 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_set_our_team00(lua_State* tolua_S) 00376 { 00377 #ifndef TOLUA_RELEASE 00378 tolua_Error tolua_err; 00379 if ( 00380 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) || 00381 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00382 !tolua_isnoobj(tolua_S,3,&tolua_err) 00383 ) 00384 goto tolua_lerror; 00385 else 00386 #endif 00387 { 00388 fawkes::GameStateInterface::SetTeamColorMessage* self = (fawkes::GameStateInterface::SetTeamColorMessage*) tolua_tousertype(tolua_S,1,0); 00389 const fawkes::GameStateInterface::if_gamestate_team_t new_our_team = ((const fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0)); 00390 #ifndef TOLUA_RELEASE 00391 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_our_team'", NULL); 00392 #endif 00393 { 00394 self->set_our_team(new_our_team); 00395 } 00396 } 00397 return 0; 00398 #ifndef TOLUA_RELEASE 00399 tolua_lerror: 00400 tolua_error(tolua_S,"#ferror in function 'set_our_team'.",&tolua_err); 00401 return 0; 00402 #endif 00403 } 00404 #endif //#ifndef TOLUA_DISABLE 00405 00406 /* method: maxlenof_our_team of class SetTeamColorMessage */ 00407 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_maxlenof_our_team00 00408 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_maxlenof_our_team00(lua_State* tolua_S) 00409 { 00410 #ifndef TOLUA_RELEASE 00411 tolua_Error tolua_err; 00412 if ( 00413 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) || 00414 !tolua_isnoobj(tolua_S,2,&tolua_err) 00415 ) 00416 goto tolua_lerror; 00417 else 00418 #endif 00419 { 00420 const fawkes::GameStateInterface::SetTeamColorMessage* self = (const fawkes::GameStateInterface::SetTeamColorMessage*) tolua_tousertype(tolua_S,1,0); 00421 #ifndef TOLUA_RELEASE 00422 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_our_team'", NULL); 00423 #endif 00424 { 00425 int tolua_ret = (int) self->maxlenof_our_team(); 00426 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00427 } 00428 } 00429 return 1; 00430 #ifndef TOLUA_RELEASE 00431 tolua_lerror: 00432 tolua_error(tolua_S,"#ferror in function 'maxlenof_our_team'.",&tolua_err); 00433 return 0; 00434 #endif 00435 } 00436 #endif //#ifndef TOLUA_DISABLE 00437 00438 /* method: new of class SetKickoffMessage */ 00439 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00 00440 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00(lua_State* tolua_S) 00441 { 00442 #ifndef TOLUA_RELEASE 00443 tolua_Error tolua_err; 00444 if ( 00445 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) || 00446 !tolua_isboolean(tolua_S,2,0,&tolua_err) || 00447 !tolua_isnoobj(tolua_S,3,&tolua_err) 00448 ) 00449 goto tolua_lerror; 00450 else 00451 #endif 00452 { 00453 bool ini_kickoff = ((bool) tolua_toboolean(tolua_S,2,0)); 00454 { 00455 fawkes::GameStateInterface::SetKickoffMessage* tolua_ret = (fawkes::GameStateInterface::SetKickoffMessage*) Mtolua_new((fawkes::GameStateInterface::SetKickoffMessage)(ini_kickoff)); 00456 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetKickoffMessage"); 00457 } 00458 } 00459 return 1; 00460 #ifndef TOLUA_RELEASE 00461 tolua_lerror: 00462 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); 00463 return 0; 00464 #endif 00465 } 00466 #endif //#ifndef TOLUA_DISABLE 00467 00468 /* method: new_local of class SetKickoffMessage */ 00469 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00_local 00470 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00_local(lua_State* tolua_S) 00471 { 00472 #ifndef TOLUA_RELEASE 00473 tolua_Error tolua_err; 00474 if ( 00475 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) || 00476 !tolua_isboolean(tolua_S,2,0,&tolua_err) || 00477 !tolua_isnoobj(tolua_S,3,&tolua_err) 00478 ) 00479 goto tolua_lerror; 00480 else 00481 #endif 00482 { 00483 bool ini_kickoff = ((bool) tolua_toboolean(tolua_S,2,0)); 00484 { 00485 fawkes::GameStateInterface::SetKickoffMessage* tolua_ret = (fawkes::GameStateInterface::SetKickoffMessage*) Mtolua_new((fawkes::GameStateInterface::SetKickoffMessage)(ini_kickoff)); 00486 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetKickoffMessage"); 00487 tolua_register_gc(tolua_S,lua_gettop(tolua_S)); 00488 } 00489 } 00490 return 1; 00491 #ifndef TOLUA_RELEASE 00492 tolua_lerror: 00493 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); 00494 return 0; 00495 #endif 00496 } 00497 #endif //#ifndef TOLUA_DISABLE 00498 00499 /* method: new of class SetKickoffMessage */ 00500 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01 00501 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01(lua_State* tolua_S) 00502 { 00503 tolua_Error tolua_err; 00504 if ( 00505 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) || 00506 !tolua_isnoobj(tolua_S,2,&tolua_err) 00507 ) 00508 goto tolua_lerror; 00509 else 00510 { 00511 { 00512 fawkes::GameStateInterface::SetKickoffMessage* tolua_ret = (fawkes::GameStateInterface::SetKickoffMessage*) Mtolua_new((fawkes::GameStateInterface::SetKickoffMessage)()); 00513 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetKickoffMessage"); 00514 } 00515 } 00516 return 1; 00517 tolua_lerror: 00518 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00(tolua_S); 00519 } 00520 #endif //#ifndef TOLUA_DISABLE 00521 00522 /* method: new_local of class SetKickoffMessage */ 00523 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01_local 00524 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01_local(lua_State* tolua_S) 00525 { 00526 tolua_Error tolua_err; 00527 if ( 00528 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) || 00529 !tolua_isnoobj(tolua_S,2,&tolua_err) 00530 ) 00531 goto tolua_lerror; 00532 else 00533 { 00534 { 00535 fawkes::GameStateInterface::SetKickoffMessage* tolua_ret = (fawkes::GameStateInterface::SetKickoffMessage*) Mtolua_new((fawkes::GameStateInterface::SetKickoffMessage)()); 00536 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetKickoffMessage"); 00537 tolua_register_gc(tolua_S,lua_gettop(tolua_S)); 00538 } 00539 } 00540 return 1; 00541 tolua_lerror: 00542 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00_local(tolua_S); 00543 } 00544 #endif //#ifndef TOLUA_DISABLE 00545 00546 /* method: delete of class SetKickoffMessage */ 00547 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_delete00 00548 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_delete00(lua_State* tolua_S) 00549 { 00550 #ifndef TOLUA_RELEASE 00551 tolua_Error tolua_err; 00552 if ( 00553 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) || 00554 !tolua_isnoobj(tolua_S,2,&tolua_err) 00555 ) 00556 goto tolua_lerror; 00557 else 00558 #endif 00559 { 00560 fawkes::GameStateInterface::SetKickoffMessage* self = (fawkes::GameStateInterface::SetKickoffMessage*) tolua_tousertype(tolua_S,1,0); 00561 #ifndef TOLUA_RELEASE 00562 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL); 00563 #endif 00564 Mtolua_delete(self); 00565 } 00566 return 0; 00567 #ifndef TOLUA_RELEASE 00568 tolua_lerror: 00569 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err); 00570 return 0; 00571 #endif 00572 } 00573 #endif //#ifndef TOLUA_DISABLE 00574 00575 /* method: is_kickoff of class SetKickoffMessage */ 00576 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_is_kickoff00 00577 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_is_kickoff00(lua_State* tolua_S) 00578 { 00579 #ifndef TOLUA_RELEASE 00580 tolua_Error tolua_err; 00581 if ( 00582 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) || 00583 !tolua_isnoobj(tolua_S,2,&tolua_err) 00584 ) 00585 goto tolua_lerror; 00586 else 00587 #endif 00588 { 00589 fawkes::GameStateInterface::SetKickoffMessage* self = (fawkes::GameStateInterface::SetKickoffMessage*) tolua_tousertype(tolua_S,1,0); 00590 #ifndef TOLUA_RELEASE 00591 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_kickoff'", NULL); 00592 #endif 00593 { 00594 bool tolua_ret = (bool) self->is_kickoff(); 00595 tolua_pushboolean(tolua_S,(bool)tolua_ret); 00596 } 00597 } 00598 return 1; 00599 #ifndef TOLUA_RELEASE 00600 tolua_lerror: 00601 tolua_error(tolua_S,"#ferror in function 'is_kickoff'.",&tolua_err); 00602 return 0; 00603 #endif 00604 } 00605 #endif //#ifndef TOLUA_DISABLE 00606 00607 /* method: set_kickoff of class SetKickoffMessage */ 00608 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_set_kickoff00 00609 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_set_kickoff00(lua_State* tolua_S) 00610 { 00611 #ifndef TOLUA_RELEASE 00612 tolua_Error tolua_err; 00613 if ( 00614 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) || 00615 !tolua_isboolean(tolua_S,2,0,&tolua_err) || 00616 !tolua_isnoobj(tolua_S,3,&tolua_err) 00617 ) 00618 goto tolua_lerror; 00619 else 00620 #endif 00621 { 00622 fawkes::GameStateInterface::SetKickoffMessage* self = (fawkes::GameStateInterface::SetKickoffMessage*) tolua_tousertype(tolua_S,1,0); 00623 const bool new_kickoff = ((const bool) tolua_toboolean(tolua_S,2,0)); 00624 #ifndef TOLUA_RELEASE 00625 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_kickoff'", NULL); 00626 #endif 00627 { 00628 self->set_kickoff(new_kickoff); 00629 } 00630 } 00631 return 0; 00632 #ifndef TOLUA_RELEASE 00633 tolua_lerror: 00634 tolua_error(tolua_S,"#ferror in function 'set_kickoff'.",&tolua_err); 00635 return 0; 00636 #endif 00637 } 00638 #endif //#ifndef TOLUA_DISABLE 00639 00640 /* method: maxlenof_kickoff of class SetKickoffMessage */ 00641 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_maxlenof_kickoff00 00642 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_maxlenof_kickoff00(lua_State* tolua_S) 00643 { 00644 #ifndef TOLUA_RELEASE 00645 tolua_Error tolua_err; 00646 if ( 00647 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) || 00648 !tolua_isnoobj(tolua_S,2,&tolua_err) 00649 ) 00650 goto tolua_lerror; 00651 else 00652 #endif 00653 { 00654 const fawkes::GameStateInterface::SetKickoffMessage* self = (const fawkes::GameStateInterface::SetKickoffMessage*) tolua_tousertype(tolua_S,1,0); 00655 #ifndef TOLUA_RELEASE 00656 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_kickoff'", NULL); 00657 #endif 00658 { 00659 int tolua_ret = (int) self->maxlenof_kickoff(); 00660 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00661 } 00662 } 00663 return 1; 00664 #ifndef TOLUA_RELEASE 00665 tolua_lerror: 00666 tolua_error(tolua_S,"#ferror in function 'maxlenof_kickoff'.",&tolua_err); 00667 return 0; 00668 #endif 00669 } 00670 #endif //#ifndef TOLUA_DISABLE 00671 00672 /* method: new of class SetStateTeamMessage */ 00673 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00 00674 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00(lua_State* tolua_S) 00675 { 00676 #ifndef TOLUA_RELEASE 00677 tolua_Error tolua_err; 00678 if ( 00679 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) || 00680 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00681 !tolua_isnoobj(tolua_S,3,&tolua_err) 00682 ) 00683 goto tolua_lerror; 00684 else 00685 #endif 00686 { 00687 fawkes::GameStateInterface::if_gamestate_team_t ini_state_team = ((fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0)); 00688 { 00689 fawkes::GameStateInterface::SetStateTeamMessage* tolua_ret = (fawkes::GameStateInterface::SetStateTeamMessage*) Mtolua_new((fawkes::GameStateInterface::SetStateTeamMessage)(ini_state_team)); 00690 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetStateTeamMessage"); 00691 } 00692 } 00693 return 1; 00694 #ifndef TOLUA_RELEASE 00695 tolua_lerror: 00696 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); 00697 return 0; 00698 #endif 00699 } 00700 #endif //#ifndef TOLUA_DISABLE 00701 00702 /* method: new_local of class SetStateTeamMessage */ 00703 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00_local 00704 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00_local(lua_State* tolua_S) 00705 { 00706 #ifndef TOLUA_RELEASE 00707 tolua_Error tolua_err; 00708 if ( 00709 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) || 00710 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00711 !tolua_isnoobj(tolua_S,3,&tolua_err) 00712 ) 00713 goto tolua_lerror; 00714 else 00715 #endif 00716 { 00717 fawkes::GameStateInterface::if_gamestate_team_t ini_state_team = ((fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0)); 00718 { 00719 fawkes::GameStateInterface::SetStateTeamMessage* tolua_ret = (fawkes::GameStateInterface::SetStateTeamMessage*) Mtolua_new((fawkes::GameStateInterface::SetStateTeamMessage)(ini_state_team)); 00720 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetStateTeamMessage"); 00721 tolua_register_gc(tolua_S,lua_gettop(tolua_S)); 00722 } 00723 } 00724 return 1; 00725 #ifndef TOLUA_RELEASE 00726 tolua_lerror: 00727 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); 00728 return 0; 00729 #endif 00730 } 00731 #endif //#ifndef TOLUA_DISABLE 00732 00733 /* method: new of class SetStateTeamMessage */ 00734 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01 00735 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01(lua_State* tolua_S) 00736 { 00737 tolua_Error tolua_err; 00738 if ( 00739 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) || 00740 !tolua_isnoobj(tolua_S,2,&tolua_err) 00741 ) 00742 goto tolua_lerror; 00743 else 00744 { 00745 { 00746 fawkes::GameStateInterface::SetStateTeamMessage* tolua_ret = (fawkes::GameStateInterface::SetStateTeamMessage*) Mtolua_new((fawkes::GameStateInterface::SetStateTeamMessage)()); 00747 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetStateTeamMessage"); 00748 } 00749 } 00750 return 1; 00751 tolua_lerror: 00752 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00(tolua_S); 00753 } 00754 #endif //#ifndef TOLUA_DISABLE 00755 00756 /* method: new_local of class SetStateTeamMessage */ 00757 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01_local 00758 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01_local(lua_State* tolua_S) 00759 { 00760 tolua_Error tolua_err; 00761 if ( 00762 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) || 00763 !tolua_isnoobj(tolua_S,2,&tolua_err) 00764 ) 00765 goto tolua_lerror; 00766 else 00767 { 00768 { 00769 fawkes::GameStateInterface::SetStateTeamMessage* tolua_ret = (fawkes::GameStateInterface::SetStateTeamMessage*) Mtolua_new((fawkes::GameStateInterface::SetStateTeamMessage)()); 00770 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetStateTeamMessage"); 00771 tolua_register_gc(tolua_S,lua_gettop(tolua_S)); 00772 } 00773 } 00774 return 1; 00775 tolua_lerror: 00776 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00_local(tolua_S); 00777 } 00778 #endif //#ifndef TOLUA_DISABLE 00779 00780 /* method: delete of class SetStateTeamMessage */ 00781 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_delete00 00782 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_delete00(lua_State* tolua_S) 00783 { 00784 #ifndef TOLUA_RELEASE 00785 tolua_Error tolua_err; 00786 if ( 00787 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) || 00788 !tolua_isnoobj(tolua_S,2,&tolua_err) 00789 ) 00790 goto tolua_lerror; 00791 else 00792 #endif 00793 { 00794 fawkes::GameStateInterface::SetStateTeamMessage* self = (fawkes::GameStateInterface::SetStateTeamMessage*) tolua_tousertype(tolua_S,1,0); 00795 #ifndef TOLUA_RELEASE 00796 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL); 00797 #endif 00798 Mtolua_delete(self); 00799 } 00800 return 0; 00801 #ifndef TOLUA_RELEASE 00802 tolua_lerror: 00803 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err); 00804 return 0; 00805 #endif 00806 } 00807 #endif //#ifndef TOLUA_DISABLE 00808 00809 /* method: state_team of class SetStateTeamMessage */ 00810 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_state_team00 00811 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_state_team00(lua_State* tolua_S) 00812 { 00813 #ifndef TOLUA_RELEASE 00814 tolua_Error tolua_err; 00815 if ( 00816 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) || 00817 !tolua_isnoobj(tolua_S,2,&tolua_err) 00818 ) 00819 goto tolua_lerror; 00820 else 00821 #endif 00822 { 00823 fawkes::GameStateInterface::SetStateTeamMessage* self = (fawkes::GameStateInterface::SetStateTeamMessage*) tolua_tousertype(tolua_S,1,0); 00824 #ifndef TOLUA_RELEASE 00825 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'state_team'", NULL); 00826 #endif 00827 { 00828 fawkes::GameStateInterface::if_gamestate_team_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_team_t) self->state_team(); 00829 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00830 } 00831 } 00832 return 1; 00833 #ifndef TOLUA_RELEASE 00834 tolua_lerror: 00835 tolua_error(tolua_S,"#ferror in function 'state_team'.",&tolua_err); 00836 return 0; 00837 #endif 00838 } 00839 #endif //#ifndef TOLUA_DISABLE 00840 00841 /* method: set_state_team of class SetStateTeamMessage */ 00842 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_set_state_team00 00843 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_set_state_team00(lua_State* tolua_S) 00844 { 00845 #ifndef TOLUA_RELEASE 00846 tolua_Error tolua_err; 00847 if ( 00848 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) || 00849 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00850 !tolua_isnoobj(tolua_S,3,&tolua_err) 00851 ) 00852 goto tolua_lerror; 00853 else 00854 #endif 00855 { 00856 fawkes::GameStateInterface::SetStateTeamMessage* self = (fawkes::GameStateInterface::SetStateTeamMessage*) tolua_tousertype(tolua_S,1,0); 00857 const fawkes::GameStateInterface::if_gamestate_team_t new_state_team = ((const fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0)); 00858 #ifndef TOLUA_RELEASE 00859 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_state_team'", NULL); 00860 #endif 00861 { 00862 self->set_state_team(new_state_team); 00863 } 00864 } 00865 return 0; 00866 #ifndef TOLUA_RELEASE 00867 tolua_lerror: 00868 tolua_error(tolua_S,"#ferror in function 'set_state_team'.",&tolua_err); 00869 return 0; 00870 #endif 00871 } 00872 #endif //#ifndef TOLUA_DISABLE 00873 00874 /* method: maxlenof_state_team of class SetStateTeamMessage */ 00875 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_maxlenof_state_team00 00876 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_maxlenof_state_team00(lua_State* tolua_S) 00877 { 00878 #ifndef TOLUA_RELEASE 00879 tolua_Error tolua_err; 00880 if ( 00881 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) || 00882 !tolua_isnoobj(tolua_S,2,&tolua_err) 00883 ) 00884 goto tolua_lerror; 00885 else 00886 #endif 00887 { 00888 const fawkes::GameStateInterface::SetStateTeamMessage* self = (const fawkes::GameStateInterface::SetStateTeamMessage*) tolua_tousertype(tolua_S,1,0); 00889 #ifndef TOLUA_RELEASE 00890 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_state_team'", NULL); 00891 #endif 00892 { 00893 int tolua_ret = (int) self->maxlenof_state_team(); 00894 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00895 } 00896 } 00897 return 1; 00898 #ifndef TOLUA_RELEASE 00899 tolua_lerror: 00900 tolua_error(tolua_S,"#ferror in function 'maxlenof_state_team'.",&tolua_err); 00901 return 0; 00902 #endif 00903 } 00904 #endif //#ifndef TOLUA_DISABLE 00905 00906 /* method: game_state of class fawkes::GameStateInterface */ 00907 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_game_state00 00908 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_game_state00(lua_State* tolua_S) 00909 { 00910 #ifndef TOLUA_RELEASE 00911 tolua_Error tolua_err; 00912 if ( 00913 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 00914 !tolua_isnoobj(tolua_S,2,&tolua_err) 00915 ) 00916 goto tolua_lerror; 00917 else 00918 #endif 00919 { 00920 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 00921 #ifndef TOLUA_RELEASE 00922 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'game_state'", NULL); 00923 #endif 00924 { 00925 unsigned int tolua_ret = (unsigned int) self->game_state(); 00926 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00927 } 00928 } 00929 return 1; 00930 #ifndef TOLUA_RELEASE 00931 tolua_lerror: 00932 tolua_error(tolua_S,"#ferror in function 'game_state'.",&tolua_err); 00933 return 0; 00934 #endif 00935 } 00936 #endif //#ifndef TOLUA_DISABLE 00937 00938 /* method: set_game_state of class fawkes::GameStateInterface */ 00939 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_game_state00 00940 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_game_state00(lua_State* tolua_S) 00941 { 00942 #ifndef TOLUA_RELEASE 00943 tolua_Error tolua_err; 00944 if ( 00945 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 00946 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00947 !tolua_isnoobj(tolua_S,3,&tolua_err) 00948 ) 00949 goto tolua_lerror; 00950 else 00951 #endif 00952 { 00953 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 00954 unsigned const int new_game_state = ((unsigned const int) tolua_tonumber(tolua_S,2,0)); 00955 #ifndef TOLUA_RELEASE 00956 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_game_state'", NULL); 00957 #endif 00958 { 00959 self->set_game_state(new_game_state); 00960 } 00961 } 00962 return 0; 00963 #ifndef TOLUA_RELEASE 00964 tolua_lerror: 00965 tolua_error(tolua_S,"#ferror in function 'set_game_state'.",&tolua_err); 00966 return 0; 00967 #endif 00968 } 00969 #endif //#ifndef TOLUA_DISABLE 00970 00971 /* method: maxlenof_game_state of class fawkes::GameStateInterface */ 00972 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_game_state00 00973 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_game_state00(lua_State* tolua_S) 00974 { 00975 #ifndef TOLUA_RELEASE 00976 tolua_Error tolua_err; 00977 if ( 00978 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 00979 !tolua_isnoobj(tolua_S,2,&tolua_err) 00980 ) 00981 goto tolua_lerror; 00982 else 00983 #endif 00984 { 00985 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 00986 #ifndef TOLUA_RELEASE 00987 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_game_state'", NULL); 00988 #endif 00989 { 00990 int tolua_ret = (int) self->maxlenof_game_state(); 00991 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00992 } 00993 } 00994 return 1; 00995 #ifndef TOLUA_RELEASE 00996 tolua_lerror: 00997 tolua_error(tolua_S,"#ferror in function 'maxlenof_game_state'.",&tolua_err); 00998 return 0; 00999 #endif 01000 } 01001 #endif //#ifndef TOLUA_DISABLE 01002 01003 /* method: state_team of class fawkes::GameStateInterface */ 01004 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_state_team00 01005 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_state_team00(lua_State* tolua_S) 01006 { 01007 #ifndef TOLUA_RELEASE 01008 tolua_Error tolua_err; 01009 if ( 01010 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01011 !tolua_isnoobj(tolua_S,2,&tolua_err) 01012 ) 01013 goto tolua_lerror; 01014 else 01015 #endif 01016 { 01017 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01018 #ifndef TOLUA_RELEASE 01019 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'state_team'", NULL); 01020 #endif 01021 { 01022 fawkes::GameStateInterface::if_gamestate_team_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_team_t) self->state_team(); 01023 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01024 } 01025 } 01026 return 1; 01027 #ifndef TOLUA_RELEASE 01028 tolua_lerror: 01029 tolua_error(tolua_S,"#ferror in function 'state_team'.",&tolua_err); 01030 return 0; 01031 #endif 01032 } 01033 #endif //#ifndef TOLUA_DISABLE 01034 01035 /* method: set_state_team of class fawkes::GameStateInterface */ 01036 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_state_team00 01037 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_state_team00(lua_State* tolua_S) 01038 { 01039 #ifndef TOLUA_RELEASE 01040 tolua_Error tolua_err; 01041 if ( 01042 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01043 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 01044 !tolua_isnoobj(tolua_S,3,&tolua_err) 01045 ) 01046 goto tolua_lerror; 01047 else 01048 #endif 01049 { 01050 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01051 const fawkes::GameStateInterface::if_gamestate_team_t new_state_team = ((const fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0)); 01052 #ifndef TOLUA_RELEASE 01053 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_state_team'", NULL); 01054 #endif 01055 { 01056 self->set_state_team(new_state_team); 01057 } 01058 } 01059 return 0; 01060 #ifndef TOLUA_RELEASE 01061 tolua_lerror: 01062 tolua_error(tolua_S,"#ferror in function 'set_state_team'.",&tolua_err); 01063 return 0; 01064 #endif 01065 } 01066 #endif //#ifndef TOLUA_DISABLE 01067 01068 /* method: maxlenof_state_team of class fawkes::GameStateInterface */ 01069 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_state_team00 01070 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_state_team00(lua_State* tolua_S) 01071 { 01072 #ifndef TOLUA_RELEASE 01073 tolua_Error tolua_err; 01074 if ( 01075 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01076 !tolua_isnoobj(tolua_S,2,&tolua_err) 01077 ) 01078 goto tolua_lerror; 01079 else 01080 #endif 01081 { 01082 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01083 #ifndef TOLUA_RELEASE 01084 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_state_team'", NULL); 01085 #endif 01086 { 01087 int tolua_ret = (int) self->maxlenof_state_team(); 01088 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01089 } 01090 } 01091 return 1; 01092 #ifndef TOLUA_RELEASE 01093 tolua_lerror: 01094 tolua_error(tolua_S,"#ferror in function 'maxlenof_state_team'.",&tolua_err); 01095 return 0; 01096 #endif 01097 } 01098 #endif //#ifndef TOLUA_DISABLE 01099 01100 /* method: our_team of class fawkes::GameStateInterface */ 01101 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_team00 01102 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_team00(lua_State* tolua_S) 01103 { 01104 #ifndef TOLUA_RELEASE 01105 tolua_Error tolua_err; 01106 if ( 01107 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01108 !tolua_isnoobj(tolua_S,2,&tolua_err) 01109 ) 01110 goto tolua_lerror; 01111 else 01112 #endif 01113 { 01114 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01115 #ifndef TOLUA_RELEASE 01116 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'our_team'", NULL); 01117 #endif 01118 { 01119 fawkes::GameStateInterface::if_gamestate_team_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_team_t) self->our_team(); 01120 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01121 } 01122 } 01123 return 1; 01124 #ifndef TOLUA_RELEASE 01125 tolua_lerror: 01126 tolua_error(tolua_S,"#ferror in function 'our_team'.",&tolua_err); 01127 return 0; 01128 #endif 01129 } 01130 #endif //#ifndef TOLUA_DISABLE 01131 01132 /* method: set_our_team of class fawkes::GameStateInterface */ 01133 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_team00 01134 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_team00(lua_State* tolua_S) 01135 { 01136 #ifndef TOLUA_RELEASE 01137 tolua_Error tolua_err; 01138 if ( 01139 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01140 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 01141 !tolua_isnoobj(tolua_S,3,&tolua_err) 01142 ) 01143 goto tolua_lerror; 01144 else 01145 #endif 01146 { 01147 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01148 const fawkes::GameStateInterface::if_gamestate_team_t new_our_team = ((const fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0)); 01149 #ifndef TOLUA_RELEASE 01150 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_our_team'", NULL); 01151 #endif 01152 { 01153 self->set_our_team(new_our_team); 01154 } 01155 } 01156 return 0; 01157 #ifndef TOLUA_RELEASE 01158 tolua_lerror: 01159 tolua_error(tolua_S,"#ferror in function 'set_our_team'.",&tolua_err); 01160 return 0; 01161 #endif 01162 } 01163 #endif //#ifndef TOLUA_DISABLE 01164 01165 /* method: maxlenof_our_team of class fawkes::GameStateInterface */ 01166 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_team00 01167 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_team00(lua_State* tolua_S) 01168 { 01169 #ifndef TOLUA_RELEASE 01170 tolua_Error tolua_err; 01171 if ( 01172 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01173 !tolua_isnoobj(tolua_S,2,&tolua_err) 01174 ) 01175 goto tolua_lerror; 01176 else 01177 #endif 01178 { 01179 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01180 #ifndef TOLUA_RELEASE 01181 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_our_team'", NULL); 01182 #endif 01183 { 01184 int tolua_ret = (int) self->maxlenof_our_team(); 01185 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01186 } 01187 } 01188 return 1; 01189 #ifndef TOLUA_RELEASE 01190 tolua_lerror: 01191 tolua_error(tolua_S,"#ferror in function 'maxlenof_our_team'.",&tolua_err); 01192 return 0; 01193 #endif 01194 } 01195 #endif //#ifndef TOLUA_DISABLE 01196 01197 /* method: our_goal_color of class fawkes::GameStateInterface */ 01198 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_goal_color00 01199 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_goal_color00(lua_State* tolua_S) 01200 { 01201 #ifndef TOLUA_RELEASE 01202 tolua_Error tolua_err; 01203 if ( 01204 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01205 !tolua_isnoobj(tolua_S,2,&tolua_err) 01206 ) 01207 goto tolua_lerror; 01208 else 01209 #endif 01210 { 01211 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01212 #ifndef TOLUA_RELEASE 01213 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'our_goal_color'", NULL); 01214 #endif 01215 { 01216 fawkes::GameStateInterface::if_gamestate_goalcolor_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_goalcolor_t) self->our_goal_color(); 01217 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01218 } 01219 } 01220 return 1; 01221 #ifndef TOLUA_RELEASE 01222 tolua_lerror: 01223 tolua_error(tolua_S,"#ferror in function 'our_goal_color'.",&tolua_err); 01224 return 0; 01225 #endif 01226 } 01227 #endif //#ifndef TOLUA_DISABLE 01228 01229 /* method: set_our_goal_color of class fawkes::GameStateInterface */ 01230 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_goal_color00 01231 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_goal_color00(lua_State* tolua_S) 01232 { 01233 #ifndef TOLUA_RELEASE 01234 tolua_Error tolua_err; 01235 if ( 01236 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01237 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 01238 !tolua_isnoobj(tolua_S,3,&tolua_err) 01239 ) 01240 goto tolua_lerror; 01241 else 01242 #endif 01243 { 01244 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01245 const fawkes::GameStateInterface::if_gamestate_goalcolor_t new_our_goal_color = ((const fawkes::GameStateInterface::if_gamestate_goalcolor_t) (int) tolua_tonumber(tolua_S,2,0)); 01246 #ifndef TOLUA_RELEASE 01247 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_our_goal_color'", NULL); 01248 #endif 01249 { 01250 self->set_our_goal_color(new_our_goal_color); 01251 } 01252 } 01253 return 0; 01254 #ifndef TOLUA_RELEASE 01255 tolua_lerror: 01256 tolua_error(tolua_S,"#ferror in function 'set_our_goal_color'.",&tolua_err); 01257 return 0; 01258 #endif 01259 } 01260 #endif //#ifndef TOLUA_DISABLE 01261 01262 /* method: maxlenof_our_goal_color of class fawkes::GameStateInterface */ 01263 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_goal_color00 01264 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_goal_color00(lua_State* tolua_S) 01265 { 01266 #ifndef TOLUA_RELEASE 01267 tolua_Error tolua_err; 01268 if ( 01269 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01270 !tolua_isnoobj(tolua_S,2,&tolua_err) 01271 ) 01272 goto tolua_lerror; 01273 else 01274 #endif 01275 { 01276 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01277 #ifndef TOLUA_RELEASE 01278 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_our_goal_color'", NULL); 01279 #endif 01280 { 01281 int tolua_ret = (int) self->maxlenof_our_goal_color(); 01282 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01283 } 01284 } 01285 return 1; 01286 #ifndef TOLUA_RELEASE 01287 tolua_lerror: 01288 tolua_error(tolua_S,"#ferror in function 'maxlenof_our_goal_color'.",&tolua_err); 01289 return 0; 01290 #endif 01291 } 01292 #endif //#ifndef TOLUA_DISABLE 01293 01294 /* method: half of class fawkes::GameStateInterface */ 01295 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_half00 01296 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_half00(lua_State* tolua_S) 01297 { 01298 #ifndef TOLUA_RELEASE 01299 tolua_Error tolua_err; 01300 if ( 01301 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01302 !tolua_isnoobj(tolua_S,2,&tolua_err) 01303 ) 01304 goto tolua_lerror; 01305 else 01306 #endif 01307 { 01308 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01309 #ifndef TOLUA_RELEASE 01310 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'half'", NULL); 01311 #endif 01312 { 01313 fawkes::GameStateInterface::if_gamestate_half_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_half_t) self->half(); 01314 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01315 } 01316 } 01317 return 1; 01318 #ifndef TOLUA_RELEASE 01319 tolua_lerror: 01320 tolua_error(tolua_S,"#ferror in function 'half'.",&tolua_err); 01321 return 0; 01322 #endif 01323 } 01324 #endif //#ifndef TOLUA_DISABLE 01325 01326 /* method: set_half of class fawkes::GameStateInterface */ 01327 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_half00 01328 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_half00(lua_State* tolua_S) 01329 { 01330 #ifndef TOLUA_RELEASE 01331 tolua_Error tolua_err; 01332 if ( 01333 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01334 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 01335 !tolua_isnoobj(tolua_S,3,&tolua_err) 01336 ) 01337 goto tolua_lerror; 01338 else 01339 #endif 01340 { 01341 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01342 const fawkes::GameStateInterface::if_gamestate_half_t new_half = ((const fawkes::GameStateInterface::if_gamestate_half_t) (int) tolua_tonumber(tolua_S,2,0)); 01343 #ifndef TOLUA_RELEASE 01344 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_half'", NULL); 01345 #endif 01346 { 01347 self->set_half(new_half); 01348 } 01349 } 01350 return 0; 01351 #ifndef TOLUA_RELEASE 01352 tolua_lerror: 01353 tolua_error(tolua_S,"#ferror in function 'set_half'.",&tolua_err); 01354 return 0; 01355 #endif 01356 } 01357 #endif //#ifndef TOLUA_DISABLE 01358 01359 /* method: maxlenof_half of class fawkes::GameStateInterface */ 01360 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_half00 01361 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_half00(lua_State* tolua_S) 01362 { 01363 #ifndef TOLUA_RELEASE 01364 tolua_Error tolua_err; 01365 if ( 01366 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01367 !tolua_isnoobj(tolua_S,2,&tolua_err) 01368 ) 01369 goto tolua_lerror; 01370 else 01371 #endif 01372 { 01373 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01374 #ifndef TOLUA_RELEASE 01375 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_half'", NULL); 01376 #endif 01377 { 01378 int tolua_ret = (int) self->maxlenof_half(); 01379 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01380 } 01381 } 01382 return 1; 01383 #ifndef TOLUA_RELEASE 01384 tolua_lerror: 01385 tolua_error(tolua_S,"#ferror in function 'maxlenof_half'.",&tolua_err); 01386 return 0; 01387 #endif 01388 } 01389 #endif //#ifndef TOLUA_DISABLE 01390 01391 /* method: is_kickoff of class fawkes::GameStateInterface */ 01392 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_kickoff00 01393 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_kickoff00(lua_State* tolua_S) 01394 { 01395 #ifndef TOLUA_RELEASE 01396 tolua_Error tolua_err; 01397 if ( 01398 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01399 !tolua_isnoobj(tolua_S,2,&tolua_err) 01400 ) 01401 goto tolua_lerror; 01402 else 01403 #endif 01404 { 01405 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01406 #ifndef TOLUA_RELEASE 01407 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_kickoff'", NULL); 01408 #endif 01409 { 01410 bool tolua_ret = (bool) self->is_kickoff(); 01411 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01412 } 01413 } 01414 return 1; 01415 #ifndef TOLUA_RELEASE 01416 tolua_lerror: 01417 tolua_error(tolua_S,"#ferror in function 'is_kickoff'.",&tolua_err); 01418 return 0; 01419 #endif 01420 } 01421 #endif //#ifndef TOLUA_DISABLE 01422 01423 /* method: set_kickoff of class fawkes::GameStateInterface */ 01424 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_kickoff00 01425 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_kickoff00(lua_State* tolua_S) 01426 { 01427 #ifndef TOLUA_RELEASE 01428 tolua_Error tolua_err; 01429 if ( 01430 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01431 !tolua_isboolean(tolua_S,2,0,&tolua_err) || 01432 !tolua_isnoobj(tolua_S,3,&tolua_err) 01433 ) 01434 goto tolua_lerror; 01435 else 01436 #endif 01437 { 01438 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01439 const bool new_kickoff = ((const bool) tolua_toboolean(tolua_S,2,0)); 01440 #ifndef TOLUA_RELEASE 01441 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_kickoff'", NULL); 01442 #endif 01443 { 01444 self->set_kickoff(new_kickoff); 01445 } 01446 } 01447 return 0; 01448 #ifndef TOLUA_RELEASE 01449 tolua_lerror: 01450 tolua_error(tolua_S,"#ferror in function 'set_kickoff'.",&tolua_err); 01451 return 0; 01452 #endif 01453 } 01454 #endif //#ifndef TOLUA_DISABLE 01455 01456 /* method: maxlenof_kickoff of class fawkes::GameStateInterface */ 01457 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_kickoff00 01458 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_kickoff00(lua_State* tolua_S) 01459 { 01460 #ifndef TOLUA_RELEASE 01461 tolua_Error tolua_err; 01462 if ( 01463 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01464 !tolua_isnoobj(tolua_S,2,&tolua_err) 01465 ) 01466 goto tolua_lerror; 01467 else 01468 #endif 01469 { 01470 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01471 #ifndef TOLUA_RELEASE 01472 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_kickoff'", NULL); 01473 #endif 01474 { 01475 int tolua_ret = (int) self->maxlenof_kickoff(); 01476 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01477 } 01478 } 01479 return 1; 01480 #ifndef TOLUA_RELEASE 01481 tolua_lerror: 01482 tolua_error(tolua_S,"#ferror in function 'maxlenof_kickoff'.",&tolua_err); 01483 return 0; 01484 #endif 01485 } 01486 #endif //#ifndef TOLUA_DISABLE 01487 01488 /* method: role of class fawkes::GameStateInterface */ 01489 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_role00 01490 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_role00(lua_State* tolua_S) 01491 { 01492 #ifndef TOLUA_RELEASE 01493 tolua_Error tolua_err; 01494 if ( 01495 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01496 !tolua_isnoobj(tolua_S,2,&tolua_err) 01497 ) 01498 goto tolua_lerror; 01499 else 01500 #endif 01501 { 01502 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01503 #ifndef TOLUA_RELEASE 01504 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'role'", NULL); 01505 #endif 01506 { 01507 fawkes::GameStateInterface::if_gamestate_role_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_role_t) self->role(); 01508 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01509 } 01510 } 01511 return 1; 01512 #ifndef TOLUA_RELEASE 01513 tolua_lerror: 01514 tolua_error(tolua_S,"#ferror in function 'role'.",&tolua_err); 01515 return 0; 01516 #endif 01517 } 01518 #endif //#ifndef TOLUA_DISABLE 01519 01520 /* method: set_role of class fawkes::GameStateInterface */ 01521 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_role00 01522 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_role00(lua_State* tolua_S) 01523 { 01524 #ifndef TOLUA_RELEASE 01525 tolua_Error tolua_err; 01526 if ( 01527 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01528 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 01529 !tolua_isnoobj(tolua_S,3,&tolua_err) 01530 ) 01531 goto tolua_lerror; 01532 else 01533 #endif 01534 { 01535 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01536 const fawkes::GameStateInterface::if_gamestate_role_t new_role = ((const fawkes::GameStateInterface::if_gamestate_role_t) (int) tolua_tonumber(tolua_S,2,0)); 01537 #ifndef TOLUA_RELEASE 01538 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_role'", NULL); 01539 #endif 01540 { 01541 self->set_role(new_role); 01542 } 01543 } 01544 return 0; 01545 #ifndef TOLUA_RELEASE 01546 tolua_lerror: 01547 tolua_error(tolua_S,"#ferror in function 'set_role'.",&tolua_err); 01548 return 0; 01549 #endif 01550 } 01551 #endif //#ifndef TOLUA_DISABLE 01552 01553 /* method: maxlenof_role of class fawkes::GameStateInterface */ 01554 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_role00 01555 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_role00(lua_State* tolua_S) 01556 { 01557 #ifndef TOLUA_RELEASE 01558 tolua_Error tolua_err; 01559 if ( 01560 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01561 !tolua_isnoobj(tolua_S,2,&tolua_err) 01562 ) 01563 goto tolua_lerror; 01564 else 01565 #endif 01566 { 01567 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01568 #ifndef TOLUA_RELEASE 01569 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_role'", NULL); 01570 #endif 01571 { 01572 int tolua_ret = (int) self->maxlenof_role(); 01573 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01574 } 01575 } 01576 return 1; 01577 #ifndef TOLUA_RELEASE 01578 tolua_lerror: 01579 tolua_error(tolua_S,"#ferror in function 'maxlenof_role'.",&tolua_err); 01580 return 0; 01581 #endif 01582 } 01583 #endif //#ifndef TOLUA_DISABLE 01584 01585 /* method: score_cyan of class fawkes::GameStateInterface */ 01586 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_cyan00 01587 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_cyan00(lua_State* tolua_S) 01588 { 01589 #ifndef TOLUA_RELEASE 01590 tolua_Error tolua_err; 01591 if ( 01592 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01593 !tolua_isnoobj(tolua_S,2,&tolua_err) 01594 ) 01595 goto tolua_lerror; 01596 else 01597 #endif 01598 { 01599 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01600 #ifndef TOLUA_RELEASE 01601 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'score_cyan'", NULL); 01602 #endif 01603 { 01604 unsigned int tolua_ret = (unsigned int) self->score_cyan(); 01605 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01606 } 01607 } 01608 return 1; 01609 #ifndef TOLUA_RELEASE 01610 tolua_lerror: 01611 tolua_error(tolua_S,"#ferror in function 'score_cyan'.",&tolua_err); 01612 return 0; 01613 #endif 01614 } 01615 #endif //#ifndef TOLUA_DISABLE 01616 01617 /* method: set_score_cyan of class fawkes::GameStateInterface */ 01618 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_cyan00 01619 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_cyan00(lua_State* tolua_S) 01620 { 01621 #ifndef TOLUA_RELEASE 01622 tolua_Error tolua_err; 01623 if ( 01624 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01625 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 01626 !tolua_isnoobj(tolua_S,3,&tolua_err) 01627 ) 01628 goto tolua_lerror; 01629 else 01630 #endif 01631 { 01632 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01633 unsigned const int new_score_cyan = ((unsigned const int) tolua_tonumber(tolua_S,2,0)); 01634 #ifndef TOLUA_RELEASE 01635 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_score_cyan'", NULL); 01636 #endif 01637 { 01638 self->set_score_cyan(new_score_cyan); 01639 } 01640 } 01641 return 0; 01642 #ifndef TOLUA_RELEASE 01643 tolua_lerror: 01644 tolua_error(tolua_S,"#ferror in function 'set_score_cyan'.",&tolua_err); 01645 return 0; 01646 #endif 01647 } 01648 #endif //#ifndef TOLUA_DISABLE 01649 01650 /* method: maxlenof_score_cyan of class fawkes::GameStateInterface */ 01651 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_cyan00 01652 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_cyan00(lua_State* tolua_S) 01653 { 01654 #ifndef TOLUA_RELEASE 01655 tolua_Error tolua_err; 01656 if ( 01657 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01658 !tolua_isnoobj(tolua_S,2,&tolua_err) 01659 ) 01660 goto tolua_lerror; 01661 else 01662 #endif 01663 { 01664 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01665 #ifndef TOLUA_RELEASE 01666 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_score_cyan'", NULL); 01667 #endif 01668 { 01669 int tolua_ret = (int) self->maxlenof_score_cyan(); 01670 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01671 } 01672 } 01673 return 1; 01674 #ifndef TOLUA_RELEASE 01675 tolua_lerror: 01676 tolua_error(tolua_S,"#ferror in function 'maxlenof_score_cyan'.",&tolua_err); 01677 return 0; 01678 #endif 01679 } 01680 #endif //#ifndef TOLUA_DISABLE 01681 01682 /* method: score_magenta of class fawkes::GameStateInterface */ 01683 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_magenta00 01684 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_magenta00(lua_State* tolua_S) 01685 { 01686 #ifndef TOLUA_RELEASE 01687 tolua_Error tolua_err; 01688 if ( 01689 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01690 !tolua_isnoobj(tolua_S,2,&tolua_err) 01691 ) 01692 goto tolua_lerror; 01693 else 01694 #endif 01695 { 01696 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01697 #ifndef TOLUA_RELEASE 01698 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'score_magenta'", NULL); 01699 #endif 01700 { 01701 unsigned int tolua_ret = (unsigned int) self->score_magenta(); 01702 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01703 } 01704 } 01705 return 1; 01706 #ifndef TOLUA_RELEASE 01707 tolua_lerror: 01708 tolua_error(tolua_S,"#ferror in function 'score_magenta'.",&tolua_err); 01709 return 0; 01710 #endif 01711 } 01712 #endif //#ifndef TOLUA_DISABLE 01713 01714 /* method: set_score_magenta of class fawkes::GameStateInterface */ 01715 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_magenta00 01716 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_magenta00(lua_State* tolua_S) 01717 { 01718 #ifndef TOLUA_RELEASE 01719 tolua_Error tolua_err; 01720 if ( 01721 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 01722 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 01723 !tolua_isnoobj(tolua_S,3,&tolua_err) 01724 ) 01725 goto tolua_lerror; 01726 else 01727 #endif 01728 { 01729 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01730 unsigned const int new_score_magenta = ((unsigned const int) tolua_tonumber(tolua_S,2,0)); 01731 #ifndef TOLUA_RELEASE 01732 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_score_magenta'", NULL); 01733 #endif 01734 { 01735 self->set_score_magenta(new_score_magenta); 01736 } 01737 } 01738 return 0; 01739 #ifndef TOLUA_RELEASE 01740 tolua_lerror: 01741 tolua_error(tolua_S,"#ferror in function 'set_score_magenta'.",&tolua_err); 01742 return 0; 01743 #endif 01744 } 01745 #endif //#ifndef TOLUA_DISABLE 01746 01747 /* method: maxlenof_score_magenta of class fawkes::GameStateInterface */ 01748 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_magenta00 01749 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_magenta00(lua_State* tolua_S) 01750 { 01751 #ifndef TOLUA_RELEASE 01752 tolua_Error tolua_err; 01753 if ( 01754 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01755 !tolua_isnoobj(tolua_S,2,&tolua_err) 01756 ) 01757 goto tolua_lerror; 01758 else 01759 #endif 01760 { 01761 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01762 #ifndef TOLUA_RELEASE 01763 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_score_magenta'", NULL); 01764 #endif 01765 { 01766 int tolua_ret = (int) self->maxlenof_score_magenta(); 01767 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01768 } 01769 } 01770 return 1; 01771 #ifndef TOLUA_RELEASE 01772 tolua_lerror: 01773 tolua_error(tolua_S,"#ferror in function 'maxlenof_score_magenta'.",&tolua_err); 01774 return 0; 01775 #endif 01776 } 01777 #endif //#ifndef TOLUA_DISABLE 01778 01779 /* method: oftype of class fawkes::GameStateInterface */ 01780 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_oftype00 01781 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_oftype00(lua_State* tolua_S) 01782 { 01783 #ifndef TOLUA_RELEASE 01784 tolua_Error tolua_err; 01785 if ( 01786 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01787 !tolua_isstring(tolua_S,2,0,&tolua_err) || 01788 !tolua_isnoobj(tolua_S,3,&tolua_err) 01789 ) 01790 goto tolua_lerror; 01791 else 01792 #endif 01793 { 01794 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01795 const char* interface_type = ((const char*) tolua_tostring(tolua_S,2,0)); 01796 #ifndef TOLUA_RELEASE 01797 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'oftype'", NULL); 01798 #endif 01799 { 01800 bool tolua_ret = (bool) self->oftype(interface_type); 01801 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01802 } 01803 } 01804 return 1; 01805 #ifndef TOLUA_RELEASE 01806 tolua_lerror: 01807 tolua_error(tolua_S,"#ferror in function 'oftype'.",&tolua_err); 01808 return 0; 01809 #endif 01810 } 01811 #endif //#ifndef TOLUA_DISABLE 01812 01813 /* method: datachunk of class fawkes::GameStateInterface */ 01814 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datachunk00 01815 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datachunk00(lua_State* tolua_S) 01816 { 01817 #ifndef TOLUA_RELEASE 01818 tolua_Error tolua_err; 01819 if ( 01820 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01821 !tolua_isnoobj(tolua_S,2,&tolua_err) 01822 ) 01823 goto tolua_lerror; 01824 else 01825 #endif 01826 { 01827 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01828 #ifndef TOLUA_RELEASE 01829 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datachunk'", NULL); 01830 #endif 01831 { 01832 const void* tolua_ret = (const void*) self->datachunk(); 01833 tolua_pushuserdata(tolua_S,(void*)tolua_ret); 01834 } 01835 } 01836 return 1; 01837 #ifndef TOLUA_RELEASE 01838 tolua_lerror: 01839 tolua_error(tolua_S,"#ferror in function 'datachunk'.",&tolua_err); 01840 return 0; 01841 #endif 01842 } 01843 #endif //#ifndef TOLUA_DISABLE 01844 01845 /* method: datasize of class fawkes::GameStateInterface */ 01846 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datasize00 01847 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datasize00(lua_State* tolua_S) 01848 { 01849 #ifndef TOLUA_RELEASE 01850 tolua_Error tolua_err; 01851 if ( 01852 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01853 !tolua_isnoobj(tolua_S,2,&tolua_err) 01854 ) 01855 goto tolua_lerror; 01856 else 01857 #endif 01858 { 01859 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01860 #ifndef TOLUA_RELEASE 01861 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datasize'", NULL); 01862 #endif 01863 { 01864 unsigned int tolua_ret = (unsigned int) self->datasize(); 01865 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01866 } 01867 } 01868 return 1; 01869 #ifndef TOLUA_RELEASE 01870 tolua_lerror: 01871 tolua_error(tolua_S,"#ferror in function 'datasize'.",&tolua_err); 01872 return 0; 01873 #endif 01874 } 01875 #endif //#ifndef TOLUA_DISABLE 01876 01877 /* method: type of class fawkes::GameStateInterface */ 01878 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_type00 01879 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_type00(lua_State* tolua_S) 01880 { 01881 #ifndef TOLUA_RELEASE 01882 tolua_Error tolua_err; 01883 if ( 01884 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01885 !tolua_isnoobj(tolua_S,2,&tolua_err) 01886 ) 01887 goto tolua_lerror; 01888 else 01889 #endif 01890 { 01891 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01892 #ifndef TOLUA_RELEASE 01893 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'type'", NULL); 01894 #endif 01895 { 01896 const char* tolua_ret = (const char*) self->type(); 01897 tolua_pushstring(tolua_S,(const char*)tolua_ret); 01898 } 01899 } 01900 return 1; 01901 #ifndef TOLUA_RELEASE 01902 tolua_lerror: 01903 tolua_error(tolua_S,"#ferror in function 'type'.",&tolua_err); 01904 return 0; 01905 #endif 01906 } 01907 #endif //#ifndef TOLUA_DISABLE 01908 01909 /* method: id of class fawkes::GameStateInterface */ 01910 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_id00 01911 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_id00(lua_State* tolua_S) 01912 { 01913 #ifndef TOLUA_RELEASE 01914 tolua_Error tolua_err; 01915 if ( 01916 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01917 !tolua_isnoobj(tolua_S,2,&tolua_err) 01918 ) 01919 goto tolua_lerror; 01920 else 01921 #endif 01922 { 01923 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01924 #ifndef TOLUA_RELEASE 01925 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'id'", NULL); 01926 #endif 01927 { 01928 const char* tolua_ret = (const char*) self->id(); 01929 tolua_pushstring(tolua_S,(const char*)tolua_ret); 01930 } 01931 } 01932 return 1; 01933 #ifndef TOLUA_RELEASE 01934 tolua_lerror: 01935 tolua_error(tolua_S,"#ferror in function 'id'.",&tolua_err); 01936 return 0; 01937 #endif 01938 } 01939 #endif //#ifndef TOLUA_DISABLE 01940 01941 /* method: uid of class fawkes::GameStateInterface */ 01942 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_uid00 01943 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_uid00(lua_State* tolua_S) 01944 { 01945 #ifndef TOLUA_RELEASE 01946 tolua_Error tolua_err; 01947 if ( 01948 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01949 !tolua_isnoobj(tolua_S,2,&tolua_err) 01950 ) 01951 goto tolua_lerror; 01952 else 01953 #endif 01954 { 01955 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01956 #ifndef TOLUA_RELEASE 01957 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'uid'", NULL); 01958 #endif 01959 { 01960 const char* tolua_ret = (const char*) self->uid(); 01961 tolua_pushstring(tolua_S,(const char*)tolua_ret); 01962 } 01963 } 01964 return 1; 01965 #ifndef TOLUA_RELEASE 01966 tolua_lerror: 01967 tolua_error(tolua_S,"#ferror in function 'uid'.",&tolua_err); 01968 return 0; 01969 #endif 01970 } 01971 #endif //#ifndef TOLUA_DISABLE 01972 01973 /* method: serial of class fawkes::GameStateInterface */ 01974 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_serial00 01975 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_serial00(lua_State* tolua_S) 01976 { 01977 #ifndef TOLUA_RELEASE 01978 tolua_Error tolua_err; 01979 if ( 01980 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 01981 !tolua_isnoobj(tolua_S,2,&tolua_err) 01982 ) 01983 goto tolua_lerror; 01984 else 01985 #endif 01986 { 01987 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 01988 #ifndef TOLUA_RELEASE 01989 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'serial'", NULL); 01990 #endif 01991 { 01992 unsigned int tolua_ret = (unsigned int) self->serial(); 01993 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01994 } 01995 } 01996 return 1; 01997 #ifndef TOLUA_RELEASE 01998 tolua_lerror: 01999 tolua_error(tolua_S,"#ferror in function 'serial'.",&tolua_err); 02000 return 0; 02001 #endif 02002 } 02003 #endif //#ifndef TOLUA_DISABLE 02004 02005 /* method: mem_serial of class fawkes::GameStateInterface */ 02006 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_mem_serial00 02007 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_mem_serial00(lua_State* tolua_S) 02008 { 02009 #ifndef TOLUA_RELEASE 02010 tolua_Error tolua_err; 02011 if ( 02012 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 02013 !tolua_isnoobj(tolua_S,2,&tolua_err) 02014 ) 02015 goto tolua_lerror; 02016 else 02017 #endif 02018 { 02019 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02020 #ifndef TOLUA_RELEASE 02021 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'mem_serial'", NULL); 02022 #endif 02023 { 02024 unsigned int tolua_ret = (unsigned int) self->mem_serial(); 02025 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 02026 } 02027 } 02028 return 1; 02029 #ifndef TOLUA_RELEASE 02030 tolua_lerror: 02031 tolua_error(tolua_S,"#ferror in function 'mem_serial'.",&tolua_err); 02032 return 0; 02033 #endif 02034 } 02035 #endif //#ifndef TOLUA_DISABLE 02036 02037 /* method: operator== of class fawkes::GameStateInterface */ 02038 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface__eq00 02039 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface__eq00(lua_State* tolua_S) 02040 { 02041 #ifndef TOLUA_RELEASE 02042 tolua_Error tolua_err; 02043 if ( 02044 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 02045 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Interface",0,&tolua_err)) || 02046 !tolua_isnoobj(tolua_S,3,&tolua_err) 02047 ) 02048 goto tolua_lerror; 02049 else 02050 #endif 02051 { 02052 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02053 Interface* comp = ((Interface*) tolua_tousertype(tolua_S,2,0)); 02054 #ifndef TOLUA_RELEASE 02055 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL); 02056 #endif 02057 { 02058 bool tolua_ret = (bool) self->operator==(*comp); 02059 tolua_pushboolean(tolua_S,(bool)tolua_ret); 02060 } 02061 } 02062 return 1; 02063 #ifndef TOLUA_RELEASE 02064 tolua_lerror: 02065 tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err); 02066 return 0; 02067 #endif 02068 } 02069 #endif //#ifndef TOLUA_DISABLE 02070 02071 /* method: hash of class fawkes::GameStateInterface */ 02072 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash00 02073 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash00(lua_State* tolua_S) 02074 { 02075 #ifndef TOLUA_RELEASE 02076 tolua_Error tolua_err; 02077 if ( 02078 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 02079 !tolua_isnoobj(tolua_S,2,&tolua_err) 02080 ) 02081 goto tolua_lerror; 02082 else 02083 #endif 02084 { 02085 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02086 #ifndef TOLUA_RELEASE 02087 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash'", NULL); 02088 #endif 02089 { 02090 unsigned const char* tolua_ret = ( unsigned const char*) self->hash(); 02091 tolua_pushstring(tolua_S,(const char*)tolua_ret); 02092 } 02093 } 02094 return 1; 02095 #ifndef TOLUA_RELEASE 02096 tolua_lerror: 02097 tolua_error(tolua_S,"#ferror in function 'hash'.",&tolua_err); 02098 return 0; 02099 #endif 02100 } 02101 #endif //#ifndef TOLUA_DISABLE 02102 02103 /* method: hash_size of class fawkes::GameStateInterface */ 02104 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_size00 02105 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_size00(lua_State* tolua_S) 02106 { 02107 #ifndef TOLUA_RELEASE 02108 tolua_Error tolua_err; 02109 if ( 02110 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 02111 !tolua_isnoobj(tolua_S,2,&tolua_err) 02112 ) 02113 goto tolua_lerror; 02114 else 02115 #endif 02116 { 02117 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02118 #ifndef TOLUA_RELEASE 02119 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_size'", NULL); 02120 #endif 02121 { 02122 int tolua_ret = (int) self->hash_size(); 02123 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 02124 } 02125 } 02126 return 1; 02127 #ifndef TOLUA_RELEASE 02128 tolua_lerror: 02129 tolua_error(tolua_S,"#ferror in function 'hash_size'.",&tolua_err); 02130 return 0; 02131 #endif 02132 } 02133 #endif //#ifndef TOLUA_DISABLE 02134 02135 /* method: hash_printable of class fawkes::GameStateInterface */ 02136 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_printable00 02137 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_printable00(lua_State* tolua_S) 02138 { 02139 #ifndef TOLUA_RELEASE 02140 tolua_Error tolua_err; 02141 if ( 02142 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 02143 !tolua_isnoobj(tolua_S,2,&tolua_err) 02144 ) 02145 goto tolua_lerror; 02146 else 02147 #endif 02148 { 02149 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02150 #ifndef TOLUA_RELEASE 02151 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_printable'", NULL); 02152 #endif 02153 { 02154 const char* tolua_ret = (const char*) self->hash_printable(); 02155 tolua_pushstring(tolua_S,(const char*)tolua_ret); 02156 } 02157 } 02158 return 1; 02159 #ifndef TOLUA_RELEASE 02160 tolua_lerror: 02161 tolua_error(tolua_S,"#ferror in function 'hash_printable'.",&tolua_err); 02162 return 0; 02163 #endif 02164 } 02165 #endif //#ifndef TOLUA_DISABLE 02166 02167 /* method: is_writer of class fawkes::GameStateInterface */ 02168 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_writer00 02169 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_writer00(lua_State* tolua_S) 02170 { 02171 #ifndef TOLUA_RELEASE 02172 tolua_Error tolua_err; 02173 if ( 02174 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 02175 !tolua_isnoobj(tolua_S,2,&tolua_err) 02176 ) 02177 goto tolua_lerror; 02178 else 02179 #endif 02180 { 02181 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02182 #ifndef TOLUA_RELEASE 02183 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_writer'", NULL); 02184 #endif 02185 { 02186 bool tolua_ret = (bool) self->is_writer(); 02187 tolua_pushboolean(tolua_S,(bool)tolua_ret); 02188 } 02189 } 02190 return 1; 02191 #ifndef TOLUA_RELEASE 02192 tolua_lerror: 02193 tolua_error(tolua_S,"#ferror in function 'is_writer'.",&tolua_err); 02194 return 0; 02195 #endif 02196 } 02197 #endif //#ifndef TOLUA_DISABLE 02198 02199 /* method: set_from_chunk of class fawkes::GameStateInterface */ 02200 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_from_chunk00 02201 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_from_chunk00(lua_State* tolua_S) 02202 { 02203 #ifndef TOLUA_RELEASE 02204 tolua_Error tolua_err; 02205 if ( 02206 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02207 !tolua_isuserdata(tolua_S,2,0,&tolua_err) || 02208 !tolua_isnoobj(tolua_S,3,&tolua_err) 02209 ) 02210 goto tolua_lerror; 02211 else 02212 #endif 02213 { 02214 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02215 void* chunk = ((void*) tolua_touserdata(tolua_S,2,0)); 02216 #ifndef TOLUA_RELEASE 02217 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_from_chunk'", NULL); 02218 #endif 02219 { 02220 self->set_from_chunk(chunk); 02221 } 02222 } 02223 return 0; 02224 #ifndef TOLUA_RELEASE 02225 tolua_lerror: 02226 tolua_error(tolua_S,"#ferror in function 'set_from_chunk'.",&tolua_err); 02227 return 0; 02228 #endif 02229 } 02230 #endif //#ifndef TOLUA_DISABLE 02231 02232 /* method: create_message of class fawkes::GameStateInterface */ 02233 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_create_message00 02234 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_create_message00(lua_State* tolua_S) 02235 { 02236 #ifndef TOLUA_RELEASE 02237 tolua_Error tolua_err; 02238 if ( 02239 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 02240 !tolua_isstring(tolua_S,2,0,&tolua_err) || 02241 !tolua_isnoobj(tolua_S,3,&tolua_err) 02242 ) 02243 goto tolua_lerror; 02244 else 02245 #endif 02246 { 02247 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02248 const char* type = ((const char*) tolua_tostring(tolua_S,2,0)); 02249 #ifndef TOLUA_RELEASE 02250 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'create_message'", NULL); 02251 #endif 02252 { 02253 Message* tolua_ret = (Message*) self->create_message(type); 02254 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message"); 02255 } 02256 } 02257 return 1; 02258 #ifndef TOLUA_RELEASE 02259 tolua_lerror: 02260 tolua_error(tolua_S,"#ferror in function 'create_message'.",&tolua_err); 02261 return 0; 02262 #endif 02263 } 02264 #endif //#ifndef TOLUA_DISABLE 02265 02266 /* method: read of class fawkes::GameStateInterface */ 02267 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_read00 02268 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_read00(lua_State* tolua_S) 02269 { 02270 #ifndef TOLUA_RELEASE 02271 tolua_Error tolua_err; 02272 if ( 02273 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02274 !tolua_isnoobj(tolua_S,2,&tolua_err) 02275 ) 02276 goto tolua_lerror; 02277 else 02278 #endif 02279 { 02280 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02281 #ifndef TOLUA_RELEASE 02282 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'read'", NULL); 02283 #endif 02284 { 02285 self->read(); 02286 } 02287 } 02288 return 0; 02289 #ifndef TOLUA_RELEASE 02290 tolua_lerror: 02291 tolua_error(tolua_S,"#ferror in function 'read'.",&tolua_err); 02292 return 0; 02293 #endif 02294 } 02295 #endif //#ifndef TOLUA_DISABLE 02296 02297 /* method: write of class fawkes::GameStateInterface */ 02298 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_write00 02299 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_write00(lua_State* tolua_S) 02300 { 02301 #ifndef TOLUA_RELEASE 02302 tolua_Error tolua_err; 02303 if ( 02304 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02305 !tolua_isnoobj(tolua_S,2,&tolua_err) 02306 ) 02307 goto tolua_lerror; 02308 else 02309 #endif 02310 { 02311 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02312 #ifndef TOLUA_RELEASE 02313 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'write'", NULL); 02314 #endif 02315 { 02316 self->write(); 02317 } 02318 } 02319 return 0; 02320 #ifndef TOLUA_RELEASE 02321 tolua_lerror: 02322 tolua_error(tolua_S,"#ferror in function 'write'.",&tolua_err); 02323 return 0; 02324 #endif 02325 } 02326 #endif //#ifndef TOLUA_DISABLE 02327 02328 /* method: has_writer of class fawkes::GameStateInterface */ 02329 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_has_writer00 02330 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_has_writer00(lua_State* tolua_S) 02331 { 02332 #ifndef TOLUA_RELEASE 02333 tolua_Error tolua_err; 02334 if ( 02335 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 02336 !tolua_isnoobj(tolua_S,2,&tolua_err) 02337 ) 02338 goto tolua_lerror; 02339 else 02340 #endif 02341 { 02342 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02343 #ifndef TOLUA_RELEASE 02344 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'has_writer'", NULL); 02345 #endif 02346 { 02347 bool tolua_ret = (bool) self->has_writer(); 02348 tolua_pushboolean(tolua_S,(bool)tolua_ret); 02349 } 02350 } 02351 return 1; 02352 #ifndef TOLUA_RELEASE 02353 tolua_lerror: 02354 tolua_error(tolua_S,"#ferror in function 'has_writer'.",&tolua_err); 02355 return 0; 02356 #endif 02357 } 02358 #endif //#ifndef TOLUA_DISABLE 02359 02360 /* method: num_readers of class fawkes::GameStateInterface */ 02361 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_num_readers00 02362 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_num_readers00(lua_State* tolua_S) 02363 { 02364 #ifndef TOLUA_RELEASE 02365 tolua_Error tolua_err; 02366 if ( 02367 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) || 02368 !tolua_isnoobj(tolua_S,2,&tolua_err) 02369 ) 02370 goto tolua_lerror; 02371 else 02372 #endif 02373 { 02374 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02375 #ifndef TOLUA_RELEASE 02376 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'num_readers'", NULL); 02377 #endif 02378 { 02379 unsigned int tolua_ret = (unsigned int) self->num_readers(); 02380 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 02381 } 02382 } 02383 return 1; 02384 #ifndef TOLUA_RELEASE 02385 tolua_lerror: 02386 tolua_error(tolua_S,"#ferror in function 'num_readers'.",&tolua_err); 02387 return 0; 02388 #endif 02389 } 02390 #endif //#ifndef TOLUA_DISABLE 02391 02392 /* method: msgq_enqueue_copy of class fawkes::GameStateInterface */ 02393 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_enqueue_copy00 02394 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_enqueue_copy00(lua_State* tolua_S) 02395 { 02396 #ifndef TOLUA_RELEASE 02397 tolua_Error tolua_err; 02398 if ( 02399 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02400 !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) || 02401 !tolua_isnoobj(tolua_S,3,&tolua_err) 02402 ) 02403 goto tolua_lerror; 02404 else 02405 #endif 02406 { 02407 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02408 Message* message = ((Message*) tolua_tousertype(tolua_S,2,0)); 02409 #ifndef TOLUA_RELEASE 02410 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_enqueue_copy'", NULL); 02411 #endif 02412 { 02413 unsigned int tolua_ret = (unsigned int) self->msgq_enqueue_copy(message); 02414 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 02415 } 02416 } 02417 return 1; 02418 #ifndef TOLUA_RELEASE 02419 tolua_lerror: 02420 tolua_error(tolua_S,"#ferror in function 'msgq_enqueue_copy'.",&tolua_err); 02421 return 0; 02422 #endif 02423 } 02424 #endif //#ifndef TOLUA_DISABLE 02425 02426 /* method: msgq_remove of class fawkes::GameStateInterface */ 02427 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove00 02428 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove00(lua_State* tolua_S) 02429 { 02430 #ifndef TOLUA_RELEASE 02431 tolua_Error tolua_err; 02432 if ( 02433 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02434 !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) || 02435 !tolua_isnoobj(tolua_S,3,&tolua_err) 02436 ) 02437 goto tolua_lerror; 02438 else 02439 #endif 02440 { 02441 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02442 Message* message = ((Message*) tolua_tousertype(tolua_S,2,0)); 02443 #ifndef TOLUA_RELEASE 02444 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL); 02445 #endif 02446 { 02447 self->msgq_remove(message); 02448 } 02449 } 02450 return 0; 02451 #ifndef TOLUA_RELEASE 02452 tolua_lerror: 02453 tolua_error(tolua_S,"#ferror in function 'msgq_remove'.",&tolua_err); 02454 return 0; 02455 #endif 02456 } 02457 #endif //#ifndef TOLUA_DISABLE 02458 02459 /* method: msgq_remove of class fawkes::GameStateInterface */ 02460 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove01 02461 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove01(lua_State* tolua_S) 02462 { 02463 tolua_Error tolua_err; 02464 if ( 02465 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02466 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 02467 !tolua_isnoobj(tolua_S,3,&tolua_err) 02468 ) 02469 goto tolua_lerror; 02470 else 02471 { 02472 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02473 unsigned int message_id = ((unsigned int) tolua_tonumber(tolua_S,2,0)); 02474 #ifndef TOLUA_RELEASE 02475 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL); 02476 #endif 02477 { 02478 self->msgq_remove(message_id); 02479 } 02480 } 02481 return 0; 02482 tolua_lerror: 02483 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove00(tolua_S); 02484 } 02485 #endif //#ifndef TOLUA_DISABLE 02486 02487 /* method: msgq_size of class fawkes::GameStateInterface */ 02488 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_size00 02489 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_size00(lua_State* tolua_S) 02490 { 02491 #ifndef TOLUA_RELEASE 02492 tolua_Error tolua_err; 02493 if ( 02494 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02495 !tolua_isnoobj(tolua_S,2,&tolua_err) 02496 ) 02497 goto tolua_lerror; 02498 else 02499 #endif 02500 { 02501 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02502 #ifndef TOLUA_RELEASE 02503 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_size'", NULL); 02504 #endif 02505 { 02506 unsigned int tolua_ret = (unsigned int) self->msgq_size(); 02507 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 02508 } 02509 } 02510 return 1; 02511 #ifndef TOLUA_RELEASE 02512 tolua_lerror: 02513 tolua_error(tolua_S,"#ferror in function 'msgq_size'.",&tolua_err); 02514 return 0; 02515 #endif 02516 } 02517 #endif //#ifndef TOLUA_DISABLE 02518 02519 /* method: msgq_flush of class fawkes::GameStateInterface */ 02520 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_flush00 02521 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_flush00(lua_State* tolua_S) 02522 { 02523 #ifndef TOLUA_RELEASE 02524 tolua_Error tolua_err; 02525 if ( 02526 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02527 !tolua_isnoobj(tolua_S,2,&tolua_err) 02528 ) 02529 goto tolua_lerror; 02530 else 02531 #endif 02532 { 02533 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02534 #ifndef TOLUA_RELEASE 02535 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_flush'", NULL); 02536 #endif 02537 { 02538 self->msgq_flush(); 02539 } 02540 } 02541 return 0; 02542 #ifndef TOLUA_RELEASE 02543 tolua_lerror: 02544 tolua_error(tolua_S,"#ferror in function 'msgq_flush'.",&tolua_err); 02545 return 0; 02546 #endif 02547 } 02548 #endif //#ifndef TOLUA_DISABLE 02549 02550 /* method: msgq_lock of class fawkes::GameStateInterface */ 02551 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_lock00 02552 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_lock00(lua_State* tolua_S) 02553 { 02554 #ifndef TOLUA_RELEASE 02555 tolua_Error tolua_err; 02556 if ( 02557 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02558 !tolua_isnoobj(tolua_S,2,&tolua_err) 02559 ) 02560 goto tolua_lerror; 02561 else 02562 #endif 02563 { 02564 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02565 #ifndef TOLUA_RELEASE 02566 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_lock'", NULL); 02567 #endif 02568 { 02569 self->msgq_lock(); 02570 } 02571 } 02572 return 0; 02573 #ifndef TOLUA_RELEASE 02574 tolua_lerror: 02575 tolua_error(tolua_S,"#ferror in function 'msgq_lock'.",&tolua_err); 02576 return 0; 02577 #endif 02578 } 02579 #endif //#ifndef TOLUA_DISABLE 02580 02581 /* method: msgq_try_lock of class fawkes::GameStateInterface */ 02582 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_try_lock00 02583 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_try_lock00(lua_State* tolua_S) 02584 { 02585 #ifndef TOLUA_RELEASE 02586 tolua_Error tolua_err; 02587 if ( 02588 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02589 !tolua_isnoobj(tolua_S,2,&tolua_err) 02590 ) 02591 goto tolua_lerror; 02592 else 02593 #endif 02594 { 02595 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02596 #ifndef TOLUA_RELEASE 02597 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_try_lock'", NULL); 02598 #endif 02599 { 02600 bool tolua_ret = (bool) self->msgq_try_lock(); 02601 tolua_pushboolean(tolua_S,(bool)tolua_ret); 02602 } 02603 } 02604 return 1; 02605 #ifndef TOLUA_RELEASE 02606 tolua_lerror: 02607 tolua_error(tolua_S,"#ferror in function 'msgq_try_lock'.",&tolua_err); 02608 return 0; 02609 #endif 02610 } 02611 #endif //#ifndef TOLUA_DISABLE 02612 02613 /* method: msgq_unlock of class fawkes::GameStateInterface */ 02614 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_unlock00 02615 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_unlock00(lua_State* tolua_S) 02616 { 02617 #ifndef TOLUA_RELEASE 02618 tolua_Error tolua_err; 02619 if ( 02620 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02621 !tolua_isnoobj(tolua_S,2,&tolua_err) 02622 ) 02623 goto tolua_lerror; 02624 else 02625 #endif 02626 { 02627 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02628 #ifndef TOLUA_RELEASE 02629 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_unlock'", NULL); 02630 #endif 02631 { 02632 self->msgq_unlock(); 02633 } 02634 } 02635 return 0; 02636 #ifndef TOLUA_RELEASE 02637 tolua_lerror: 02638 tolua_error(tolua_S,"#ferror in function 'msgq_unlock'.",&tolua_err); 02639 return 0; 02640 #endif 02641 } 02642 #endif //#ifndef TOLUA_DISABLE 02643 02644 /* method: msgq_pop of class fawkes::GameStateInterface */ 02645 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_pop00 02646 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_pop00(lua_State* tolua_S) 02647 { 02648 #ifndef TOLUA_RELEASE 02649 tolua_Error tolua_err; 02650 if ( 02651 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02652 !tolua_isnoobj(tolua_S,2,&tolua_err) 02653 ) 02654 goto tolua_lerror; 02655 else 02656 #endif 02657 { 02658 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02659 #ifndef TOLUA_RELEASE 02660 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_pop'", NULL); 02661 #endif 02662 { 02663 self->msgq_pop(); 02664 } 02665 } 02666 return 0; 02667 #ifndef TOLUA_RELEASE 02668 tolua_lerror: 02669 tolua_error(tolua_S,"#ferror in function 'msgq_pop'.",&tolua_err); 02670 return 0; 02671 #endif 02672 } 02673 #endif //#ifndef TOLUA_DISABLE 02674 02675 /* method: msgq_first of class fawkes::GameStateInterface */ 02676 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_first00 02677 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_first00(lua_State* tolua_S) 02678 { 02679 #ifndef TOLUA_RELEASE 02680 tolua_Error tolua_err; 02681 if ( 02682 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02683 !tolua_isnoobj(tolua_S,2,&tolua_err) 02684 ) 02685 goto tolua_lerror; 02686 else 02687 #endif 02688 { 02689 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02690 #ifndef TOLUA_RELEASE 02691 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_first'", NULL); 02692 #endif 02693 { 02694 Message* tolua_ret = (Message*) self->msgq_first(); 02695 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message"); 02696 } 02697 } 02698 return 1; 02699 #ifndef TOLUA_RELEASE 02700 tolua_lerror: 02701 tolua_error(tolua_S,"#ferror in function 'msgq_first'.",&tolua_err); 02702 return 0; 02703 #endif 02704 } 02705 #endif //#ifndef TOLUA_DISABLE 02706 02707 /* method: msgq_empty of class fawkes::GameStateInterface */ 02708 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_empty00 02709 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_empty00(lua_State* tolua_S) 02710 { 02711 #ifndef TOLUA_RELEASE 02712 tolua_Error tolua_err; 02713 if ( 02714 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) || 02715 !tolua_isnoobj(tolua_S,2,&tolua_err) 02716 ) 02717 goto tolua_lerror; 02718 else 02719 #endif 02720 { 02721 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0); 02722 #ifndef TOLUA_RELEASE 02723 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_empty'", NULL); 02724 #endif 02725 { 02726 bool tolua_ret = (bool) self->msgq_empty(); 02727 tolua_pushboolean(tolua_S,(bool)tolua_ret); 02728 } 02729 } 02730 return 1; 02731 #ifndef TOLUA_RELEASE 02732 tolua_lerror: 02733 tolua_error(tolua_S,"#ferror in function 'msgq_empty'.",&tolua_err); 02734 return 0; 02735 #endif 02736 } 02737 #endif //#ifndef TOLUA_DISABLE 02738 02739 /* Open function */ 02740 TOLUA_API int tolua_interfaces_GameStateInterface_open (lua_State* tolua_S) 02741 { 02742 tolua_open(tolua_S); 02743 tolua_reg_types(tolua_S); 02744 tolua_module(tolua_S,NULL,0); 02745 tolua_beginmodule(tolua_S,NULL); 02746 tolua_module(tolua_S,"fawkes",0); 02747 tolua_beginmodule(tolua_S,"fawkes"); 02748 tolua_cclass(tolua_S,"GameStateInterface","fawkes::GameStateInterface","Interface",NULL); 02749 tolua_beginmodule(tolua_S,"GameStateInterface"); 02750 tolua_variable(tolua_S,"GS_FROZEN",tolua_get_fawkes__GameStateInterface_unsigned_GS_FROZEN,NULL); 02751 tolua_variable(tolua_S,"GS_PLAY",tolua_get_fawkes__GameStateInterface_unsigned_GS_PLAY,NULL); 02752 tolua_variable(tolua_S,"GS_KICK_OFF",tolua_get_fawkes__GameStateInterface_unsigned_GS_KICK_OFF,NULL); 02753 tolua_variable(tolua_S,"GS_DROP_BALL",tolua_get_fawkes__GameStateInterface_unsigned_GS_DROP_BALL,NULL); 02754 tolua_variable(tolua_S,"GS_PENALTY",tolua_get_fawkes__GameStateInterface_unsigned_GS_PENALTY,NULL); 02755 tolua_variable(tolua_S,"GS_CORNER_KICK",tolua_get_fawkes__GameStateInterface_unsigned_GS_CORNER_KICK,NULL); 02756 tolua_variable(tolua_S,"GS_THROW_IN",tolua_get_fawkes__GameStateInterface_unsigned_GS_THROW_IN,NULL); 02757 tolua_variable(tolua_S,"GS_FREE_KICK",tolua_get_fawkes__GameStateInterface_unsigned_GS_FREE_KICK,NULL); 02758 tolua_variable(tolua_S,"GS_GOAL_KICK",tolua_get_fawkes__GameStateInterface_unsigned_GS_GOAL_KICK,NULL); 02759 tolua_variable(tolua_S,"GS_HALF_TIME",tolua_get_fawkes__GameStateInterface_unsigned_GS_HALF_TIME,NULL); 02760 tolua_variable(tolua_S,"GS_SPL_INITIAL",tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_INITIAL,NULL); 02761 tolua_variable(tolua_S,"GS_SPL_READY",tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_READY,NULL); 02762 tolua_variable(tolua_S,"GS_SPL_SET",tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_SET,NULL); 02763 tolua_variable(tolua_S,"GS_SPL_PLAY",tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_PLAY,NULL); 02764 tolua_variable(tolua_S,"GS_SPL_FINISHED",tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_FINISHED,NULL); 02765 tolua_constant(tolua_S,"TEAM_NONE",fawkes::GameStateInterface::TEAM_NONE); 02766 tolua_constant(tolua_S,"TEAM_CYAN",fawkes::GameStateInterface::TEAM_CYAN); 02767 tolua_constant(tolua_S,"TEAM_MAGENTA",fawkes::GameStateInterface::TEAM_MAGENTA); 02768 tolua_constant(tolua_S,"TEAM_BOTH",fawkes::GameStateInterface::TEAM_BOTH); 02769 tolua_constant(tolua_S,"GOAL_BLUE",fawkes::GameStateInterface::GOAL_BLUE); 02770 tolua_constant(tolua_S,"GOAL_YELLOW",fawkes::GameStateInterface::GOAL_YELLOW); 02771 tolua_constant(tolua_S,"HALF_FIRST",fawkes::GameStateInterface::HALF_FIRST); 02772 tolua_constant(tolua_S,"HALF_SECOND",fawkes::GameStateInterface::HALF_SECOND); 02773 tolua_constant(tolua_S,"ROLE_GOALIE",fawkes::GameStateInterface::ROLE_GOALIE); 02774 tolua_constant(tolua_S,"ROLE_DEFENDER",fawkes::GameStateInterface::ROLE_DEFENDER); 02775 tolua_constant(tolua_S,"ROLE_MID_LEFT",fawkes::GameStateInterface::ROLE_MID_LEFT); 02776 tolua_constant(tolua_S,"ROLE_MID_RIGHT",fawkes::GameStateInterface::ROLE_MID_RIGHT); 02777 tolua_constant(tolua_S,"ROLE_ATTACKER",fawkes::GameStateInterface::ROLE_ATTACKER); 02778 #ifdef __cplusplus 02779 tolua_cclass(tolua_S,"SetTeamColorMessage","fawkes::GameStateInterface::SetTeamColorMessage","Message",tolua_collect_fawkes__GameStateInterface__SetTeamColorMessage); 02780 #else 02781 tolua_cclass(tolua_S,"SetTeamColorMessage","fawkes::GameStateInterface::SetTeamColorMessage","Message",NULL); 02782 #endif 02783 tolua_beginmodule(tolua_S,"SetTeamColorMessage"); 02784 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00); 02785 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00_local); 02786 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00_local); 02787 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01); 02788 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01_local); 02789 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01_local); 02790 tolua_function(tolua_S,"delete",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_delete00); 02791 tolua_function(tolua_S,"our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_our_team00); 02792 tolua_function(tolua_S,"set_our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_set_our_team00); 02793 tolua_function(tolua_S,"maxlenof_our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_maxlenof_our_team00); 02794 tolua_endmodule(tolua_S); 02795 #ifdef __cplusplus 02796 tolua_cclass(tolua_S,"SetKickoffMessage","fawkes::GameStateInterface::SetKickoffMessage","Message",tolua_collect_fawkes__GameStateInterface__SetKickoffMessage); 02797 #else 02798 tolua_cclass(tolua_S,"SetKickoffMessage","fawkes::GameStateInterface::SetKickoffMessage","Message",NULL); 02799 #endif 02800 tolua_beginmodule(tolua_S,"SetKickoffMessage"); 02801 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00); 02802 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00_local); 02803 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00_local); 02804 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01); 02805 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01_local); 02806 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01_local); 02807 tolua_function(tolua_S,"delete",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_delete00); 02808 tolua_function(tolua_S,"is_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_is_kickoff00); 02809 tolua_function(tolua_S,"set_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_set_kickoff00); 02810 tolua_function(tolua_S,"maxlenof_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_maxlenof_kickoff00); 02811 tolua_endmodule(tolua_S); 02812 #ifdef __cplusplus 02813 tolua_cclass(tolua_S,"SetStateTeamMessage","fawkes::GameStateInterface::SetStateTeamMessage","Message",tolua_collect_fawkes__GameStateInterface__SetStateTeamMessage); 02814 #else 02815 tolua_cclass(tolua_S,"SetStateTeamMessage","fawkes::GameStateInterface::SetStateTeamMessage","Message",NULL); 02816 #endif 02817 tolua_beginmodule(tolua_S,"SetStateTeamMessage"); 02818 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00); 02819 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00_local); 02820 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00_local); 02821 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01); 02822 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01_local); 02823 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01_local); 02824 tolua_function(tolua_S,"delete",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_delete00); 02825 tolua_function(tolua_S,"state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_state_team00); 02826 tolua_function(tolua_S,"set_state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_set_state_team00); 02827 tolua_function(tolua_S,"maxlenof_state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_maxlenof_state_team00); 02828 tolua_endmodule(tolua_S); 02829 tolua_function(tolua_S,"game_state",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_game_state00); 02830 tolua_function(tolua_S,"set_game_state",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_game_state00); 02831 tolua_function(tolua_S,"maxlenof_game_state",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_game_state00); 02832 tolua_function(tolua_S,"state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_state_team00); 02833 tolua_function(tolua_S,"set_state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_state_team00); 02834 tolua_function(tolua_S,"maxlenof_state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_state_team00); 02835 tolua_function(tolua_S,"our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_team00); 02836 tolua_function(tolua_S,"set_our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_team00); 02837 tolua_function(tolua_S,"maxlenof_our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_team00); 02838 tolua_function(tolua_S,"our_goal_color",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_goal_color00); 02839 tolua_function(tolua_S,"set_our_goal_color",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_goal_color00); 02840 tolua_function(tolua_S,"maxlenof_our_goal_color",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_goal_color00); 02841 tolua_function(tolua_S,"half",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_half00); 02842 tolua_function(tolua_S,"set_half",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_half00); 02843 tolua_function(tolua_S,"maxlenof_half",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_half00); 02844 tolua_function(tolua_S,"is_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_kickoff00); 02845 tolua_function(tolua_S,"set_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_kickoff00); 02846 tolua_function(tolua_S,"maxlenof_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_kickoff00); 02847 tolua_function(tolua_S,"role",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_role00); 02848 tolua_function(tolua_S,"set_role",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_role00); 02849 tolua_function(tolua_S,"maxlenof_role",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_role00); 02850 tolua_function(tolua_S,"score_cyan",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_cyan00); 02851 tolua_function(tolua_S,"set_score_cyan",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_cyan00); 02852 tolua_function(tolua_S,"maxlenof_score_cyan",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_cyan00); 02853 tolua_function(tolua_S,"score_magenta",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_magenta00); 02854 tolua_function(tolua_S,"set_score_magenta",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_magenta00); 02855 tolua_function(tolua_S,"maxlenof_score_magenta",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_magenta00); 02856 tolua_function(tolua_S,"oftype",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_oftype00); 02857 tolua_function(tolua_S,"datachunk",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datachunk00); 02858 tolua_function(tolua_S,"datasize",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datasize00); 02859 tolua_function(tolua_S,"type",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_type00); 02860 tolua_function(tolua_S,"id",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_id00); 02861 tolua_function(tolua_S,"uid",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_uid00); 02862 tolua_function(tolua_S,"serial",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_serial00); 02863 tolua_function(tolua_S,"mem_serial",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_mem_serial00); 02864 tolua_function(tolua_S,".eq",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface__eq00); 02865 tolua_function(tolua_S,"hash",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash00); 02866 tolua_function(tolua_S,"hash_size",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_size00); 02867 tolua_function(tolua_S,"hash_printable",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_printable00); 02868 tolua_function(tolua_S,"is_writer",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_writer00); 02869 tolua_function(tolua_S,"set_from_chunk",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_from_chunk00); 02870 tolua_function(tolua_S,"create_message",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_create_message00); 02871 tolua_function(tolua_S,"read",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_read00); 02872 tolua_function(tolua_S,"write",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_write00); 02873 tolua_function(tolua_S,"has_writer",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_has_writer00); 02874 tolua_function(tolua_S,"num_readers",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_num_readers00); 02875 tolua_function(tolua_S,"msgq_enqueue_copy",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_enqueue_copy00); 02876 tolua_function(tolua_S,"msgq_remove",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove00); 02877 tolua_function(tolua_S,"msgq_remove",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove01); 02878 tolua_function(tolua_S,"msgq_size",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_size00); 02879 tolua_function(tolua_S,"msgq_flush",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_flush00); 02880 tolua_function(tolua_S,"msgq_lock",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_lock00); 02881 tolua_function(tolua_S,"msgq_try_lock",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_try_lock00); 02882 tolua_function(tolua_S,"msgq_unlock",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_unlock00); 02883 tolua_function(tolua_S,"msgq_pop",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_pop00); 02884 tolua_function(tolua_S,"msgq_first",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_first00); 02885 tolua_function(tolua_S,"msgq_empty",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_empty00); 02886 tolua_endmodule(tolua_S); 02887 tolua_endmodule(tolua_S); 02888 tolua_endmodule(tolua_S); 02889 return 1; 02890 } 02891 02892 02893 extern "C" { 02894 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501 02895 TOLUA_API int luaopen_interfaces_GameStateInterface (lua_State* tolua_S) { 02896 return tolua_interfaces_GameStateInterface_open(tolua_S); 02897 }; 02898 #endif 02899 } 02900 02901