Searched refs:LuaPseudoRandom (Results 1 – 6 of 6) sorted by relevance
315 int LuaPseudoRandom::gc_object(lua_State *L) in gc_object()317 LuaPseudoRandom *o = *(LuaPseudoRandom **)(lua_touserdata(L, 1)); in gc_object()323 int LuaPseudoRandom::l_next(lua_State *L) in l_next()326 LuaPseudoRandom *o = checkobject(L, 1); in l_next()351 LuaPseudoRandom::LuaPseudoRandom(int seed): in LuaPseudoRandom() function in LuaPseudoRandom356 LuaPseudoRandom::~LuaPseudoRandom() in ~LuaPseudoRandom()364 PseudoRandom& LuaPseudoRandom::getItem() in getItem()374 LuaPseudoRandom *o = new LuaPseudoRandom(seed); in create_object()381 LuaPseudoRandom* LuaPseudoRandom::checkobject(lua_State *L, int narg) in checkobject()389 void LuaPseudoRandom::Register(lua_State *L) in Register()[all …]
98 class LuaPseudoRandom : public ModApiBase {114 LuaPseudoRandom(int seed);116 ~LuaPseudoRandom();125 static LuaPseudoRandom* checkobject(lua_State *L, int narg);
407 int LuaPseudoRandom::l_next(lua_State *L) in l_next()411 LuaPseudoRandom *o = checkobject(L, 1); in l_next()436 int LuaPseudoRandom::create_object(lua_State *L) in create_object()441 LuaPseudoRandom *o = new LuaPseudoRandom(seed); in create_object()449 int LuaPseudoRandom::gc_object(lua_State *L) in gc_object()451 LuaPseudoRandom *o = *(LuaPseudoRandom **)(lua_touserdata(L, 1)); in gc_object()457 LuaPseudoRandom *LuaPseudoRandom::checkobject(lua_State *L, int narg) in checkobject()463 return *(LuaPseudoRandom **)ud; in checkobject()467 void LuaPseudoRandom::Register(lua_State *L) in Register()496 const luaL_Reg LuaPseudoRandom::methods[] = {[all …]
99 class LuaPseudoRandom : public ModApiBase116 LuaPseudoRandom(s32 seed) : m_pseudo(seed) {} in LuaPseudoRandom() function122 static LuaPseudoRandom *checkobject(lua_State *L, int narg);
99 LuaPseudoRandom::Register(L); in InitializeModApi()
100 LuaPseudoRandom::Register(L); in InitializeModApi()