Add action to perform on pathing failure
This commit is contained in:
@@ -67,7 +67,7 @@ data Action
|
||||
{ _targetID :: Int
|
||||
, _targetSeenAt :: Point2
|
||||
}
|
||||
| PathTo { _pathToPoint :: Point2 }
|
||||
| PathTo { _pathToPoint :: Point2, _pathFailAction :: Action }
|
||||
| TurnToPoint { _turnToPoint :: Point2 }
|
||||
| ImpulsesList { _impulsesListList :: [[Impulse]] }
|
||||
| DoImpulses { _doImpulsesList :: [Impulse] }
|
||||
@@ -136,6 +136,7 @@ data Strategy
|
||||
| Investigate
|
||||
| WarningCry
|
||||
| LookAround
|
||||
| Wander
|
||||
| CloseToMelee {_meleeTarget :: Int}
|
||||
| StrategyActions Strategy [Action]
|
||||
| GetTo Point2
|
||||
|
||||
Reference in New Issue
Block a user