summaryrefslogtreecommitdiff
path: root/BlockFactory.h
diff options
context:
space:
mode:
authorJapa2010-04-09 14:24:27 +0000
committerJapa2010-04-09 14:24:27 +0000
commit114df922d3073bd296b38cf522997f520fb17850 (patch)
treec4cf372825118c3663cd77e18c69a6c3b59d070f /BlockFactory.h
parent81aefc8e03ff3f647494012e18bcdc8f33f4de42 (diff)
downloadstonesense-114df922d3073bd296b38cf522997f520fb17850.tar.gz
stonesense-114df922d3073bd296b38cf522997f520fb17850.tar.bz2
stonesense-114df922d3073bd296b38cf522997f520fb17850.tar.xz
updated trunk to the new graphics engine, and the latest DFhack
Diffstat (limited to 'BlockFactory.h')
-rw-r--r--BlockFactory.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/BlockFactory.h b/BlockFactory.h
new file mode 100644
index 0000000..a122dd6
--- /dev/null
+++ b/BlockFactory.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "Block.h"
+
+class BlockFactory
+{
+ uint32_t poolSize;
+ vector<Block*> pool;
+
+public:
+ BlockFactory(void);
+ ~BlockFactory(void);
+ Block* allocateBlock( );
+ void deleteBlock( Block* );
+ uint32_t getPoolSize(){ return poolSize; }
+};
+
+
+
+extern BlockFactory blockFactory; \ No newline at end of file