42class TargetList :
public Class
45 CLASS_PROTOTYPE(TargetList);
53 TargetList(
const str& tname);
55 void AddEntity(Listener *ent);
56 void AddEntityAt(Listener *ent,
int i);
57 int GetEntityIndex(Listener *ent);
58 void RemoveEntity(Listener *ent);
63class con_set_Entry<const_str, ConSimple>
65 friend con_set<const_str, ConSimple>;
66 friend con_set_enum<const_str, ConSimple>;
76 void *
operator new(
size_t size) {
return con_set<const_str, ConSimple>::NewEntry(size); }
78 void operator delete(
void *ptr) { con_set<const_str, ConSimple>::DeleteEntry(ptr); }
84 arc.ArchiveUnsigned(&key);
85 arc.ArchiveObjectPosition((LightClass *)&value);
88 arc.ArchiveInteger(&num);
91 num = value.NumObjects();
92 arc.ArchiveInteger(&num);
96 const_str& GetKey() {
return key; }
98 void SetKey(
const const_str& newKey) { key = newKey; }
101class World :
public Entity
104 qboolean world_dying;
109 float farplane_distance;
111 Vector farplane_color;
112 qboolean farplane_cull;
113 float skybox_farplane;
114 qboolean render_terrain;
116 float farclip_override;
117 Vector farplane_color_override;
118 float animated_farplane_start;
119 float animated_farplane_end;
120 float animated_farplane_start_z;
121 float animated_farplane_end_z;
122 float animated_farplane_bias_start;
123 float animated_farplane_bias_end;
124 float animated_farplane_bias_start_z;
125 float animated_farplane_bias_end_z;
126 Vector animated_farplane_color_start;
127 Vector animated_farplane_color_end;
128 float animated_farplane_color_start_z;
129 float animated_farplane_color_end_z;
136 float m_fAIVisionDistance;
142 CLASS_PROTOTYPE(World);
147 void AddTargetEntity(SimpleEntity *ent);
148 void AddTargetEntityAt(SimpleEntity *ent,
int index);
149 void RemoveTargetEntity(SimpleEntity *ent);
151 void FreeTargetList();
153 SimpleEntity *GetNextEntity(str targetname, SimpleEntity *ent);
154 Listener *GetScriptTarget(str targetname);
155 Listener *GetTarget(str targetname,
bool quiet);
156 int GetTargetnameIndex(SimpleEntity *ent);
158 TargetList *GetExistingTargetList(
const str& targetname);
161 void SetFarClipOverride(Event *ev);
162 void SetFarPlaneColorOverride(Event *ev);
163 void SetSoundtrack(Event *ev);
164 void SetGravity(Event *ev);
165 void SetNextMap(Event *ev);
166 void SetMessage(Event *ev);
167 void SetWaterColor(Event *ev);
168 void SetWaterAlpha(Event *ev);
169 void SetLavaColor(Event *ev);
170 void SetLavaAlpha(Event *ev);
171 void GetFarPlane_Color(Event *ev);
172 void SetFarPlane_Color(Event *ev);
173 void GetFarPlaneBias(Event *ev);
174 void SetFarPlaneBias(Event *ev);
175 void SetFarPlane_Cull(Event *ev);
176 void GetSkyboxFarplane(Event *ev);
177 void SetSkyboxFarplane(Event *ev);
178 void SetAnimatedFarplaneColor(Event *ev);
179 void SetAnimatedFarplane(Event *ev);
180 void SetAnimatedFarplaneBias(Event *ev);
181 void UpdateAnimatedFarplane(Event *ev);
182 void GetRenderTerrain(Event *ev);
183 void SetRenderTerrain(Event *ev);
184 void GetSkyboxSpeed(Event *ev);
185 void SetSkyboxSpeed(Event *ev);
186 void GetFarPlane(Event *ev);
187 void SetFarPlane(Event *ev);
188 void SetSkyAlpha(Event *ev);
189 void SetSkyPortal(Event *ev);
190 void SetNumArenas(Event *ev);
191 void SetAIVisionDistance(Event *ev);
192 void SetNorthYaw(Event *ev);
193 void UpdateConfigStrings(
void);
194 void UpdateFog(
void);
195 void UpdateSky(
void);
197 void Archive(
Archiver& arc)
override;
200 const Vector& GetMinBounds()
const;
201 const Vector& GetMaxBounds()
const;
202 float GetRadius()
const;