Separate out input datatype
This commit is contained in:
@@ -194,7 +194,7 @@ drawCollisionTest cfig w =
|
||||
<> foldMap (drawZoneCol yellow crZoneSize . zoneOfPoint crZoneSize) (yIntercepts' crZoneSize a b)
|
||||
<> foldMap (drawLabCrossCol cfig cam blue) (xIntercepts crZoneSize a b)
|
||||
where
|
||||
(a, b) = _lrLine w
|
||||
(a, b) = _lrLine (_input w)
|
||||
cam = w ^. cWorld . lWorld . camPos
|
||||
|
||||
drawCreatureDisplayTexts :: World -> Picture
|
||||
@@ -210,8 +210,8 @@ drawPathBetween w =
|
||||
where
|
||||
nodepos = (`getNodePos` w)
|
||||
nodelist = makePathBetween sp ep w
|
||||
sp = _lSelect w
|
||||
ep = _rSelect w
|
||||
sp = _lSelect (_input w)
|
||||
ep = _rSelect (_input w)
|
||||
|
||||
--drawNodesNearSelect :: World -> Picture
|
||||
--drawNodesNearSelect w =
|
||||
@@ -229,7 +229,7 @@ drawInspectWalls w =
|
||||
IM.elems $ w ^. cWorld . lWorld . walls
|
||||
)
|
||||
where
|
||||
(a, b) = _lLine w
|
||||
(a, b) = _lLine (_input w)
|
||||
|
||||
drawInspectWall :: World -> Wall -> Picture
|
||||
drawInspectWall w wl =
|
||||
@@ -262,8 +262,8 @@ drawWorldSelect w =
|
||||
color cyan (line [a, b])
|
||||
<> color magenta (line [c, d])
|
||||
where
|
||||
(a, b) = _lLine w
|
||||
(c, d) = _rLine w
|
||||
(a, b) = _lLine (_input w)
|
||||
(c, d) = _rLine (_input w)
|
||||
|
||||
drawFarWallDetect :: World -> Picture
|
||||
drawFarWallDetect w =
|
||||
|
||||
Reference in New Issue
Block a user