Xonotic
|
Go to the source code of this file.
Macros | |
#define | _FOREACH_ENTITY_FIND_ORDERED(T, fld, match, cond, body) |
#define | _FOREACH_ENTITY_FIND_UNORDERED(id, T, fld, match, cond, body) |
#define | FOREACH(list, cond, body) FOREACH_LIST(list, enemy, cond, body) |
#define | FOREACH_ARRAY(arr, start, end, cond, body) |
#define | FOREACH_CHAR(s, cond, body) |
#define | FOREACH_ENTITY(cond, body) ORDERED(FOREACH_ENTITY)(cond, body) |
#define | FOREACH_ENTITY_CLASS(class, cond, body) ORDERED(FOREACH_ENTITY_CLASS)(class, cond, body) |
#define | FOREACH_ENTITY_CLASS_ORDERED(class, cond, body) _FOREACH_ENTITY_FIND_ORDERED(string, classname, class, cond, body) |
#define | FOREACH_ENTITY_CLASS_UNORDERED(class, cond, body) _FOREACH_ENTITY_FIND_UNORDERED(clazz, string, classname, class, cond, body) |
#define | FOREACH_ENTITY_ENT(fld, match, body) ORDERED(FOREACH_ENTITY_ENT)(fld, match, body) |
#define | FOREACH_ENTITY_ENT_ORDERED(fld, match, body) _FOREACH_ENTITY_FIND_ORDERED(entity, fld, match, true, body) |
#define | FOREACH_ENTITY_ENT_UNORDERED(fld, match, body) _FOREACH_ENTITY_FIND_UNORDERED(, entity, fld, match, true, body) |
#define | FOREACH_ENTITY_FLAGS(fld, match, body) ORDERED(FOREACH_ENTITY_FLAGS)(fld, match, body) |
#define | FOREACH_ENTITY_FLAGS_ORDERED(fld, match, body) _FOREACH_ENTITY_FIND_ORDERED(flags, fld, match, true, body) |
#define | FOREACH_ENTITY_FLAGS_UNORDERED(fld, match, body) _FOREACH_ENTITY_FIND_UNORDERED(, flags, fld, match, true, body) |
#define | FOREACH_ENTITY_FLOAT(fld, match, body) ORDERED(FOREACH_ENTITY_FLOAT)(fld, match, body) |
#define | FOREACH_ENTITY_FLOAT_ORDERED(fld, match, body) _FOREACH_ENTITY_FIND_ORDERED(float, fld, match, true, body) |
#define | FOREACH_ENTITY_FLOAT_UNORDERED(fld, match, body) _FOREACH_ENTITY_FIND_UNORDERED(, float, fld, match, true, body) |
#define | FOREACH_ENTITY_ORDERED(cond, body) |
#define | FOREACH_ENTITY_STRING(fld, match, body) ORDERED(FOREACH_ENTITY_STRING)(fld, match, body) |
#define | FOREACH_ENTITY_STRING_ORDERED(fld, match, body) _FOREACH_ENTITY_FIND_ORDERED(string, fld, match, true, body) |
#define | FOREACH_ENTITY_STRING_UNORDERED(fld, match, body) _FOREACH_ENTITY_FIND_UNORDERED(, string, fld, match, true, body) |
#define | FOREACH_ENTITY_UNORDERED(cond, body) _FOREACH_ENTITY_FIND_UNORDERED(all, entity, _FOREACH_ENTITY_fld, NULL, cond, body) |
#define | FOREACH_LIST(list, next, cond, body) |
#define | FOREACH_WORD(words, cond, body) |
#define | ITER_CONST const |
#define | MUTEX_LOCK(this) |
#define | MUTEX_UNLOCK(this) |
#define | ORDERED(F) F##_UNORDERED |
#define | STRING_ITERATOR(this, s, i) |
#define | STRING_ITERATOR_GET(this) str2chr(this##_s, this##_i++) |
#define | STRING_ITERATOR_LOAD(this, n) MACRO_BEGIN this##_i = n; MACRO_END |
#define | STRING_ITERATOR_NEXT(this) MACRO_BEGIN ++this##_i; MACRO_END |
#define | STRING_ITERATOR_PEEK(this) str2chr(this##_s, this##_i) |
#define | STRING_ITERATOR_SAVE(this) this##_i |
#define | STRING_ITERATOR_SET(this, s, i) |
#define | STRING_ITERATOR_UNGET(this) MACRO_BEGIN --this##_i; MACRO_END |
#define _FOREACH_ENTITY_FIND_ORDERED | ( | T, | |
fld, | |||
match, | |||
cond, | |||
body | |||
) |
#define _FOREACH_ENTITY_FIND_UNORDERED | ( | id, | |
T, | |||
fld, | |||
match, | |||
cond, | |||
body | |||
) |
#define FOREACH | ( | list, | |
cond, | |||
body | |||
) | FOREACH_LIST(list, enemy, cond, body) |
Definition at line 19 of file iter.qh.
Referenced by _MapInfo_Generate(), _MapInfo_Map_ApplyGametypeEx(), ammo_pickupevalfunc(), buff_FirstFromFlags(), buff_NewType(), buff_RemoveAll(), ClearPlayerSounds(), client_hasweapon(), ClientCommand_minigame(), Cmd_Scoreboard_SetFields(), CommonCommand_editmob(), CommonCommand_macro_command(), CommonCommand_macro_help(), CommonCommand_macro_usage(), CommonCommand_macro_write_aliases(), Create_Notification_Entity_Choice(), CSQC_Ent_Update(), CSQC_Parse_TempEntity(), Destroy_All_Notifications(), Dump_Items(), Dump_Notifications(), Dump_Weapon_Settings(), Ent_RemovePlayerScore(), GameCommand_macro_command(), GameCommand_macro_help(), GameCommand_macro_usage(), GameCommand_macro_write_aliases(), GENERIC_COMMAND(), GenericCommand_macro_command(), GenericCommand_macro_help(), GenericCommand_macro_usage(), GenericCommand_macro_write_aliases(), GenericCommand_restartnotifs(), getmonsterlist(), GetPlayerScoreString(), GetPlayerSound(), GetVoiceMessage(), GiveItems(), GiveRandomWeapons(), havocbot_ai(), havocbot_chooseweapon(), havocbot_chooseweapon_checkreload(), HUD_Main(), HUD_MinigameMenu_ClickCreate(), HUD_ModIcons_Export(), HUD_Weapons(), ImpulseCommands(), invasion_PickMonster(), Item_DefinitionFromInternalName(), Item_FindDefinition(), Item_GiveTo(), Item_Initialize(), Item_ItemsTime_Allow(), kh_Key_AssignTo(), LocalCommand_macro_command(), LocalCommand_macro_help(), LocalCommand_macro_usage(), LocalCommand_macro_write_aliases(), MapInfo_CurrentGametype(), MapInfo_Get_ByName(), MapInfo_Get_ByName_NoFallbacks(), MapInfo_LoadMapSettings(), MapInfo_SwitchGameType(), MapInfo_Type_FromString(), minigame_get_descriptor(), monsters_animoverride(), MUTATOR_HOOKFUNCTION(), Nade_FromProjectile(), NET_HANDLE(), NIX_ChooseNextWeapon(), PlayerDamage(), PlayerScore_Clear(), PlayerScore_Compare(), PlayerScore_PlayerStats(), PlayerScore_SendEntity(), PRECACHE(), PutPlayerInServer(), RandomItems_GetRandomItemClassNameWithProperty(), RandomItems_GetRandomVanillaItemClassName(), readlevelcvars(), readplayerstartcvars(), REGISTER_MUTATOR(), REGISTRY(), REGISTRY_END(), Score_ClearAll(), Score_NicePrint(), Score_NicePrint_Player(), Score_NicePrint_Team(), Scoreboard_AccuracyStats_Draw(), Scoreboard_AccuracyStats_WouldDraw(), Scoreboard_InitScores(), ScoreInfo_SendEntity(), ScoreRules_basics(), ServerList_TypeSort_Click(), spawnfunc(), spawnmonster(), STATIC_INIT(), STATIC_INIT_LATE(), target_init_use(), View_PostProcessing(), W_GetCycleWeapon(), W_Model(), W_NumberWeaponOrder_MapFunc(), W_RandomWeapons(), W_ThrowNewWeapon(), Weapon_from_name(), weapon_pickupevalfunc(), weapons_all(), weapons_devall(), weapons_most(), and weapons_start().
#define FOREACH_ARRAY | ( | arr, | |
start, | |||
end, | |||
cond, | |||
body | |||
) |
#define FOREACH_CHAR | ( | s, | |
cond, | |||
body | |||
) |
Definition at line 62 of file iter.qh.
Referenced by markdown().
#define FOREACH_ENTITY | ( | cond, | |
body | |||
) | ORDERED(FOREACH_ENTITY)(cond, body) |
Definition at line 137 of file iter.qh.
Referenced by GENERIC_COMMAND().
#define FOREACH_ENTITY_CLASS | ( | class, | |
cond, | |||
body | |||
) | ORDERED(FOREACH_ENTITY_CLASS)(class, cond, body) |
Definition at line 189 of file iter.qh.
Referenced by cvar_settemp_restore(), dropclient_schedule(), HUD_Crosshair_ApplyPlayerAlpha(), and waypoint_remove_fromeditor().
#define FOREACH_ENTITY_CLASS_ORDERED | ( | class, | |
cond, | |||
body | |||
) | _FOREACH_ENTITY_FIND_ORDERED(string, classname, class, cond, body) |
Definition at line 190 of file iter.qh.
Referenced by GENERIC_COMMAND().
#define FOREACH_ENTITY_CLASS_UNORDERED | ( | class, | |
cond, | |||
body | |||
) | _FOREACH_ENTITY_FIND_UNORDERED(clazz, string, classname, class, cond, body) |
#define FOREACH_ENTITY_ENT | ( | fld, | |
match, | |||
body | |||
) | ORDERED(FOREACH_ENTITY_ENT)(fld, match, body) |
Definition at line 179 of file iter.qh.
Referenced by pathlib_deletepath(), pathlib_getbestopen(), pathlib_wpp_bestopen(), and vehicles_reset_colors().
#define FOREACH_ENTITY_ENT_ORDERED | ( | fld, | |
match, | |||
body | |||
) | _FOREACH_ENTITY_FIND_ORDERED(entity, fld, match, true, body) |
#define FOREACH_ENTITY_ENT_UNORDERED | ( | fld, | |
match, | |||
body | |||
) | _FOREACH_ENTITY_FIND_UNORDERED(, entity, fld, match, true, body) |
#define FOREACH_ENTITY_FLAGS | ( | fld, | |
match, | |||
body | |||
) | ORDERED(FOREACH_ENTITY_FLAGS)(fld, match, body) |
#define FOREACH_ENTITY_FLAGS_ORDERED | ( | fld, | |
match, | |||
body | |||
) | _FOREACH_ENTITY_FIND_ORDERED(flags, fld, match, true, body) |
#define FOREACH_ENTITY_FLAGS_UNORDERED | ( | fld, | |
match, | |||
body | |||
) | _FOREACH_ENTITY_FIND_UNORDERED(, flags, fld, match, true, body) |
#define FOREACH_ENTITY_FLOAT | ( | fld, | |
match, | |||
body | |||
) | ORDERED(FOREACH_ENTITY_FLOAT)(fld, match, body) |
Definition at line 174 of file iter.qh.
Referenced by crosshair_trace_plusvisibletriggers__is_wz().
#define FOREACH_ENTITY_FLOAT_ORDERED | ( | fld, | |
match, | |||
body | |||
) | _FOREACH_ENTITY_FIND_ORDERED(float, fld, match, true, body) |
Definition at line 175 of file iter.qh.
Referenced by reset_map().
#define FOREACH_ENTITY_FLOAT_UNORDERED | ( | fld, | |
match, | |||
body | |||
) | _FOREACH_ENTITY_FIND_UNORDERED(, float, fld, match, true, body) |
#define FOREACH_ENTITY_ORDERED | ( | cond, | |
body | |||
) |
Definition at line 138 of file iter.qh.
Referenced by GameCommand(), GENERIC_COMMAND(), reset_map(), and Shutdown().
#define FOREACH_ENTITY_STRING | ( | fld, | |
match, | |||
body | |||
) | ORDERED(FOREACH_ENTITY_STRING)(fld, match, body) |
Definition at line 184 of file iter.qh.
Referenced by Simple_TeleportPlayer(), target_objective_decrease_activate(), and Teleport_Touch().
#define FOREACH_ENTITY_STRING_ORDERED | ( | fld, | |
match, | |||
body | |||
) | _FOREACH_ENTITY_FIND_ORDERED(string, fld, match, true, body) |
#define FOREACH_ENTITY_STRING_UNORDERED | ( | fld, | |
match, | |||
body | |||
) | _FOREACH_ENTITY_FIND_UNORDERED(, string, fld, match, true, body) |
#define FOREACH_ENTITY_UNORDERED | ( | cond, | |
body | |||
) | _FOREACH_ENTITY_FIND_UNORDERED(all, entity, _FOREACH_ENTITY_fld, NULL, cond, body) |
#define FOREACH_LIST | ( | list, | |
next, | |||
cond, | |||
body | |||
) |
Definition at line 21 of file iter.qh.
Referenced by WarpZone_FindRadius().
#define FOREACH_WORD | ( | words, | |
cond, | |||
body | |||
) |
Definition at line 33 of file iter.qh.
Referenced by findinlist_abbrev(), FixIntermissionClient(), GenericCommand_addtolist(), GenericCommand_maplist(), GenericCommand_removefromlist(), invasion_SpawnChosenMonster(), precache_playermodels(), Say(), Teleport_Touch(), TeleportPlayer(), and W_Apply_Weaponreplace().
#define MUTEX_LOCK | ( | this | ) |
#define MUTEX_UNLOCK | ( | this | ) |
#define STRING_ITERATOR | ( | this, | |
s, | |||
i | |||
) |
Definition at line 55 of file iter.qh.
Referenced by _json_parse_array(), _json_parse_false(), _json_parse_float(), _json_parse_int(), _json_parse_null(), _json_parse_object(), _json_parse_pair(), _json_parse_string(), and _json_parse_true().
#define STRING_ITERATOR_LOAD | ( | this, | |
n | |||
) | MACRO_BEGIN this##_i = n; MACRO_END |
#define STRING_ITERATOR_NEXT | ( | this | ) | MACRO_BEGIN ++this##_i; MACRO_END |
Definition at line 57 of file iter.qh.
Referenced by _json_parse_array(), and _json_parse_members().
Definition at line 56 of file iter.qh.
Referenced by _json_parse_array(), and _json_parse_members().
#define STRING_ITERATOR_SET | ( | this, | |
s, | |||
i | |||
) |
Definition at line 49 of file iter.qh.
Referenced by json_parse(), and STATIC_INIT().
#define STRING_ITERATOR_UNGET | ( | this | ) | MACRO_BEGIN --this##_i; MACRO_END |
Definition at line 58 of file iter.qh.
Referenced by _json_parse_float(), _json_parse_int(), and _json_parse_string().