Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
risk
master
Risk
Continent
Font
Game
HUD
Joysticks
Keys
Manager
Map
Mouse
Player
Scene
Main
Start
Screen
Stage
Territory
Generated using Crystal 1.14.0
2024-11-26 09:01:11 UTC
class
Risk::
Map
Risk::Map
Reference
Object
Defined in:
risk/map.cr
Constant Summary
CellSize
=
16
MapHeight
=
768
MapWidth
=
1152
Constructors
.new
(x : Int32 =
0
, y : Int32 =
0
)
Instance Method Summary
#continents
: Array(Continent)
#draw
(window)
#territories
: Array(Territory)
#x
: Int32
#y
: Int32
Constructor Detail
def self.
new
(x : Int32 =
0
, y : Int32 =
0
)
#
[
View source
]
Instance Method Detail
def
continents
: Array(
Continent
)
#
[
View source
]
def
draw
(window)
#
[
View source
]
def
territories
: Array(
Territory
)
#
[
View source
]
def
x
: Int32
#
[
View source
]
def
y
: Int32
#
[
View source
]