![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Functions | |
void | World_ClearLink (link_t *l) |
World_ClearLink is used for new headnodes. | |
void | World_End (world_t *world) |
int | World_EntitiesInBox (world_t *world, const vec3_t requestmins, const vec3_t requestmaxs, int maxlist, prvm_edict_t **list) |
void | World_Init (void) |
void | World_InsertLinkBefore (link_t *l, link_t *before, int entitynumber) |
void | World_LinkEdict (world_t *world, prvm_edict_t *ent, const vec3_t mins, const vec3_t maxs, qbool link_solid_not) |
static void | World_LinkEdict_AreaGrid (world_t *world, prvm_edict_t *ent) |
void | World_PrintAreaStats (world_t *world, const char *worldname) |
void | World_RemoveLink (link_t *l) |
void | World_SetSize (world_t *world, const char *filename, const vec3_t mins, const vec3_t maxs, prvm_prog_t *prog) |
void | World_Shutdown (void) |
void | World_Start (world_t *world) |
void | World_UnlinkAll (world_t *world) |
unlinks all entities (used before reallocation of edicts) | |
void | World_UnlinkEdict (prvm_edict_t *ent) |
World_ClearLink is used for new headnodes.
Definition at line 79 of file world.c.
References link_t::entitynumber, link_t::list, llist_t::next, and llist_t::prev.
Referenced by World_SetSize().
Definition at line 69 of file world.c.
References world.
Referenced by CLVM_reset_cmd(), and SVVM_reset_cmd().
int World_EntitiesInBox | ( | world_t * | world, |
const vec3_t | requestmins, | ||
const vec3_t | requestmaxs, | ||
int | maxlist, | ||
prvm_edict_t ** | list ) |
Definition at line 188 of file world.c.
References AREA_GRID, BoxesOverlap, link_t::entitynumber, floor(), prvm_edict_t::free, int(), link_t::list, List_For_Each_Entry, max, min, llist_t::next, NULL, prvm_prog_t::num_edicts, prvm_edict_t::priv, PRVM_EDICT_NUM, prvm_edict_t::server, VectorCopy, and world.
Referenced by CL_Cache_TraceLineSurfaces(), CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), SV_EntitiesInBox(), VM_CL_findbox(), and VM_CL_findradius().
Definition at line 38 of file world.c.
References Collision_Init().
Referenced by Host_Init().
Definition at line 90 of file world.c.
References link_t::entitynumber, link_t::list, and List_Add_Tail().
Referenced by World_LinkEdict_AreaGrid().
void World_LinkEdict | ( | world_t * | world, |
prvm_edict_t * | ent, | ||
const vec3_t | mins, | ||
const vec3_t | maxs, | ||
qbool | link_solid_not ) |
Definition at line 320 of file world.c.
References prvm_prog_t::edicts, prvm_edict_t::free, maxs, mins, prvm_edict_t::priv, PRVM_serveredictfloat, prvm_edict_t::server, solid, SOLID_NOT, VectorCopy, world, World_LinkEdict_AreaGrid(), and World_UnlinkEdict().
Referenced by CL_LinkEdict(), and SV_LinkEdict().
|
static |
Definition at line 280 of file world.c.
References AREA_GRID, Con_Printf(), prvm_prog_t::edicts, ENTITYGRIDAREAS, floor(), int(), prvm_prog_t::max_edicts, prvm_edict_t::priv, PRVM_EDICT_NUM, PRVM_NUM_FOR_EDICT, prvm_edict_t::server, world, and World_InsertLinkBefore().
Referenced by World_LinkEdict().
Definition at line 104 of file world.c.
References Con_Printf(), and world.
Referenced by CL_AreaStats_f(), and SV_AreaStats_f().
Definition at line 85 of file world.c.
References link_t::list, and List_Delete().
Referenced by World_UnlinkEdict().
void World_SetSize | ( | world_t * | world, |
const char * | filename, | ||
const vec3_t | mins, | ||
const vec3_t | maxs, | ||
prvm_prog_t * | prog ) |
Definition at line 118 of file world.c.
References AREA_GRID, AREA_GRIDNODES, Con_DPrintf(), developer_extra, dp_strlcpy, i, cvar_t::integer, max, maxs, mins, sv_areagrid_mingridsize, cvar_t::value, VectorCopy, VectorNegate, world, and World_ClearLink().
Referenced by CL_SetupWorldModel(), and SV_SpawnServer().
Definition at line 59 of file world.c.
References world.
Referenced by CL_SetupWorldModel(), and SV_SpawnServer().
unlinks all entities (used before reallocation of edicts)
Definition at line 159 of file world.c.
References AREA_GRIDNODES, i, link_t::list, List_Entry, llist_t::next, PRVM_EDICT_NUM, world, and World_UnlinkEdict().
Referenced by CLVM_begin_increase_edicts(), SV_Loadgame_f(), and SVVM_begin_increase_edicts().
void World_UnlinkEdict | ( | prvm_edict_t * | ent | ) |
Definition at line 178 of file world.c.
References ENTITYGRIDAREAS, i, prvm_edict_t::priv, prvm_edict_t::server, and World_RemoveLink().
Referenced by CLVM_free_edict(), SVVM_free_edict(), World_LinkEdict(), and World_UnlinkAll().