Add Read/Show instance for Creature

This commit is contained in:
2022-07-22 10:44:54 +01:00
parent 4c5218c633
commit 6b69fc1684
35 changed files with 345 additions and 225 deletions
+9
View File
@@ -0,0 +1,9 @@
module Dodge.RandImpulse where
import Dodge.Data.ActionPlan
import Control.Monad.State
import RandomHelp
doRandImpulse :: RandImpulse -> State StdGen Impulse
doRandImpulse ri = case ri of
RandImpulseList xs -> takeOne xs
RandImpulseCircMove r -> Move <$> randInCirc r