class Risk::Territory
- Risk::Territory
- Reference
- Object
Defined in:
risk/territory.crConstant Summary
-
OutlineDefaultColor =
SF::Color::White
-
OutlineHoverColor =
SF::Color.new(255, 0, 255)
-
SelectedDarkenColor =
SF::Color.new(0, 0, 0, 160)
-
TextColor =
SF::Color::White
Constructors
Instance Method Summary
- #check_hover(mouse_coords)
- #clear_hover
- #connected?(territory : Territory)
- #connections : Array(String)
- #continent : String
- #draw(window)
- #draw_selected(window)
- #draw_units(window)
- #empty?
- #height : Int32
- #hover?(mouse_coords)
- #hover? : Bool
- #image : SF::Image
- #inside_bounds?(mouse_coords)
- #name : String
- #player : Player
- #player=(player : Player)
- #player?(player : Player)
- #select
- #selected? : Bool
- #sprite : SF::Sprite
- #sprite_outline : SF::Sprite
- #text : SF::Text
- #units : Int32
- #units=(units : Int32)
- #unselect
- #width : Int32
- #x : Int32
- #y : Int32
Constructor Detail
def self.new(name : String, continent : String, x : Int32, y : Int32, width : Int32, height : Int32, unit_cx = 16, unit_cy = 16, connections : Array(String) = [] of String, player : Risk::Player = Player.empty, units = 0)
#