class Memorygame::Card

Included Modules

Defined in:

memorygame.cr

Constant 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

Constructor Detail

def self.new(card_value : Int32) #

[View source]

Instance Method Detail

def ==(card : Card) #

[View source]
def card_value : Int32 #

[View source]
def clicked?(pos : Tuple(Int32, Int32)) #

[View source]
def draw(target, states) #

[View source]
def flip #

[View source]
def move(position : Tuple(Int32, Int32)) #

[View source]
def sprite : SF::Sprite #

[View source]
def turn_face_down #

[View source]
def turn_face_up #

[View source]
def visible? : Bool #

[View source]