class Risk::Player

Defined in:

risk/player.cr

Constant Summary

EmptyColor = SF::Color.new(96, 96, 96)
InitialUnitDecreasePerPlayer = 5_u8
MaxInitialUnits = 40_u8

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String, color : SF::Color) #

[View source]

Class Method Detail

def self.empty #

[View source]

Instance Method Detail

def choose_territory(mouse, empty_territories : Array(Territory)) #

[View source]
def color : SF::Color #

[View source]
def human? #

[View source]
def initial_units(players : UInt8) #

[View source]
def name : String #

[View source]
def units : UInt8 #

[View source]
def units=(units : UInt8) #

[View source]