Describe what you see when you walk over items

Every step the character takes, describe the entities at that position
excluding the character.
This commit is contained in:
Griffin Smith 2019-09-20 19:38:16 -04:00
parent 4db3a68efe
commit dd16166665
12 changed files with 82 additions and 14 deletions

View file

@ -24,6 +24,7 @@ data Wall = Wall
instance Entity Wall where
blocksVision _ = True
description _ = "a wall"
instance Arbitrary Wall where
arbitrary = pure Wall
@ -65,3 +66,4 @@ instance Draw Door where
instance Entity Door where
blocksVision = not . view open
description _ = "a door"