The card system
Card
Bases: CardList
A card is not the space objects
Deck
Bases: CardList
draw(card)
Draws the card specified or picks one
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
card
|
_type_
|
The card to draw. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
_type_ |
card drawn |
Tilemap
Bases: CardList
fill(tile_string, layer=None, x_count=0, scale_tile=1, x_offset=0, z_offset=0, shift=0)
summary
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tile_string
|
_type_
|
description |
required |
layer
|
_type_
|
description. Defaults to None. |
None
|
x_count
|
int
|
description. Defaults to 0. |
0
|
scale_tile
|
int
|
description. Defaults to 1. |
1
|
x_offset
|
int
|
description. Defaults to 0. |
0
|
z_offset
|
int
|
description. Defaults to 0. |
0
|
shift
|
int
|
Offset every n line by 1/2 width. Helps simulate hex like grid with n=2. Default = 0 |
0
|
fill_hex_rings(tile_string, layer=None)
fill_hex_rings creates a hex map
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tile_string
|
_type_
|
The string of contents |
required |
layer
|
_type_
|
name of the layer |
None
|