home · contact · privacy
Make terrain types configurable.
[plomrogue2] / plomrogue / misc.py
index a3f7298348cb1cfc29219f1f54c2c6cdf3980b70..84b0a8a6f512cae596f689c85f0e13fa80613052 100644 (file)
@@ -1,3 +1,15 @@
+class Terrain:
+
+    def __init__(self, character, description, blocks_light=False,
+                 blocks_sound=False, blocks_movement=False):
+        self.character = character
+        self.description = description
+        self.blocks_light = blocks_light
+        self.blocks_sound = blocks_sound
+        self.blocks_movement = blocks_movement
+
+
+
 def quote(string):
     """Quote & escape string so client interprets it as single token."""
     quoted = []