2018-08-10 06:58:26 +00:00
|
|
|
module Types.NPCState where
|
|
|
|
|
|
|
|
import Control.Concurrent.MVar (MVar)
|
|
|
|
import Linear (V2)
|
|
|
|
|
|
|
|
data NPCMoveState
|
|
|
|
= NPCWalking
|
|
|
|
{ npcWalkPath :: [V2 Int]
|
|
|
|
}
|
|
|
|
| NPCStanding
|
|
|
|
{ npcStandTime :: Double
|
|
|
|
, npcFuturePath :: MVar [V2 Int]
|
|
|
|
}
|
2018-09-07 21:39:53 +00:00
|
|
|
|
|
|
|
data NPCActionState
|
|
|
|
= ASWork
|
|
|
|
| ASToilet
|
|
|
|
| ASDrink
|
|
|
|
| ASEat
|
|
|
|
| ASRandWalk
|
|
|
|
deriving (Eq)
|
|
|
|
|
|
|
|
data NPCStats = NPCStats
|
2018-09-08 19:40:05 +00:00
|
|
|
{ statAttention :: Double
|
|
|
|
, statBladder :: Double
|
|
|
|
, statThirst :: Double
|
|
|
|
, statHunger :: Double
|
|
|
|
, statFood :: Double
|
|
|
|
, statDrink :: Double
|
2018-09-07 21:39:53 +00:00
|
|
|
}
|