Refactor launcherCrit ai

This commit is contained in:
jgk
2021-05-13 14:23:58 +02:00
parent 9b3fbba393
commit 2402e1e868
10 changed files with 133 additions and 233 deletions
+12
View File
@@ -477,6 +477,15 @@ data Impulse
| ChangeStrategy Strategy
| AddGoal Goal
| ArbitraryCreatureImpulse (World -> Creature -> Creature)
| ImpulseUseTargetCID
{_impulseUseTargetCID :: Int -> Impulse
}
| ImpulseUseTarget
{_impulseUseTarget :: Creature -> Impulse
}
| ImpulseUseAheadPos
{_impulseUseAheadPos :: Point2 -> Impulse
}
-- deriving (Eq,Ord,Show)
infixr 9 `WaitThen`
infixr 9 `DoActionThen`
@@ -565,6 +574,9 @@ data Action
| UseTargetCID
{_useTargetCID :: Int -> Action
}
| UseAheadPos
{_useAheadPos :: Point2 -> Action
}
deriving (Generic)
-- deriving (Eq,Ord,Show)
data Strategy