Xonotic
self.qh File Reference
#include "macro.qh"
+ Include dependency graph for self.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _SELFWRAP_GET(T, e)   (RVALUE, (e).__##T)
 
#define _SELFWRAP_SET(T, e, f)   ((e).__##T = (f))
 
#define ChangeYaw(e, ...)   (__self = (e), builtin_ChangeYaw(__VA_ARGS__))
 
#define checkclient(e, ...)   (__self = (e), builtin_checkclient(__VA_ARGS__))
 
#define droptofloor(e, ...)   (__self = (e), builtin_droptofloor(__VA_ARGS__))
 
#define ENGINE_EVENT()   const entity this = __self
 
#define error(...)   (__self = (NULL), builtin_error(__VA_ARGS__))
 
#define getSendEntity(e)   SELFWRAP_GET(SendEntity, e)
 
#define getthink(e)   SELFWRAP_GET(think, e)
 
#define movetogoal(e, ...)   (__self = (e), builtin_movetogoal(__VA_ARGS__))
 
#define self   (RVALUE, self)
 
#define self   (this, self)
 
#define self   (RVALUE, this)
 
#define SELFPARAM()   noref const entity this = self
 
#define SELFPARAM()   const entity this = __self
 
#define SELFWRAP(T, R, oldargs, args, forward)
 
#define SELFWRAP_GET(T, e)   (RVALUE, (e).self##T)
 
#define SELFWRAP_SET(T, e, f)   (_selftemp = (e), _selftemp.__##T = ((f) ? T##_self : func_null), _selftemp.self##T = (f))
 
#define setcamera_transform(e, f)   SELFWRAP_SET(camera_transform, e, f)
 
#define setpredraw(e, f)   SELFWRAP_SET(predraw, e, f)
 
#define setself(s)   (__self = s)
 
#define setSendEntity(e, f)   SELFWRAP_SET(SendEntity, e, f)
 
#define setthink(e, f)   SELFWRAP_SET(think, e, f)
 
#define walkmove(e, ...)   (__self = (e), builtin_walkmove(__VA_ARGS__))
 
#define WITHSELF(value, block)   WITH(entity, __self, value, (RVALUE, block))
 

Functions

 ALIAS ("self") entity __self
 
 SELFWRAP (think, void,(),(entity this),(this)) SELFWRAP(predraw
 
 SELFWRAP (camera_transform, vector,(vector org, vector ang),(entity this, vector org, vector ang),(this, org, ang)) SELFWRAP(SendEntity
 return false to remove from the client More...
 

Variables

noref entity _selftemp
 
 bool
 
entity int sendflags
 
entity this
 
entity to
 
 void = #432
 

Macro Definition Documentation

◆ _SELFWRAP_GET

#define _SELFWRAP_GET (   T,
 
)    (RVALUE, (e).__##T)

Definition at line 64 of file self.qh.

◆ _SELFWRAP_SET

#define _SELFWRAP_SET (   T,
  e,
 
)    ((e).__##T = (f))

Definition at line 62 of file self.qh.

◆ ChangeYaw

#define ChangeYaw (   e,
  ... 
)    (__self = (e), builtin_ChangeYaw(__VA_ARGS__))

Definition at line 100 of file self.qh.

◆ checkclient

#define checkclient (   e,
  ... 
)    (__self = (e), builtin_checkclient(__VA_ARGS__))

Definition at line 101 of file self.qh.

◆ droptofloor

#define droptofloor (   e,
  ... 
)    (__self = (e), builtin_droptofloor(__VA_ARGS__))

Definition at line 103 of file self.qh.

◆ ENGINE_EVENT

#define ENGINE_EVENT ( )    const entity this = __self

Definition at line 26 of file self.qh.

◆ error

#define error (   ...)    (__self = (NULL), builtin_error(__VA_ARGS__))

Definition at line 105 of file self.qh.

◆ getSendEntity

#define getSendEntity (   e)    SELFWRAP_GET(SendEntity, e)

◆ getthink

◆ movetogoal

#define movetogoal (   e,
  ... 
)    (__self = (e), builtin_movetogoal(__VA_ARGS__))

Definition at line 106 of file self.qh.

◆ self [1/3]

#define self   (RVALUE, self)

Definition at line 37 of file self.qh.

◆ self [2/3]

#define self   (this, self)

Definition at line 37 of file self.qh.

◆ self [3/3]

#define self   (RVALUE, this)

Definition at line 37 of file self.qh.

◆ SELFPARAM [1/2]

#define SELFPARAM ( )    noref const entity this = self

Definition at line 25 of file self.qh.

◆ SELFPARAM [2/2]

#define SELFPARAM ( )    const entity this = __self

Definition at line 25 of file self.qh.

◆ SELFWRAP

#define SELFWRAP (   T,
  R,
  oldargs,
  args,
  forward 
)
Value:
.R oldargs T; \
noref .R oldargs __##T = T; \
.R args self##T; \
R T##_self oldargs { ENGINE_EVENT(); return this.self##T forward; }
#define ENGINE_EVENT()
Definition: self.qh:26

Definition at line 51 of file self.qh.

◆ SELFWRAP_GET

#define SELFWRAP_GET (   T,
 
)    (RVALUE, (e).self##T)

Definition at line 60 of file self.qh.

◆ SELFWRAP_SET

#define SELFWRAP_SET (   T,
  e,
 
)    (_selftemp = (e), _selftemp.__##T = ((f) ? T##_self : func_null), _selftemp.self##T = (f))

Definition at line 58 of file self.qh.

◆ setcamera_transform

#define setcamera_transform (   e,
 
)    SELFWRAP_SET(camera_transform, e, f)

