Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module displaying the world map, which is the first view in legendary edition as well as the view between levels.
Synopsis
- viewWorldModel :: World -> Styled (View Action)
- backgroundPositionY :: Nat -> Nat
- encounterView :: Model -> Int -> Int -> Int -> Encounter -> [View action]
- filepath :: Model -> Tile -> Size -> MisoString
- tileView :: Model -> Int -> Int -> Int -> Tile -> View action
- legendDiv :: World -> View a
- absCoordToPx :: World -> Coord -> (Int, Int)
- relCoordToPx :: Coord -> (Int, Int)
- cellsHeight :: Int
- cellsWidth :: Int
- mkInitialModel :: Model -> World
- modelSize :: (Nat, Nat)
- both :: Bifunctor p => (a -> d) -> p a a -> p d d
- shift :: T -> World -> World
- borderRadius :: Int
- chooseTeamHint :: Int -> World -> [View a]
- mkEncounters :: Bool -> Coord -> Map Coord Encounter
- encounterToTile :: Encounter -> Tile
Documentation
backgroundPositionY :: Nat -> Nat #
Given the y (in number of cells) of the top left cell, the corresponding background-position-y css attribute for displaying the world map appropriately
encounterView :: Model -> Int -> Int -> Int -> Encounter -> [View action] #
encounterView shared z x y e
returns the views for the encounter e
.
x
and y
are relative (to the enclosing container) pixel values. They
are not cell coordinates.
absCoordToPx :: World -> Coord -> (Int, Int) #
Converts an absolute coordinate like (25,43)
to relative pixels
relCoordToPx :: Coord -> (Int, Int) #
Converts a relative coordinate like (5,4)
to relative pixels
cellsHeight :: Int #
The height of the view, in number of cells
cellsWidth :: Int #
The width of the view, in number of cells
mkInitialModel :: Model -> World #
The initial model, for when the game starts
borderRadius :: Int #
chooseTeamHint :: Int -> World -> [View a] #
encounterToTile :: Encounter -> Tile #