License | BSD-3-Clause |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Swarm.Game.State.Initialize
Description
Definition of the record holding all the game-related state, and various related utility functions.
Synopsis
- scenarioToGameState :: ScenarioWith (Maybe ScenarioPath) -> ValidatedLaunchParams -> GameStateConfig -> IO GameState
- pureScenarioToGameState :: ScenarioWith (Maybe ScenarioPath) -> Seed -> TimeSpec -> Maybe CodeToRun -> GameStateConfig -> GameState
Documentation
scenarioToGameState :: ScenarioWith (Maybe ScenarioPath) -> ValidatedLaunchParams -> GameStateConfig -> IO GameState Source #
Create an initial game state corresponding to the given scenario.
pureScenarioToGameState :: ScenarioWith (Maybe ScenarioPath) -> Seed -> TimeSpec -> Maybe CodeToRun -> GameStateConfig -> GameState Source #