◆ setpredraw

#define setpredraw (   e,
 
)    SELFWRAP_SET(predraw, e, f)

Definition at line 84 of file self.qh.

Referenced by Item_PreDraw(), and NET_HANDLE().

◆ setself

#define setself (   s)    (__self = s)

Definition at line 16 of file self.qh.

◆ setSendEntity

#define setSendEntity (   e,
 
)    SELFWRAP_SET(SendEntity, e, f)

◆ setthink

#define setthink (   e,
 
)    SELFWRAP_SET(think, e, f)

Referenced by _StartItem(), Announcer_Gamestart(), Ban_LoadBans(), buff_Init(), buffs_BuffModel_Spawn(), CheatCommand(), CL_SpawnWeaponentity(), ClientInit_Spawn(), ClientKill_Silent(), ClientKill_TeamChange(), CommonCommand_timeout(), conveyor_think(), CopyBody(), CopyBody_Think(), ctf_FlagSetup(), Damage(), dom_controlpoint_setup(), dom_spawnpoint(), door_hit_top(), door_reset(), DropBall(), dropclient_schedule(), dumpnode(), FireGrapplingHook(), Freeze(), func_ladder_think(), GameCommand_make_mapinfo(), GENERIC_COMMAND(), GiveBall(), GoalTouch(), GrapplingHook_Stop(), InitBall(), Item_Reset(), Item_Respawn(), Item_ScheduleRespawnIn(), ka_DropEvent(), ka_Initialize(), ka_RespawnBall(), ka_TouchEvent(), kh_Initialize(), kh_Key_Spawn(), Local_Notification_WOVA(), make_mapinfo_Think(), Monster_Appear_Check(), Monster_Damage(), Monster_Dead(), Monster_Dead_Damage(), Monster_Dead_Fade(), Monster_Delay(), Monster_Delay_Action(), Monster_Spawn_Setup(), Monster_Think(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Reset(), ons_ControlPoint_Setup(), ons_DelayedLinkSetup(), ons_GeneratorDamage(), ons_GeneratorReset(), ons_GeneratorSetup(), onslaught_controlpoint_icon_link(), pathlib_deletepath(), pathlib_mknode(), pathlib_walknode(), pathlib_waypointpath_autostep(), PingPLReport_Spawn(), plat_hit_top(), PlayerDamage(), Portal_MakeBrokenPortal(), Portal_MakeInPortal(), Portal_MakeOutPortal(), Portal_MakeWaitingPortal(), Portal_RemoveLater(), Portal_Spawn(), PostInit(), powerups_DropItem(), Promise_sleep(), PutObserverInServer(), PutPlayerInServer(), RandomSeed_Spawn(), ReadyRestart_force(), relocate_spawnpoint(), ResetBall(), round_handler_FirstThink(), round_handler_Spawn(), sandbox_ObjectSpawn(), SpawnBall(), spawnfunc(), STATIC_INIT(), SUB_CalcAngleMove(), SUB_CalcMove(), SUB_CalcMove_Bezier(), SUB_CalcMove_controller_think(), SUB_SetFade(), SUB_SetFade_Think(), SUB_UseTargets_Ex(), target_give_init(), TeamBalance_CheckAllowedTeams(), train_next(), train_wait(), trigger_push_touch(), UpdateChatBubble(), vehicle_initialize(), vehicle_tossgib(), vehicle_use(), vehicles_damage(), vehicles_projectile(), vehicles_projectile_damage(), vehicles_return(), vehicles_setreturn(), vehicles_showwp(), vehicles_spawn(), W_Model(), W_Nexball_Attack2(), W_PrepareExplosionByDamage(), W_ThrowNewWeapon(), WarpZone_Projectile_Touch(), WarpZone_RefSys_CheckCreate(), WarpZone_Teleport(), waypoint_schedulerelink(), and waypoint_think().

◆ walkmove

#define walkmove (   e,
  ... 
)    (__self = (e), builtin_walkmove(__VA_ARGS__))

Definition at line 107 of file self.qh.

◆ WITHSELF

#define WITHSELF (   value,
  block 
)    WITH(entity, __self, value, (RVALUE, block))

Definition at line 17 of file self.qh.

Referenced by DropToFloor_Handler().

Function Documentation

◆ ALIAS()

ALIAS ( "self"  )

◆ SELFWRAP() [1/2]

SELFWRAP ( think  ,
void  ,
()  ,
(entity this ,
(this  
)

◆ SELFWRAP() [2/2]

SELFWRAP ( camera_transform  ,
vector  ,
(vector org, vector ang)  ,
(entity this, vector org, vector ang)  ,
(this, org, ang)   
)

return false to remove from the client

Variable Documentation

◆ _selftemp

noref entity _selftemp

Definition at line 57 of file self.qh.

◆ bool

bool

Definition at line 96 of file self.qh.

◆ sendflags

entity int entity entity int sendflags

Definition at line 96 of file self.qh.

Referenced by conveyor_think(), DelayThink(), NET_HANDLE(), STATIC_INIT(), and WarpZone_Touch().

◆ this

Definition at line 83 of file self.qh.

◆ to

◆ void

void = #432

Definition at line 83 of file self.qh.

Referenced by GENERIC_COMMAND(), InitializeEntitiesRun(), and sys_phys_simulate_simple().