![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
| struct | link_t |
| struct | world_physics_t |
| struct | world_t |
Macros | |
| #define | AREA_GRID 128 |
| #define | AREA_GRIDNODES (AREA_GRID * AREA_GRID) |
| #define | MOVE_HITMODEL 4 |
| #define | MOVE_MISSILE 2 |
| #define | MOVE_NOMONSTERS 1 |
| #define | MOVE_NORMAL 0 |
| #define | MOVE_WORLDONLY 3 |
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 mins, const vec3_t maxs, int maxlist, struct prvm_edict_s **list) |
| void | World_Init (void) |
| void | World_InsertLinkBefore (link_t *l, link_t *before, int entitynumber) |
| void | World_LinkEdict (world_t *world, struct prvm_edict_s *ent, const vec3_t mins, const vec3_t maxs, qbool link_solid_not) |
| Needs to be called any time an entity changes origin, mins, maxs. | |
| void | World_Physics_ApplyCmd (struct prvm_edict_s *ed, struct edict_odefunc_s *f) |
| void | World_Physics_Frame (world_t *world, double frametime, double gravity) |
| void | World_Physics_RemoveFromEntity (world_t *world, struct prvm_edict_s *ed) |
| void | World_Physics_RemoveJointFromEntity (world_t *world, struct prvm_edict_s *ed) |
| 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, struct prvm_prog_s *prog) |
| called after the world model has been loaded, before linking any entities | |
| 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 (struct prvm_edict_s *ent) |
| call before removing an entity, and before trying to move one, so it doesn't clip against itself | |
| #define AREA_GRID 128 |
Definition at line 34 of file world.h.
Referenced by World_EntitiesInBox(), World_LinkEdict_AreaGrid(), and World_SetSize().
Definition at line 35 of file world.h.
Referenced by World_SetSize(), and World_UnlinkAll().
| #define MOVE_HITMODEL 4 |
Definition at line 32 of file world.h.
Referenced by CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), R_Shadow_BounceGrid_RefractiveIndexAtPoint(), R_Shadow_BounceGrid_TracePhotons_Shot(), Sbar_ShowFPS(), SV_TraceBox(), SV_TraceLine(), and SV_TracePoint().
| #define MOVE_MISSILE 2 |
Definition at line 30 of file world.h.
Referenced by CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), SV_PushEntity(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), and SV_WalkMove().
| #define MOVE_NOMONSTERS 1 |
Definition at line 29 of file world.h.
Referenced by CL_Cache_TraceLineSurfaces(), CL_CheckBottom(), CL_ClientMovement_Physics_Swim(), CL_ClientMovement_UpdateStatus(), CL_LinkNetworkEntity(), CL_NewParticle(), CL_ParticleExplosion(), CL_SpawnDecalParticleForPoint(), CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), PHYS_NudgeOutOfSolid(), PHYS_TestEntityPosition(), R_CompleteLightPoint(), R_MoveExplosion(), R_NewExplosion(), R_Shadow_BounceGrid_RefractiveIndexAtPoint(), R_Shadow_BounceGrid_TracePhotons_Shot(), SV_CheckBottom(), SV_NudgeOutOfSolid_PivotIsKnownGood(), SV_PushEntity(), SV_SetIdealPitch(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), SV_UserFriction(), SV_WalkMove(), and V_CalcRefdefUsing().
| #define MOVE_NORMAL 0 |
Definition at line 28 of file world.h.
Referenced by CL_ClientMovement_Move(), CL_ClientMovement_Physics_Walk(), CL_ClientMovement_Unstick(), CL_ClientMovement_UpdateStatus(), CL_movestep(), CL_Trace_Toss(), R_CanSeeBox(), R_DrawCorona(), R_DrawParticles(), R_Shadow_SelectLightInView(), R_Shadow_SetCursorLocationForView(), SV_Ent_Create_f(), SV_Ent_Remove_f(), SV_movestep(), SV_PushEntity(), SV_Trace_Toss(), SV_WalkMove(), VM_CL_checkbottom(), VM_CL_droptofloor(), VM_SV_aim(), and VM_SV_droptofloor().
| #define MOVE_WORLDONLY 3 |
Definition at line 31 of file world.h.
Referenced by CL_Cache_TraceLineSurfaces(), CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), PHYS_NudgeOutOfSolid(), PHYS_TestEntityPosition(), R_Shadow_BounceGrid_RefractiveIndexAtPoint(), R_Shadow_BounceGrid_TracePhotons_Shot(), SV_PushEntity(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), and SV_WalkMove().
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().
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().
References frametime, and world.
Referenced by CL_NetworkTimeReceived(), and SV_Physics().
References world.
Referenced by CLVM_free_edict(), and SVVM_free_edict().
References world.
Referenced by CLVM_free_edict(), and SVVM_free_edict().
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().
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, 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 | ( | struct prvm_edict_s * | ent | ) |
call before removing an entity, and before trying to move one, so it doesn't clip against itself