Class: TapLandCard

Inherits:
Card
  • Object
show all
Defined in:
lib/manasimu/card/tapland.rb

Direct Known Subclasses

FetchLandCard

Instance Attribute Summary

Attributes inherited from Card

#card_type, #id, #side

Instance Method Summary collapse

Methods inherited from Card

#can_play?, #color_identity, #color_identity_size, #configure, #converted_mana_cost, #drawed, #edges, #first_produce_symbol=, #initialize, #is_land?, #mana_cost, #mana_produced?, #mana_source, #mana_source?, #mana_source_size, #max_flow, #playable?, #played, #played?, #price, #set_code, #step_in_hands, #to_s, #type, #types

Constructor Details

This class inherits a constructor from Card

Instance Method Details

#resetObject



22
23
24
25
# File 'lib/manasimu/card/tapland.rb', line 22

def reset
  super
  @tapped = false
end

#resolve(side, hands, plays, deck) ⇒ Object

when enter the battlefield



8
9
10
11
# File 'lib/manasimu/card/tapland.rb', line 8

def resolve(side, hands, plays, deck)
  super(side, hands, plays, deck)
  @tapped = true
end

#step_in_plays(turn) ⇒ Object



13
14
15
16
# File 'lib/manasimu/card/tapland.rb', line 13

def step_in_plays(turn)
  super(turn)
  @tapped = false
end

#tapped?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/manasimu/card/tapland.rb', line 3

def tapped?
  @tapped
end

#tappend=(tapped) ⇒ Object



18
19
20
# File 'lib/manasimu/card/tapland.rb', line 18

def tappend=(tapped)
  @tapped = tapped
end