Documentation ¶
Index ¶
- func Debug(g *Game)
- func NewBoard() *Board
- func NewCard(v, o, p int, id uuid.UUID) *Card
- func NewDeck(owner int) *Deck
- func NewPlayer(name string, id int) *Player
- func NewView(id int, g *Game) *GameView
- func OracleAttack(c *Card, g *Game)
- func OracleCast(c *Card, g *Game) bool
- func OracleEffect(c *Card, g *Game)
- func OracleEndstep(c *Card, g *Game)
- func OracleEnters(c *Card, g *Game)
- func OracleLeaves(c *Card, g *Game)
- func OracleMove(c *Card, src, dest int, g *Game)
- func OraclePower(c CardType, g *Game) int
- func OracleSpell(c CardType, g *Game) bool
- func OracleTick(c *Card, g *Game)
- func OracleUpkeep(c *Card, g *Game)
- type Game
- func (g *Game) Bury(c *Card)
- func (g *Game) GetBoard(id int) []*Card
- func (g *Game) GetDeck(id int) *Deck
- func (g *Game) GetGrave(id int) *Deck
- func (g *Game) GetOpponent(id int) *Player
- func (g *Game) GetOpponentDeck(id int) *Deck
- func (g *Game) GetPlayer(id int) *Player
- func (g *Game) Parse(cmd *Command) *CommandResult
- func (g *Game) PlayerAct(id int, cmd string) *Deck
- func (g *Game) PlayerStateAct(id int, cmd string) *GameView
- func (g *Game) StateChanges()
- func (g *Game) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OracleAttack ¶
func OracleAttack(c *Card, g *Game)
func OracleCast ¶
func OracleEffect ¶
func OracleEffect(c *Card, g *Game)
func OracleEndstep ¶
func OracleEndstep(c *Card, g *Game)
func OracleEnters ¶
func OracleEnters(c *Card, g *Game)
func OracleLeaves ¶
func OracleLeaves(c *Card, g *Game)
func OracleMove ¶
func OraclePower ¶
func OracleSpell ¶
func OracleTick ¶
func OracleTick(c *Card, g *Game)
func OracleUpkeep ¶
func OracleUpkeep(c *Card, g *Game)
Types ¶
type Game ¶
type Game struct { GameBoard *Board SentinalPlayer *Player ScourgePlayer *Player SentinalDeck *Deck ScourgeDeck *Deck SentinalGrave *Deck ScourgeGrave *Deck CurrentTurn int CardBuffer *Deck CanDraw bool HasDrawn bool Status GameStatus }
func (*Game) GetOpponent ¶ added in v0.1.2
func (*Game) GetOpponentDeck ¶ added in v0.1.2
func (*Game) PlayerStateAct ¶
func (*Game) StateChanges ¶
func (g *Game) StateChanges()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.