summaryrefslogtreecommitdiff
path: root/target.h
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-09 21:05:46 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-09 21:06:03 +0100
commitb4038deb223e309fe886c71b3765a7e82e65f9bb (patch)
treecf259313fc52a280400b6c1811e2eadb4e1a1bbf /target.h
parent2a76d0662f9494f8469283a7b0fc72c17f40ecf6 (diff)
handle the different type of targets
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'target.h')
-rw-r--r--target.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/target.h b/target.h
new file mode 100644
index 0000000..941b1f6
--- /dev/null
+++ b/target.h
@@ -0,0 +1,16 @@
+#ifndef TARGET_H
+#define TARGET_H
+
+#include <stdbool.h>
+#include "players.h"
+
+struct target_t {
+ bool is_chr;
+
+ union {
+ struct team_t *team;
+ struct character_t *chr;
+ };
+};
+
+#endif /* TARGET_H */