Took out annotation (Haddock complained) and improved path type
This commit is contained in:
parent
a2433638df
commit
ee8c91237c
@ -33,10 +33,7 @@ import Linear
|
||||
import Map.Types
|
||||
import Map.StaticMaps
|
||||
|
||||
type MapEntry = (
|
||||
Float, -- ^ Height
|
||||
TileType
|
||||
)
|
||||
type MapEntry = (Float, TileType)
|
||||
|
||||
type GraphicsMap = Array (Int, Int) MapEntry
|
||||
|
||||
|
@ -9,7 +9,7 @@ type PlayMap = Array (XCoord, ZCoord) Node
|
||||
|
||||
type XCoord = Int
|
||||
type ZCoord = Int
|
||||
type YCoord = Float
|
||||
type YCoord = Float
|
||||
|
||||
data MapType = GrassIslandMap
|
||||
| DesertMap
|
||||
@ -22,10 +22,10 @@ instance Show PlayerInfo where
|
||||
show (NoPlayer) = "not occupied"
|
||||
show (Occupied i) = "occupied by player " ++ (show i)
|
||||
|
||||
-- | Path info, is this node part of a path?
|
||||
-- | Path info, is this node part of a path and if so, where does it lead?
|
||||
data PathInfo = NoPath
|
||||
| Path
|
||||
| Border
|
||||
| Paths [(XCoord, YCoord)]
|
||||
deriving (Show, Eq)
|
||||
|
||||
-- | What resources can be harvested here?
|
||||
|
Loading…
Reference in New Issue
Block a user