src/economy_new.cpp
branchgamebalance
changeset 9881 fbb3eab0e186
child 9888 7cf72895ca8c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/economy_new.cpp	Sun Mar 11 14:02:43 2007 +0000
@@ -0,0 +1,19 @@
+/* $Id$ */
+
+/** @file */
+
+#include "economy_new.h"
+
+/** The global economy */
+CEconomy *_eco;
+
+/**
+ * Starts a new economy. As there can always be only one economy in place,
+ * deletes the one that is currently active
+ */
+void InitializeEconomy()
+{
+	delete _eco;
+	_eco = new CEconomy;
+	assert(_eco != NULL);
+}