Preparing board implementation and rendering

+ Board class as data model
+ Texture loading code in BoardPanel
+ Abstract Piece class with Type enum
- Moved piece textures into res/pieces
- Changes TextureLoader to work directly with files
This commit is contained in:
2019-07-01 19:08:37 +02:00
parent 5300921149
commit 0e99db6a46
16 changed files with 83 additions and 7 deletions

BIN
res/pieces/bishop_black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/pieces/bishop_white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
res/pieces/king_black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
res/pieces/king_white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
res/pieces/knight_black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/pieces/knight_white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
res/pieces/pawn_black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 B

BIN
res/pieces/pawn_white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/pieces/queen_black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
res/pieces/queen_white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
res/pieces/rook_black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 725 B

BIN
res/pieces/rook_white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B