This commit is contained in:
2025-10-15 20:40:16 +01:00
parent fe95bf381b
commit b8006b44cf
5 changed files with 2 additions and 38 deletions
-12
View File
@@ -10,14 +10,6 @@ import Dodge.Path
import Geometry
import Control.Lens
doCrWdWd :: CrWdWd -> Creature -> World -> World
doCrWdWd cww = case cww of
CrWdWdId -> const id
--doIntImp :: IntImp -> Int -> Impulse
--doIntImp ii = case ii of
-- NoIntImp -> const ImpulseNothing
doCrImp :: CrImp -> Creature -> Impulse
doCrImp ci = case ci of
NoCrImp -> const ImpulseNothing
@@ -52,10 +44,6 @@ doCrAc ca = case ca of
--fleeFromTarget :: Creature -> Action
--fleeFromTarget cr = fleeFrom cr (_targetCr (_crIntention cr))
doMP2Ac :: MP2Ac -> Maybe Point2 -> Action
doMP2Ac mp2a = case mp2a of
MP2NoAction -> const ActionNothing
doCrWdAc :: CrWdAc -> Creature -> World -> Action
doCrWdAc cw = case cw of
CrWdBFSThenReturn t -> \cr w -> fromMaybe NoAction $ do