UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
g_trigger.h
Go to the documentation of this file.
1 
6 /*
7 All original material Copyright (C) 2002-2020 UFO: Alien Invasion.
8 
9 Original file from Quake 2 v3.21: quake2-2.31/game/g_spawn.c
10 Copyright (C) 1997-2001 Id Software, Inc.
11 
12 This program is free software; you can redistribute it and/or
13 modify it under the terms of the GNU General Public License
14 as published by the Free Software Foundation; either version 2
15 of the License, or (at your option) any later version.
16 
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 
21 See the GNU General Public License for more details.
22 
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 
27 */
28 
29 #pragma once
30 
31 #include "g_local.h"
32 
33 bool G_TriggerIsInList(Edict* self, Edict* activator);
34 void G_TriggerAddToList(Edict* self, Edict* activator);
35 bool G_TriggerRemoveFromList(Edict* self, Edict* activator);
36 Edict* G_TriggerSpawn(Edict* owner);
37 void Think_NextMapTrigger(Edict* self);
38 void SP_trigger_nextmap(Edict* ent);
39 bool Touch_HurtTrigger(Edict* self, Edict* activator);
40 void SP_trigger_hurt(Edict* ent);
41 void SP_trigger_touch(Edict* ent);
42 void SP_trigger_rescue(Edict* ent);
void SP_trigger_rescue(Edict *ent)
Rescue trigger to mark an actor to be in the rescue zone. Aborting a game would not kill the actors i...
Definition: g_trigger.cpp:375
bool G_TriggerRemoveFromList(Edict *self, Edict *activator)
Removes an activator from the list of recognized edicts.
Definition: g_trigger.cpp:87
void SP_trigger_nextmap(Edict *ent)
Definition: g_trigger.cpp:171
void SP_trigger_touch(Edict *ent)
Touch trigger to call the use function of the attached target.
Definition: g_trigger.cpp:320
void G_TriggerAddToList(Edict *self, Edict *activator)
Adds the activator to the list of recognized edicts for this trigger_touch edict. ...
Definition: g_trigger.cpp:67
Edict * G_TriggerSpawn(Edict *owner)
Definition: g_trigger.cpp:106
Local definitions for game module.
bool G_TriggerIsInList(Edict *self, Edict *activator)
Checks whether the activator of this trigger_touch was already recognized.
Definition: g_trigger.cpp:47
void Think_NextMapTrigger(Edict *self)
Register this think function once you would like to end the match This think function will register t...
Definition: g_trigger.cpp:153
Definition: g_edict.h:45
bool Touch_HurtTrigger(Edict *self, Edict *activator)
Hurt trigger.
Definition: g_trigger.cpp:212
void SP_trigger_hurt(Edict *ent)
Trigger for grid fields if they are under fire.
Definition: g_trigger.cpp:255