Xonotic
|
Go to the source code of this file.
Macros | |
#define | _INIT_STATIC(cname) ACCUMULATE void spawn##cname##_static(cname this) |
#define | _new(class, pure) __spawn(#class, __FILE__ ":" STR(__LINE__), pure) |
#define | _TRANSMUTE(cname, this, ...) OVERLOAD_(spawn##cname, this P99_IF_EMPTY(__VA_ARGS__)()(, __VA_ARGS__)) |
#define | _vtbl NULL |
#define | ATTRIB(...) EVAL_ATTRIB(OVERLOAD_(ATTRIB, __VA_ARGS__)) |
#define | ATTRIB_3(cname, name, type) classfield(cname) .type name |
#define | ATTRIB_4(cname, name, type, val) |
#define | ATTRIB_STRZONE(cname, name, type, val) |
#define | ATTRIBARRAY(cname, name, type, cnt) classfield(cname) .type name[cnt] |
#define | CLASS(...) EVAL_CLASS(OVERLOAD__(CLASS, __VA_ARGS__)) |
#define | CLASS_1(cname) CLASS_2(cname, ) |
#define | CLASS_2(cname, base) |
#define | classfield(name) |
#define | CONSTRUCT(cname, ...) OVERLOAD_(spawn##cname, this P99_IF_EMPTY(__VA_ARGS__)()(, __VA_ARGS__)) |
#define | CONSTRUCTOR(cname, ...) |
#define | DEBUG_STUFF(cname) |
#define | delete(this) |
#define | delete_fn builtin_remove |
#define | DESTRUCTOR(cname) |
#define | ENDCLASS(cname) |
#define | entityclass(...) EVAL_entityclass(OVERLOAD_(entityclass, __VA_ARGS__)) |
#define | entityclass_1(name) entityclass_2(name, Object) |
#define | entityclass_2(name, base) USING(name, entity) |
#define | EVAL_ATTRIB(...) __VA_ARGS__ |
#define | EVAL_CLASS(...) __VA_ARGS__ |
#define | EVAL_entityclass(...) __VA_ARGS__ |
#define | INIT(cname) ACCUMULATE cname spawn##cname##_1(cname this) |
#define | is_pure(e) ((e).pure_data) |
#define | make_impure(e) |
#define | make_pure(e) |
#define | METHOD(cname, name, prototype) |
#define | METHOD_REFERENCE(cname, name) cname##_##name |
#define | new(class) _new(class, false) |
entities you care about seeing (.origin works) More... | |
#define | NEW(cname, ...) OVERLOAD_(spawn##cname, new_pure(cname) P99_IF_EMPTY(__VA_ARGS__)()(, __VA_ARGS__)) |
#define | new_pure(class) _new(class, true) |
purely logical entities (.origin doesn't work) More... | |
#define | remove(this) delete(this) |
#define | spawn() __spawn("entity", __FILE__ ":" STR(__LINE__), false) |
#define | spawn_1(this) |
#define | SPAWN_PURE 0 |
#define | spawn_pure() _spawn() |
#define | spawn_static(this) |
#define | STATIC_ATTRIB(cname, name, type, val) |
#define | STATIC_ATTRIB_STRZONE(cname, name, type, val) |
#define | STATIC_METHOD(cname, name, prototype) prototype METHOD_REFERENCE(cname, name) |
#define | SUPER(cname) (cname##_vtbl.vtblbase) |
#define | TRANSMUTE(cname, this, ...) |
#define | VTBL(cname, base) |
Functions | |
entity | __spawn (string _classname, string _sourceLoc, bool pure) |
entity | _spawn () |
CLASS (Object) Object | |
void | clearentity (entity e) |
ACCUMULATE void | ONREMOVE (entity this) |
void | RegisterClasses () |
STATIC_INIT (clearentity) | |
STATIC_INIT (RegisterClasses) | |
void (entity this) dtor | |
Variables | |
entity | _clearentity_ent |
string | classname |
vector | origin |
bool | pure_data |
string | sourceLoc |
Location entity was spawned from in source. More... | |
bool | transmute |
entity | vtblbase |
string | vtblname |
#define _INIT_STATIC | ( | cname | ) | ACCUMULATE void spawn##cname##_static(cname this) |
#define _TRANSMUTE | ( | cname, | |
this, | |||
... | |||
) | OVERLOAD_(spawn##cname, this P99_IF_EMPTY(__VA_ARGS__)()(, __VA_ARGS__)) |
#define ATTRIB | ( | ... | ) | EVAL_ATTRIB(OVERLOAD_(ATTRIB, __VA_ARGS__)) |
Definition at line 136 of file oo.qh.
Referenced by CallbackChain::CallbackNode::CallbackNode ::CallbackNode(), DamageText::DamageText_draw2d(), GameItem::GameItem ::m_spawnfunc_hookreplace(), GENERIC_COMMAND(), Keepaway::Keepaway ::m_isAlwaysSupported(), Animation::setterDummy(), and Turret::Turret ::tr_precache().
#define ATTRIB_3 | ( | cname, | |
name, | |||
type | |||
) | classfield(cname) .type name |
#define ATTRIB_4 | ( | cname, | |
name, | |||
type, | |||
val | |||
) |
#define ATTRIB_STRZONE | ( | cname, | |
name, | |||
type, | |||
val | |||
) |
#define ATTRIBARRAY | ( | cname, | |
name, | |||
type, | |||
cnt | |||
) | classfield(cname) .type name[cnt] |
#define CLASS | ( | ... | ) | EVAL_CLASS(OVERLOAD__(CLASS, __VA_ARGS__)) |
#define CLASS_2 | ( | cname, | |
base | |||
) |
#define CONSTRUCT | ( | cname, | |
... | |||
) | OVERLOAD_(spawn##cname, this P99_IF_EMPTY(__VA_ARGS__)()(, __VA_ARGS__)) |
Definition at line 111 of file oo.qh.
Referenced by Callback::Callback ::Callback(), CallbackChain::CallbackChain ::CallbackChain(), CallbackChain::CallbackNode::CallbackNode ::CallbackNode(), Client::Client ::Client(), ClientState::ClientState ::ClientState(), DamageText::DamageText ::DamageText(), GENERIC_COMMAND(), Model::Model ::Model(), Mutator::Mutator ::Mutator(), PlayerState::PlayerState ::PlayerState(), Sound::Sound ::Sound(), Waypoint::Waypoint ::Waypoint(), WeaponPickup::WeaponPickup ::WeaponPickup(), and XonoticRegisteredSettingsList_getTooltip_cb().
#define CONSTRUCTOR | ( | cname, | |
... | |||
) |
Definition at line 201 of file oo.qh.
Referenced by GENERIC_COMMAND(), and XonoticRegisteredSettingsList_getTooltip_cb().
#define DEBUG_STUFF | ( | cname | ) |
#define delete | ( | this | ) |
#define DESTRUCTOR | ( | cname | ) |
Definition at line 208 of file oo.qh.
Referenced by GENERIC_COMMAND().
#define ENDCLASS | ( | cname | ) |
Definition at line 269 of file oo.qh.
Referenced by Buff::Buff ::display(), Callback::Callback ::Callback(), CallbackChain::CallbackChain_Call(), CallbackChain::CallbackNode::CallbackNode ::CallbackNode(), Client::Client ::Client(), Command::Command ::m_invokecmd(), DamageText::DamageText ::~ DamageText(), DataSource::DataSource ::destroy(), Duel::Duel ::m_isForcedSupported(), Gametype::Gametype ::gametype_init(), GENERIC_COMMAND(), IntrusiveList::IntrusiveList ::~ IntrusiveList(), GameItem::ITEM_HANDLE(), Keepaway::Keepaway ::m_isAlwaysSupported(), Lazy::Lazy ::Lazy(), Model::Model ::model_precache(), Monster::Monster ::mr_anim(), Mutator::Mutator ::Mutator(), Nade::Nade ::display(), Observer::Observer ::~ Observer(), OffhandWeapon::OffhandWeapon ::offhand_think(), Player::Player ::~ Player(), PlayerState::PlayerState ::PlayerState(), ClientState::PlayerState ::ps_push(), Sound::Sound ::sound_precache(), Spectator::Spectator ::~ Spectator(), StatusEffects::StatusEffects ::display(), Turret::Turret ::tr_config(), Vehicle::Vehicle ::vr_crosshair(), Waypoint::Waypoint ::Waypoint(), Weapon::Weapon ::display(), WeaponPickup::WeaponPickup ::WeaponPickup(), XonoticGameSettingsTab::XonoticGameSettingsTab ::XonoticGameSettingsTab(), and XonoticScrollPanel::XonoticScrollPanel ::setSelected().
#define entityclass | ( | ... | ) | EVAL_entityclass(OVERLOAD_(entityclass, __VA_ARGS__)) |
#define INIT | ( | cname | ) | ACCUMULATE cname spawn##cname##_1(cname this) |
#define is_pure | ( | e | ) | ((e).pure_data) |
Definition at line 10 of file oo.qh.
Referenced by clearentity(), and WarpZoneLib_BadEntity().
#define make_impure | ( | e | ) |
Definition at line 15 of file oo.qh.
Referenced by clearentity(), Client::Client ::Client(), Draw_ShowNames_All(), GENERIC_COMMAND(), and NET_HANDLE().
#define make_pure | ( | e | ) |
Definition at line 12 of file oo.qh.
Referenced by __spawn(), Draw_ShowNames_All(), Local_Notification_WOVA(), NET_HANDLE(), spawnfunc(), and waypoint_spawn().
#define METHOD | ( | cname, | |
name, | |||
prototype | |||
) |
Definition at line 257 of file oo.qh.
Referenced by Buff::Buff ::display(), buff_Inferno_CalculateTime(), Button_mouseDrag(), CategoryForEntry(), Container_mouseMove(), ctf_FlagThink(), getNewChildValue(), InputBox_mouseDrag(), InputContainer_mouseMove(), ListBox_mouseDrag(), makeEasing(), makeKeyframe(), Nexposee_draw(), Player::Player ::~ Player(), Slider_mouseDrag(), Turret::Turret ::tr_precache(), WeaponPickup::WeaponPickup ::WeaponPickup(), XonoticColorpicker_configureXonoticColorpicker(), XonoticColorpickerString_saveCvars(), XonoticPicker_mouseDrag(), XonoticRegisteredSettingsList_getTooltip_cb(), XonoticScreenshotImage_load(), and XonoticScrollPanel::XonoticScrollPanel ::setSelected().
#define NEW | ( | cname, | |
... | |||
) | OVERLOAD_(spawn##cname, new_pure(cname) P99_IF_EMPTY(__VA_ARGS__)()(, __VA_ARGS__)) |
Definition at line 105 of file oo.qh.
Referenced by _draw_SetClip(), CallbackChain::CallbackChain_Add(), ClientState_attach(), ctf_Initialize(), Dialog_configureDialog(), Duel::Duel ::m_isForcedSupported(), GENERIC_COMMAND(), Keepaway::Keepaway ::m_isAlwaysSupported(), LL_PUSH(), m_init_delayed(), MainWindow_configureMainWindow(), makeEasing(), makeKeyframe(), makeXonoticAudioSettingsTab(), makeXonoticBigButton(), makeXonoticBigCommandButton_T(), makeXonoticButton_T(), makeXonoticCampaignList(), makeXonoticCharmap(), makeXonoticCheckBoxEx_T(), makeXonoticCheckBoxString(), makeXonoticColorButton(), makeXonoticColorpicker(), makeXonoticColorpickerString(), makeXonoticCommandButton_T(), makeXonoticCreditsList(), makeXonoticCrosshairPicker(), makeXonoticCrosshairPreview(), makeXonoticCvarList(), makeXonoticDecibelsSlider_T(), makeXonoticDemoBrowserTab(), makeXonoticDemoList(), makeXonoticEffectsSettingsTab(), makeXonoticGameCrosshairSettingsTab(), makeXonoticGameHUDSettingsTab(), makeXonoticGameMessageSettingsTab(), makeXonoticGameModelSettingsTab(), makeXonoticGametypeList(), makeXonoticGameViewSettingsTab(), makeXonoticGameWeaponsSettingsTab(), makeXonoticHUDSkinList(), makeXonoticImage(), makeXonoticInputBox_T(), makeXonoticInputSettingsTab(), makeXonoticKeyBinder(), makeXonoticLanguageList(), makeXonoticListBox(), makeXonoticMapList(), makeXonoticMediaTab(), makeXonoticMiscSettingsTab(), makeXonoticMusicPlayerTab(), makeXonoticNexposee(), makeXonoticParticlesSlider(), makeXonoticPicker(), makeXonoticPicmipSlider(), makeXonoticPlayerList(), makeXonoticPlayerModelSelector(), makeXonoticPlayList(), makeXonoticProfileTab(), makeXonoticRadioButton_T(), makeXonoticResolutionSlider(), makeXonoticScoreboardFadeTimeSlider(), makeXonoticScreenshotBrowserTab(), makeXonoticScreenshotImage(), makeXonoticScreenshotList(), makeXonoticServerCreateTab(), makeXonoticServerInfoTab(), makeXonoticServerList(), makeXonoticServerListTab(), makeXonoticServerToSTab(), makeXonoticSkinList(), makeXonoticSlider_T(), makeXonoticSliderCheckBox(), makeXonoticSoundList(), makeXonoticStatsList(), makeXonoticTabController(), makeXonoticTextBox(), makeXonoticTextLabel(), makeXonoticTextSlider_T(), makeXonoticUserSettingsTab(), makeXonoticVideoSettingsTab(), makeXonoticWeaponarenaCheckBox(), makeXonoticWeaponsList(), NET_HANDLE(), PlayerState_attach(), REGISTRY(), STATIC_INIT(), and TEST().
purely logical entities (.origin doesn't work)
Definition at line 62 of file oo.qh.
Referenced by _Promise_done(), accuracy_init(), bd_setup_pieces(), bot_setcurrentcommand(), ClientData_Attach(), ClientInit_Spawn(), Create_Effect_Entity(), ctf_SpawnTeam(), cvar_settemp(), dom_spawnteam(), dropclient_schedule(), EliminatedPlayers_Init(), GENERIC_COMMAND(), GetTeam(), ka_Initialize(), kh_Initialize(), Local_Notification_WOVA(), Monster_Delay(), MUTATOR_HOOKFUNCTION(), MX_Nick(), MX_Say(), MX_Typing(), Nagger_Init(), nb_spawnteam(), NET_HANDLE(), PingPLReport_Spawn(), Playerchecker_Think(), PlayerScore_Attach(), PostInit(), PutPlayerInServer(), RandomSeed_Spawn(), readplayerstartcvars(), ReadyRestart_force(), round_handler_Spawn(), ScoreInfo_Init(), Sort_Spawn(), STATIC_INIT(), SUB_CalcMove_Bezier(), SUB_UseTargets_Ex(), tdm_SpawnTeam(), Team_InitTeams(), TeamScore_Spawn(), TrueAim_Init(), url_multi_fopen(), url_single_fopen(), and WarpZone_Trace_InitTransform().
#define STATIC_ATTRIB | ( | cname, | |
name, | |||
type, | |||
val | |||
) |
#define STATIC_ATTRIB_STRZONE | ( | cname, | |
name, | |||
type, | |||
val | |||
) |
#define STATIC_METHOD | ( | cname, | |
name, | |||
prototype | |||
) | prototype METHOD_REFERENCE(cname, name) |
#define SUPER | ( | cname | ) | (cname##_vtbl.vtblbase) |
Definition at line 219 of file oo.qh.
Referenced by BorderImage_draw(), BorderImage_recalcPositionWithText(), BorderImage_resizeNotify(), buff_Inferno_CalculateTime(), Button_configureButton(), Button_draw(), Button_resizeNotify(), CheckBox_draw(), CheckBox_toString(), Container_draw(), Container_resizeNotifyLie(), Dialog_keyDown(), Image_draw(), Image_resizeNotify(), InputBox_configureInputBox(), InputBox_resizeNotify(), InputBox_setText(), InputContainer_focusLeave(), InputContainer_keyDown(), InputContainer_mouseDrag(), InputContainer_mouseMove(), InputContainer_mouseRelease(), InputContainer_resizeNotify(), Label_draw(), Label_resizeNotify(), ListBox_draw(), ListBox_resizeNotify(), MainWindow_draw(), MapList_StringFilterBox_keyDown(), ModalController_addItem(), ModalController_draw(), Nexposee_addItem(), Nexposee_draw(), Nexposee_focusEnter(), Nexposee_keyDown(), Nexposee_keyUp(), Nexposee_mouseDrag(), Nexposee_mouseMove(), Nexposee_mouseRelease(), Slider_configureSliderVisuals(), Slider_draw(), Slider_resizeNotify(), TextSlider_setValueFromIdentifier_allowAnim(), XonoticCampaignList_draw(), XonoticCampaignList_keyDown(), XonoticCampaignList_resizeNotify(), XonoticCampaignList_setSelected(), XonoticCharmap_keyDown(), XonoticCharmap_resizeNotify(), XonoticColorButton_draw(), XonoticColorpicker_draw(), XonoticColorpickerString_draw(), XonoticCreditsList_draw(), XonoticCreditsList_keyDown(), XonoticCreditsList_resizeNotify(), XonoticCrosshairPicker_cellSelect(), XonoticCrosshairPicker_configureXonoticCrosshairPicker(), XonoticCrosshairPreview_draw(), XonoticCvarList_keyDown(), XonoticCvarList_mouseRelease(), XonoticCvarList_resizeNotify(), XonoticCvarList_setSelected(), XonoticCvarsDialog_showNotify(), XonoticDemoList_keyDown(), XonoticDemoList_resizeNotify(), XonoticDialog_configureDialog(), XonoticGametypeList_draw(), XonoticGametypeList_keyDown(), XonoticGametypeList_resizeNotify(), XonoticGametypeList_setSelected(), XonoticHUDSkinList_draw(), XonoticHUDSkinList_keyDown(), XonoticHUDSkinList_resizeNotify(), XonoticInputBox_keyDown(), XonoticInputBox_loadCvars(), XonoticInputBox_setText(), XonoticKeyBinder_keyDown(), XonoticKeyBinder_resizeNotify(), XonoticKeyBinder_setSelected(), XonoticLanguageList_keyDown(), XonoticLanguageList_loadCvars(), XonoticLanguageList_resizeNotify(), XonoticLanguageList_setSelected(), XonoticListBox_resizeNotify(), XonoticMapList_draw(), XonoticMapList_keyDown(), XonoticMapList_resizeNotify(), XonoticMutatorsDialog_close(), XonoticMutatorsDialog_showNotify(), XonoticPicker_draw(), XonoticPicmipSlider_draw(), XonoticPlayerList_resizeNotify(), XonoticPlayerModelSelector_resizeNotify(), XonoticPlayList_draw(), XonoticPlayList_keyDown(), XonoticPlayList_mouseDrag(), XonoticPlayList_resizeNotify(), XonoticProfileTab_draw(), XonoticRadioButton_draw(), XonoticRegisteredSettingsList_getTooltip_cb(), XonoticResolutionSlider_draw(), XonoticRootDialog_showNotify(), XonoticScreenshotImage_draw(), XonoticScreenshotImage_resizeNotify(), XonoticScreenshotList_draw(), XonoticScreenshotList_keyDown(), XonoticScreenshotList_resizeNotify(), XonoticScreenshotList_setSelected(), XonoticScreenshotViewerDialog_close(), XonoticScreenshotViewerDialog_keyDown(), XonoticServerList_draw(), XonoticServerList_focusEnter(), XonoticServerList_keyDown(), XonoticServerList_mouseMove(), XonoticServerList_resizeNotify(), XonoticServerList_setSelected(), XonoticSkinList_keyDown(), XonoticSkinList_resizeNotify(), XonoticSlider_setValue(), XonoticSlider_setValue_noAnim(), XonoticSliderCheckBox_draw(), XonoticSoundList_keyDown(), XonoticSoundList_resizeNotify(), XonoticStatsList_keyDown(), XonoticStatsList_resizeNotify(), XonoticTab_showNotify(), XonoticTeamSelectDialog_showNotify(), XonoticTextBox_resizeNotify(), XonoticTextLabel_draw(), XonoticTextSlider_setValue(), XonoticTextSlider_setValue_noAnim(), XonoticWeaponsList_draw(), XonoticWeaponsList_keyDown(), XonoticWeaponsList_mouseDrag(), and XonoticWeaponsList_resizeNotify().
#define TRANSMUTE | ( | cname, | |
this, | |||
... | |||
) |
#define VTBL | ( | cname, | |
base | |||
) |
CLASS | ( | Object | ) |
Definition at line 318 of file oo.qh.
Referenced by GENERIC_COMMAND().
Definition at line 85 of file oo.qh.
References copyentity(), is_pure, and make_impure.
Referenced by CSQC_Ent_Update(), and STATIC_INIT().
ACCUMULATE void ONREMOVE | ( | entity | this | ) |
void RegisterClasses | ( | ) |
Definition at line 280 of file oo.qh.
Referenced by STATIC_INIT().
STATIC_INIT | ( | clearentity | ) |
Definition at line 81 of file oo.qh.
References clearentity(), and new_pure.
STATIC_INIT | ( | RegisterClasses | ) |
Definition at line 281 of file oo.qh.
References RegisterClasses().
void | ( | entity | this | ) |
bool pure_data |
Definition at line 9 of file oo.qh.
Referenced by reset_map().
string sourceLoc |
Location entity was spawned from in source.
Definition at line 21 of file oo.qh.
Referenced by __spawn(), CSQC_Ent_Update(), and unref().