starter-snake-haskell-1.1.0: A Haskell Battlesnake starter
Safe HaskellSafe-Inferred
LanguageHaskell2010

Battlesnake.Core.RulesetSettings

Synopsis

Documentation

data RulesetSettings Source #

Information about the ruleset settings used in the game. See: https://docs.battlesnake.com/api/objects/ruleset-settings

Constructors

RulesetSettings 

Fields

Instances

Instances details
FromJSON RulesetSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

Generic RulesetSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

Associated Types

type Rep RulesetSettings :: Type -> Type #

Show RulesetSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

Eq RulesetSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

type Rep RulesetSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

type Rep RulesetSettings = D1 ('MetaData "RulesetSettings" "Battlesnake.Core.RulesetSettings" "starter-snake-haskell-1.1.0-4gsnuWXkUAhIp7OqYh2CSY" 'False) (C1 ('MetaCons "RulesetSettings" 'PrefixI 'True) ((S1 ('MetaSel ('Just "foodSpawnChance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "minimumFood") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "hazardDamagePerTurn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "royale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RoyaleModeSettings) :*: S1 ('MetaSel ('Just "squad") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SquadModeSettings)))))

newtype RoyaleModeSettings Source #

Settings used in royale mode

Constructors

RoyaleModeSettings 

Fields

Instances

Instances details
FromJSON RoyaleModeSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

Generic RoyaleModeSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

Associated Types

type Rep RoyaleModeSettings :: Type -> Type #

Show RoyaleModeSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

Eq RoyaleModeSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

type Rep RoyaleModeSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

type Rep RoyaleModeSettings = D1 ('MetaData "RoyaleModeSettings" "Battlesnake.Core.RulesetSettings" "starter-snake-haskell-1.1.0-4gsnuWXkUAhIp7OqYh2CSY" 'True) (C1 ('MetaCons "RoyaleModeSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "shrinkEveryNTurns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data SquadModeSettings Source #

Settings used in squad mode

Constructors

SquadModeSettings 

Fields

Instances

Instances details
FromJSON SquadModeSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

Generic SquadModeSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

Associated Types

type Rep SquadModeSettings :: Type -> Type #

Show SquadModeSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

Eq SquadModeSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

type Rep SquadModeSettings Source # 
Instance details

Defined in Battlesnake.Core.RulesetSettings

type Rep SquadModeSettings = D1 ('MetaData "SquadModeSettings" "Battlesnake.Core.RulesetSettings" "starter-snake-haskell-1.1.0-4gsnuWXkUAhIp7OqYh2CSY" 'False) (C1 ('MetaCons "SquadModeSettings" 'PrefixI 'True) ((S1 ('MetaSel ('Just "allowBodyCollisions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "sharedElimination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "sharedHealth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "sharedLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))