Fix wall bug, refactor placements
This commit is contained in:
@@ -1,23 +1,7 @@
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
{-# LANGUAGE StrictData #-}
|
||||
module Dodge.LevelGen.Data
|
||||
( PSType (..)
|
||||
, PlacementSpot (..)
|
||||
, Placement (..)
|
||||
, sPS
|
||||
-- lenses
|
||||
, placementSpot
|
||||
, psType
|
||||
, psPos
|
||||
, psRot
|
||||
, putID
|
||||
, pwPoly
|
||||
, pwWall
|
||||
, unPutCrit
|
||||
-- , groupPlacementID
|
||||
-- , groupUpdate
|
||||
, idPlacement
|
||||
) where
|
||||
where
|
||||
import Dodge.Data
|
||||
import Picture
|
||||
import Geometry.Data
|
||||
@@ -44,12 +28,12 @@ data PSType = PutCrit {_unPutCrit :: Creature}
|
||||
| PutForeground Shape
|
||||
| PutNothing
|
||||
| PutID { _putID :: Int}
|
||||
-- maybe there is a monadic implementation of this?
|
||||
data PlacementSpot = PS
|
||||
{ _psPos :: Point2
|
||||
, _psRot :: Float
|
||||
, _psType :: PSType
|
||||
}
|
||||
-- maybe there is a monadic implementation of this?
|
||||
data Placement = Placement
|
||||
{ _placementSpot :: PlacementSpot
|
||||
, _idPlacement :: Int -> Maybe Placement
|
||||
|
||||
Reference in New Issue
Block a user