class Spellstorm::PlayerState

Defined in:

spellstorm/mechanics.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(game : Spellstorm::GameState, player : Player, deck : Deck) #

[View source]

Instance Method Detail

def at_location(loc : CardLocation) : Array(CardStateMutable) #

[View source]
def at_location(locs) : Array(CardStateMutable) #

[View source]
def card_state(card_index) #

[View source]
def compact_indices #

[View source]
def count_cards(location : CardLocation) #

[View source]
def counts : StaticArray(Int32, 7) #

[View source]
def data : StaticArray(Spellstorm::CardState, 40) #

[View source]
def data=(data : StaticArray(Spellstorm::CardState, 40)) #

[View source]
def deck : Spellstorm::Deck #

[View source]
def decrease_mana(element, value) #

[View source]
def estim_damage #

TODO - optimization?


[View source]
def estim_shield #

[View source]
def game : GameState #

[View source]
def hp : Int32 #

[View source]
def hp=(hp : Int32) #

[View source]
def mana_spent : StaticArray(Int32, 5) #

[View source]
def mana_spent=(mana_spent : StaticArray(Int32, 5)) #

[View source]
def max_mana(element) #

[View source]
def opponent #

[View source]
def own_mana : Int32 #

[View source]
def own_mana=(own_mana : Int32) #

[View source]
def pay_mana(element, value) #

[View source]
def player : Spellstorm::Player #

[View source]
def possible_actions #

[View source]
def refill_hand #

[View source]
def sink_mana(element, amount) #

[View source]
def test_damage : Int32 #

[View source]
def test_damage=(test_damage : Int32) #

[View source]
def test_mana : StaticArray(Int32, 5) #

[View source]
def test_mana=(test_mana : StaticArray(Int32, 5)) #

[View source]