Documentation ¶
Index ¶
- type Card
- func (card *Card) FaceDown(position sdl.FPoint, turned bool)
- func (card *Card) FaceUp(position sdl.FPoint, turned bool)
- func (card *Card) GetCardInstance() graphic.Instance
- func (card *Card) Hide()
- func (card *Card) SetCardInstance(cardInstance *graphic.Instance)
- func (card *Card) SetFaceDownInstance(faceDownInstance *graphic.Instance)
- func (card *Card) ZoomOnce()
- type CardStack
- type GameField
- type PlayerField
- type SingleCardSlot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct {
// contains filtered or unexported fields
}
Card contains the information of every card
func (*Card) GetCardInstance ¶
GetCardInstance Returns a copy of the card instance of the card
func (*Card) SetCardInstance ¶
SetCardInstance Setter for cardInstance
func (*Card) SetFaceDownInstance ¶
SetFaceDownInstance Setter for facedown instance
type CardStack ¶
CardStack contains info for a stack of cards
func (*CardStack) CreateRenderStack ¶
CreateRenderStack list the cards and returns the card instances to render
type PlayerField ¶
type PlayerField struct {
Deck, ExtraDeck, Graveyard, BannedStack CardStack
MonsterSlots, SpellZone [5]SingleCardSlot
FieldSpell SingleCardSlot
}
PlayerField contains all the card slots for one player
Click to show internal directories.
Click to hide internal directories.