class MahjonggView

Defined in:

mahjongg_view.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(windowtexture : SF::RenderTexture, game_number : Int32 = 1) #

[View source]

Instance Method Detail

def background_color : SF::Color #

[View source]
def background_color=(background_color : SF::Color) #

[View source]
def calculate_scale #

[View source]
def change_image_file(file_path) #

[View source]
def create_sprites #

[View source]
def draw_board(game_number : String) #

[View source]
def draw_button(button, scale, x, y) #

[View source]
def draw_game_buttons #

[View source]
def draw_info #

[View source]
def draw_input(new_number_string : String) #

[View source]
def find_sprite_position(x, y) #

provide the global coordinates and this returns position number


[View source]
def game_number : Int32 #

[View source]
def new_game(game_number : Int32) #

[View source]
def process_click(pos) #

[View source]
def style_text(text : SF::Text) #

[View source]