/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* ---
*
* power.h: Definitions for things having to do with the power report.
- *
+ *
* Known contributors to this file:
- *
+ *
*/
#ifndef POWER_H
#define POWER_H
+#include "types.h"
+
struct powstr {
natid p_nation;
float p_sects;
#define getpower(n, p) ef_read(EF_POWER, (n), (p))
#define putpower(n, p) ef_write(EF_POWER, (n), (p))
-#define getpowerp(n) (struct powstr *)ef_ptr(EF_POWER, (n))
+#define getpowerp(n) ((struct powstr *)ef_ptr(EF_POWER, (n)))
#endif