Non-convex chasms
This commit is contained in:
@@ -58,11 +58,18 @@ data PSType
|
||||
| PutWorldUpdate (Int -> PlacementSpot -> GenWorld -> GenWorld) -- the Int is the roomid
|
||||
| PutNothing
|
||||
| PutID {_putID :: Int}
|
||||
| PutChasm {_putChasmPoly :: [Point2]}
|
||||
| PutChasm {_putChasmChasms :: [[Point2]], _putChasmCliffs :: [[Point2]]}
|
||||
-- the chasms should be a convex partition of the cliffs.
|
||||
-- Chasm and cliff polygons are orientated anticlockwise, so platforms
|
||||
-- within a chasm will appear as a clockwise oriented list of points
|
||||
-- in _putChasmCliffs.
|
||||
| PutLabel {_putLabel :: String} -- currently not actually put anywhere
|
||||
-- just used for later inspection as top level
|
||||
-- of a continuing placement in a room placement list
|
||||
|
||||
putConvexChasm :: [Point2] -> PSType
|
||||
putConvexChasm ps = PutChasm [ps] [ps]
|
||||
|
||||
instance ShortShow PSType where
|
||||
shortShow PutCrit {} = "PutCrit"
|
||||
shortShow PutMachine {} = "PutMachine"
|
||||
|
||||
Reference in New Issue
Block a user