aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/BonusChestFeature.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/BonusChestFeature.h')
-rw-r--r--Minecraft.World/BonusChestFeature.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Minecraft.World/BonusChestFeature.h b/Minecraft.World/BonusChestFeature.h
new file mode 100644
index 00000000..cd4aca3e
--- /dev/null
+++ b/Minecraft.World/BonusChestFeature.h
@@ -0,0 +1,19 @@
+#pragma once
+#include "Feature.h"
+
+class Random;
+class Level;
+
+class BonusChestFeature : public Feature
+{
+
+private:
+ const WeighedTreasureArray treasureList;
+ const int numRolls;
+
+public:
+ BonusChestFeature(WeighedTreasureArray treasureList, int numRolls);
+
+ virtual bool place(Level *level, Random *random, int x, int y, int z);
+ bool place(Level *level, Random *random, int x, int y, int z, bool force); // 4J added this method with extra force parameter
+};