Add debug to copy to clipboard any clicked-on creature

This commit is contained in:
2026-05-04 21:17:22 +01:00
parent 6b3d75cbb2
commit 5d5d0a539b
13 changed files with 212 additions and 207 deletions
+4 -7
View File
@@ -17,8 +17,8 @@ data ActionPlan
| ActionPlan
{ -- _apImpulse :: [Impulse] -- done per frame
_apAction :: Action -- updated per frame, likely persist across frames
, _apStrategy :: Strategy -- current strategy
, _apGoal :: [Goal] -- particular ordered goals
, _apStrategy :: Strategy
, _apGoal :: Goal
}
--deriving (Eq, Ord, Show, Read) --Generic, Flat)
deriving (Eq, Ord, Show) --Generic, Flat)
@@ -45,7 +45,7 @@ data Impulse
| ChangePosture Posture
| MakeSound SoundID
| ChangeStrategy Strategy
| AddGoal Goal
-- | AddGoal Goal
| ImpulseUseTarget { _impulseUseTarget :: CrImp }
| ImpulseNothing
| UpdateRandGen
@@ -121,7 +121,7 @@ data Action
}
| LeadTarget { _leadTargetBy :: Point2 }
| NoAction
| StartSentinelPost
-- | StartSentinelPost
-- | UseSelf { _useSelf :: CrAc }
-- | ArbitraryAction {_arbitraryAction :: CrWdAc}
-- | Repeatedly perform impulses alongside a main action until the main action terminates
@@ -145,11 +145,8 @@ data Strategy
| LookAround
| Wander
| CloseToMelee {_meleeTarget :: Int}
| SetStrategyAction Strategy Action
| GetTo Point2
-- | Reload
| Flee
-- | MeleeStrike
| Search
| SearchTimed {_searchTimer :: Int}
| ReturnToHive