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:
parent
4db3a68efe
commit
dd16166665
12 changed files with 82 additions and 14 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue