Add basic vocalizations to chase creatures

This commit is contained in:
2021-11-18 01:46:37 +00:00
parent 5949ad2b3d
commit f6d5d5a201
34 changed files with 525 additions and 329 deletions
+10 -1
View File
@@ -218,11 +218,19 @@ data Creature = Creature
, _crMeleeCooldown :: !Int
, _crPerception :: PerceptionState
, _crMemory :: MemoryState
, _crVocalization :: Vocalization
, _crFaction :: Faction
, _crGroup :: CrGroup
, _crIntention :: Intention
, _crMvType :: CrMvType
}
data Vocalization
= Mute
| Vocalization
{_vcSound :: SoundID
,_vcMaxCoolDown :: Int
,_vcCoolDown :: Int
}
data Intention = Intention
{ _targetCr :: Maybe Creature
, _mvToPoint :: Maybe Point2
@@ -649,7 +657,7 @@ data Impulse
| DropItem
-- | PickupNearby Int
-- | UseWorldObject Int
-- | Bark -- placeholder for various communication types
| Bark SoundID -- placeholder for various communication types
-- | UseIntrinsicAbility
| Melee Int
| ChangePosture Posture
@@ -820,3 +828,4 @@ makeLenses ''Machine
makeLenses ''MachineType
makeLenses ''Zone
makeLenses ''ItemDimension
makeLenses ''Vocalization