class Memorygame::Card
- Memorygame::Card
- Reference
- Object
Included Modules
- SF::Drawable
Defined in:
memorygame.crConstant Summary
-
CARD_HEIGHT =
150
-
CARD_TYPE_QTY =
9
-
CARD_WIDTH =
100
-
TEXTURE =
SF::Texture.from_file("resources/sprites/card_texture.png")
Constructors
Instance Method Summary
- #==(card : Card)
- #card_value : Int32
- #clicked?(pos : Tuple(Int32, Int32))
- #draw(target, states)
- #flip
- #move(position : Tuple(Int32, Int32))
- #sprite : SF::Sprite
- #turn_face_down
- #turn_face_up
- #visible? : Bool