(svn r5121) Add forgotten file in r5120
authortron
Mon, 05 Jun 2006 11:28:31 +0000
changeset 3962 c8e21d1c5a6c
parent 3961 e2783f244ac6
child 3963 d7d284c2f1f7
(svn r5121) Add forgotten file in r5120
ship.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ship.h	Mon Jun 05 11:28:31 2006 +0000
@@ -0,0 +1,15 @@
+/* $Id$ */
+
+#include "vehicle.h"
+
+
+static inline bool IsShipInDepot(const Vehicle* v)
+{
+	assert(v->type == VEH_Ship);
+	return v->u.ship.state == 0x80;
+}
+
+static inline bool IsShipInDepotStopped(const Vehicle* v)
+{
+	return IsShipInDepot(v) && v->vehstatus & VS_STOPPED;
+}