License | BSD-3-Clause |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Swarm.Game.Tick
Description
Synopsis
- newtype TickNumber = TickNumber {}
- addTicks :: Int -> TickNumber -> TickNumber
- formatTicks :: Bool -> TickNumber -> String
Documentation
newtype TickNumber Source #
A newtype representing a count of ticks (typically since the start of a game).
Constructors
TickNumber | |
Fields |
Instances
addTicks :: Int -> TickNumber -> TickNumber Source #
Add an offset to a TickNumber
.
formatTicks :: Bool -> TickNumber -> String Source #
Format a ticks count as a hexadecimal clock.