]> git.pond.sub.org Git - empserver/blobdiff - src/lib/global/plane.c
Update copyright notice
[empserver] / src / lib / global / plane.c
index e64e78a8a560c301455aae32c9bf9a10f8572b9f..82a08305bf5674640f3a71686aa4010299b9dc92 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -26,7 +26,7 @@
  *  ---
  *
  *  plane.c: Plane characteristics
- * 
+ *
  *  Known contributors to this file:
  *     Dave Pare, 1986
  *     Jeff Bailey
@@ -84,3 +84,33 @@ pl_load(struct plchrstr *pcp, int tech)
 {
     return PLN_LOAD(pcp->pl_load, MAX(0, tech - pcp->pl_tech));
 }
+
+int
+pln_att(struct plnstr *pp)
+{
+    return pl_att(plchr + pp->pln_type, pp->pln_tech);
+}
+
+int
+pln_def(struct plnstr *pp)
+{
+    return pl_def(plchr + pp->pln_type, pp->pln_tech);
+}
+
+int
+pln_acc(struct plnstr *pp)
+{
+    return pl_acc(plchr + pp->pln_type, pp->pln_tech);
+}
+
+int
+pln_range_max(struct plnstr *pp)
+{
+    return pl_range(plchr + pp->pln_type, pp->pln_tech);
+}
+
+int
+pln_load(struct plnstr *pp)
+{
+    return pl_load(plchr + pp->pln_type, pp->pln_tech);
+}