Move creature speed parameters into explicit data
This commit is contained in:
@@ -220,7 +220,15 @@ data Creature = Creature
|
||||
, _crFaction :: Faction
|
||||
, _crGroup :: CrGroup
|
||||
, _crTarget :: Maybe Creature
|
||||
, _crMvType :: CrMvType
|
||||
}
|
||||
data CrMvType
|
||||
= DefCrMvType
|
||||
| ChaseMvType
|
||||
{ _chaseSpeed :: Float
|
||||
, _chaseTurnRad :: Float -> Float
|
||||
, _chaseTurnJit :: Float
|
||||
}
|
||||
data WorldState
|
||||
= DoorNumOpen Int
|
||||
| CrNumAlive Int
|
||||
|
||||
Reference in New Issue
Block a user