Commit before trying to add machine footprint
This commit is contained in:
@@ -26,11 +26,14 @@ import Dodge.Data.Machine.Sensor
|
||||
import Dodge.Data.Material
|
||||
import Dodge.Data.ObjectType
|
||||
import Geometry.Data
|
||||
import qualified Data.IntMap.Strict as IM
|
||||
|
||||
data Machine = Machine
|
||||
{ _mcID :: Int
|
||||
, _mcWallIDs :: IS.IntSet
|
||||
, _mcMaterial :: Material
|
||||
, _mcSkin :: Material
|
||||
, _mcFootPrint :: IM.IntMap (Point2,Point2)
|
||||
, _mcPos :: Point2
|
||||
, _mcDir :: Float
|
||||
, _mcHP :: Int
|
||||
@@ -40,8 +43,7 @@ data Machine = Machine
|
||||
}
|
||||
|
||||
data MachineType
|
||||
= McStatic
|
||||
| McTerminal
|
||||
= McTerminal
|
||||
| McDamSensor DamageSensor
|
||||
| McProxSensor ProximitySensor
|
||||
| McTurret {_mctTurret :: Turret, _mctTurretStun :: Int}
|
||||
@@ -52,7 +54,6 @@ data MachineType
|
||||
|
||||
instance ShortShow MachineType where
|
||||
shortShow = \case
|
||||
McStatic -> "McStatic"
|
||||
McTerminal -> "McTerm"
|
||||
McDamSensor {} -> "McDamSen"
|
||||
McProxSensor {} -> "McProxSen"
|
||||
|
||||
Reference in New Issue
Block a user