UFO: Alien Invasion
Toggle main menu visibility
Loading...
Searching...
No Matches
g_reaction.h
Go to the documentation of this file.
1
6
7
/*
8
Copyright (C) 2002-2025 UFO: Alien Invasion.
9
10
This program is free software; you can redistribute it and/or
11
modify it under the terms of the GNU General Public License
12
as published by the Free Software Foundation; either version 2
13
of the License, or (at your option) any later version.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
19
See the GNU General Public License for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with this program; if not, write to the Free Software
23
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
25
*/
26
27
#pragma once
28
29
#include "
g_local.h
"
30
31
void
G_ReactionFirePreShot
(
const
Actor
* target,
const
int
fdTime);
32
void
G_ReactionFirePostShot
(
Actor
* target);
33
void
G_ReactionFireReset
(
int
team);
34
void
G_ReactionFireNotifyClientStartMove
(
const
Actor
* target);
35
void
G_ReactionFireNotifyClientEndMove
(
const
Actor
* target);
36
void
G_ReactionFireSettingsUpdate
(
Actor
* actor,
fireDefIndex_t
fmIdx,
actorHands_t
hand,
const
objDef_t
* od);
37
void
G_ReactionFireNotifyClientRFAborted
(
const
Actor
* shooter,
const
Edict
* target,
int
step);
38
bool
G_ReactionFireSettingsReserveTUs
(
Actor
* ent);
39
bool
G_ReactionFireOnMovement
(
Actor
* target,
int
step);
40
void
G_ReactionFireOnEndTurn
(
void
);
41
void
G_ReactionFireOnDead
(
const
Actor
* target);
42
void
G_ReactionFireTargetsInit
(
void
);
43
void
G_ReactionFireTargetsCreate
(
const
Edict
* shooter);
44
void
G_ReactionFireTargetsDestroy
(
const
Edict
* shooter);
Actor
An Edict of type Actor.
Definition
g_edict.h:348
Edict
Definition
g_edict.h:45
g_local.h
Local definitions for game module.
G_ReactionFireSettingsUpdate
void G_ReactionFireSettingsUpdate(Actor *actor, fireDefIndex_t fmIdx, actorHands_t hand, const objDef_t *od)
Updates the reaction fire settings in case something was moved into a hand or from a hand that would ...
Definition
g_reaction.cpp:555
G_ReactionFireTargetsInit
void G_ReactionFireTargetsInit(void)
free function to initialize the reaction fire table for all entities.
Definition
g_reaction.cpp:427
G_ReactionFireOnMovement
bool G_ReactionFireOnMovement(Actor *target, int step)
Called when 'target' moves, possibly triggering or resolving reaction fire.
Definition
g_reaction.cpp:962
G_ReactionFireNotifyClientEndMove
void G_ReactionFireNotifyClientEndMove(const Actor *target)
Definition
g_reaction.cpp:1081
G_ReactionFireTargetsCreate
void G_ReactionFireTargetsCreate(const Edict *shooter)
free function to create a table of reaction fire targets for the given edict.
Definition
g_reaction.cpp:436
G_ReactionFireNotifyClientRFAborted
void G_ReactionFireNotifyClientRFAborted(const Actor *shooter, const Edict *target, int step)
Definition
g_reaction.cpp:1086
G_ReactionFireNotifyClientStartMove
void G_ReactionFireNotifyClientStartMove(const Actor *target)
Definition
g_reaction.cpp:1075
G_ReactionFirePreShot
void G_ReactionFirePreShot(const Actor *target, const int fdTime)
Called when 'target' is about to shoot, this forces a 'draw' to decide who gets the first shot.
Definition
g_reaction.cpp:994
G_ReactionFireOnEndTurn
void G_ReactionFireOnEndTurn(void)
Called at the end of turn, all outstanding reaction fire is resolved.
Definition
g_reaction.cpp:1054
G_ReactionFireTargetsDestroy
void G_ReactionFireTargetsDestroy(const Edict *shooter)
free function to destroy the table of reaction fire targets for the given edict.
Definition
g_reaction.cpp:445
G_ReactionFirePostShot
void G_ReactionFirePostShot(Actor *target)
Called after 'target' has fired, this might trigger more reaction fire or resolve outstanding reactio...
Definition
g_reaction.cpp:1042
G_ReactionFireReset
void G_ReactionFireReset(int team)
Guess! Reset all "shaken" states on end of turn?
Definition
g_reaction.cpp:1066
G_ReactionFireSettingsReserveTUs
bool G_ReactionFireSettingsReserveTUs(Actor *ent)
Set the reaction fire TU reservation for an actor.
Definition
g_reaction.cpp:665
G_ReactionFireOnDead
void G_ReactionFireOnDead(const Actor *target)
Removes the given target from the reaction fire lists.
Definition
g_reaction.cpp:1030
fireDefIndex_t
int32_t fireDefIndex_t
Definition
inv_shared.h:78
actorHands_t
actorHands_t
Definition
inv_shared.h:626
objDef_t
Defines all attributes of objects used in the inventory.
Definition
inv_shared.h:264
src
game
g_reaction.h
Generated on __DATE__ __TIME__ for UFO: Alien Invasion by
1.17.0