abstract class Spellstorm::Card

Direct Known Subclasses

Defined in:

spellstorm/cards.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(name : String, cost : Int32, element : Spellstorm::Element, power : Int32) #

[View source]

Macro Detail

macro is_pure(x) #

[View source]

Instance Method Detail

def cost : Int32 #

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

[View source]
def damage_player(state : CardStateMutable, value : Int32) #

[View source]
def element : Element #

[View source]
def element=(element : Element) #

[View source]
def estim_shield(state : CardState) : Int32 #

[View source]
def estim_shield(state : CardStateMutable, *args) #

[View source]
def field_location(state : CardState) : CardLocation #

redefinable methods


[View source]
def field_location(state : CardStateMutable, *args) #

[View source]
def get_damage(state : CardState) : Int32 #

[View source]
def get_damage(state : CardStateMutable, *args) #

[View source]
def hook_damage(state : CardStateMutable, other : CardStateMutable, value : Int32) : Int32 #

[View source]
def hook_played(state : CardStateMutable) #

[View source]
def hook_processing(state : CardStateMutable) #

[View source]
def hook_shield(state : CardStateMutable, other : CardStateMutable, value : Int32) : Int32 #

[View source]
def mana_feed(state : CardStateMutable, element : Element, value : Int32) #

[View source]
def mana_provide(state : CardStateMutable, element : Element, value : Int32) #

[View source]
def mana_sink(state : CardState, element : Element) #

[View source]
def mana_sink(state : CardStateMutable, *args) #

[View source]
def mana_source(state : CardState, element : Element) #

[View source]
def mana_source(state : CardStateMutable, *args) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def playable(player_state : PlayerState) : Bool #

[View source]
def power : Int32 #

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

[View source]
abstract def typ_name : String #

[View source]