static int Lhint(lua_State *L) { int type = lua_type(L, 1); if (type == LUA_TNUMBER) return set_hint(L, lua_tointeger(L, 1)); else if (type == LUA_TSTRING) { size_t len; const char *s = luaL_checklstring(L, 1, &len); if (liteq(s, "reset")) { glfwDefaultWindowHints(); return 0; } return set_hint(L, find_hintcode(L, s, len)); } return lbind_typeerror(L, 1, "hint name (string/number)"); }
void create_object(void) { set_name("The scarecrow"); set_hint("There's a crow problem at Bumbleroot Farm. Can you go there " + "and help the farmer save his corn from the nasty birds?\n"); set_level(2); set_flag(235); }
void create_object(void) { set_name("The missing hobbit"); set_hint("A little hobbit girl has lost her friend somewhere in " + "the forest east of Hazeldown. Why don't you go there and " + "see if you can reunite the two?\n"); set_level(3); set_flag(234); }
void configure() { ::configure(); set_creator("chaos"); set_name("ganesha's_challenge"); set_desc("Ganesha's Challenge"); set_hint( "The wanderers of the world of " + World_Name + " called Travelers can issue a challenge from their deity, Ganesha, to " "those who wish to undertake such a task. Find a Traveler, receive a challenge, and complete it." ); set_points(5); set_difficulties(({ 3, 3, 3 }));
void create_object(void) { set_name("Piracy Quest"); set_hint("The pirates on Newbie Island were once the terror of the "+ "seas, but the spoils of their piracy have turned them into "+ "lazy slobs! Their captain is depressed over being unable "+ "to get his crew together to take the ship to sea again. Go "+ "there and help the captain rob just one more ship before he "+ "retires.\nNOTE: This quest can be solved by more than one "+ "player at a time.\n"); set_level(4); set_flag(222); }
void AdaptiveFreeList<Chunk>::reset(size_t hint) { FreeList<Chunk>::reset(); set_hint(hint); }
void AdaptiveFreeList<Chunk>::initialize() { FreeList<Chunk>::initialize(); set_hint(0); init_statistics(true /* split_birth */); }
void FreeList::reset(uint hint) { set_count(0); set_head(NULL); set_tail(NULL); set_hint(hint); }