naev
0.12.6
src
target.h
1
/*
2
* See Licensing and Copyright notice in naev.h
3
*/
4
#pragma once
5
9
typedef
enum
TargetType_ {
10
TARGET_NONE,
11
TARGET_PILOT,
12
TARGET_WEAPON,
13
TARGET_ASTEROID,
14
} TargetType;
15
19
typedef
struct
Target_ {
20
TargetType type;
/* Target type. */
21
union
{
22
unsigned
int
id;
/* For pilot/weapons. */
23
struct
{
24
int
anchor;
25
int
asteroid;
26
} ast;
/* For asteroids. */
27
} u;
28
}
Target
;
Target
Represents a weapon target.
Definition
target.h:19
Generated by
1.14.0