diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-03-01 23:11:31 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-03-01 23:11:31 +0000 |
commit | 1b05eefc7a5a4fb688d7b631529324ca08ed1a16 (patch) | |
tree | 52f5e126b2af0aa519a30040191a1cbdbc12f8e8 /src/Game/Entities/Types.hs | |
parent | 6f9e98cc5cefa9b35f139d3715339d676eff18ed (diff) | |
download | space-plat-hs-1b05eefc7a5a4fb688d7b631529324ca08ed1a16.tar.gz space-plat-hs-1b05eefc7a5a4fb688d7b631529324ca08ed1a16.zip |
Untangle state changes into actions
WIP: still unclear if we really need the IORefs!
Diffstat (limited to 'src/Game/Entities/Types.hs')
-rw-r--r-- | src/Game/Entities/Types.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Game/Entities/Types.hs b/src/Game/Entities/Types.hs index a50ab2d..e22032b 100644 --- a/src/Game/Entities/Types.hs +++ b/src/Game/Entities/Types.hs @@ -4,7 +4,7 @@ module Game.Entities.Types Collision, IsBlocked, Entities (..), - Spawn (..), + Action (..), Entity (..), ) where @@ -28,7 +28,7 @@ data Entities = Entities entities :: [Entity] } -data Spawn = DustEffectSpawn Int Int +data Action = ActionAddDustEffect Int Int | ActionAddBattery | ActionHitPlayer deriving (Show) data Entity = Entity { typ :: Type, @@ -42,5 +42,5 @@ data Entity = Entity sprite :: S.Sprite, update :: Entity -> IO Entity, destroy :: Bool, - spawns :: [Spawn] + actions :: [Action] } |