class

MahjonggView

Inherits Reference < Object

Constructors

new(windowtexture : SF::RenderTexture, game_number : Int32 = 1)
Source

Instance methods

background_color
Source
background_color=(background_color : SF::Color)
Source
calculate_scale
Source
change_image_file(file_path)
Source
create_sprites
Source
draw_board(game_number : String)
Source
draw_button(button, scale, x, y)
Source
draw_game_buttons
Source
draw_info
Source
draw_input(new_number_string : String)
Source
find_sprite_position(x, y)

provide the global coordinates and this returns position number

Source
game_number
Source
new_game(game_number : Int32)
Source
process_click(pos)
Source
style_text(text : SF::Text)
Source