Documentation
¶
Index ¶
- Variables
- type GameState
- type Grid
- type GridGraphicComponent
- type MainMenuControllerComponent
- type MainMenuEntity
- type MainMenuGraphicComponent
- type MenuOption
- type MorpionGame
- type MorpionGameControllerComponent
- type MorpionGameEntity
- type MorpionScoresControllerComponent
- type MorpionScoresEntity
- func (mse *MorpionScoresEntity) Disable()
- func (mse *MorpionScoresEntity) Enable()
- func (mse *MorpionScoresEntity) FinalUpdate(dt time.Duration) bool
- func (mse *MorpionScoresEntity) GetController() engine.ControllerComponent
- func (mse *MorpionScoresEntity) Update(engine *engine.Engine, dt time.Duration) bool
- type PlayerRef
- type PositionRef
- type ScoresGraphicComponent
- type TextGraphicComponent
- type TokenGraphicComponent
Constants ¶
This section is empty.
Variables ¶
View Source
var NoPlayerColor = color.Transparent
View Source
var PlayerOColor = components.ColorRed
View Source
var PlayerXColor = components.ColorBlue
Functions ¶
This section is empty.
Types ¶
type GridGraphicComponent ¶
type GridGraphicComponent struct { engine.GraphicComponentBase // contains filtered or unexported fields }
type MainMenuControllerComponent ¶
type MainMenuControllerComponent struct { engine.ControllerComponentBase // contains filtered or unexported fields }
func (*MainMenuControllerComponent) ConsumeGamepadEvents ¶
func (mmcc *MainMenuControllerComponent) ConsumeGamepadEvents(events *[]controller.GamepadEvent, projection controller.GamepadProjection)
func (*MainMenuControllerComponent) ConsumeKeyboardEvents ¶
func (mmcc *MainMenuControllerComponent) ConsumeKeyboardEvents(events *[]controller.KeyboardEvent, projection controller.KeyboardProjection)
type MainMenuEntity ¶
type MainMenuEntity struct { engine.EntityBase // contains filtered or unexported fields }
func NewMainMenuEntity ¶
func NewMainMenuEntity() *MainMenuEntity
func (*MainMenuEntity) Disable ¶
func (mme *MainMenuEntity) Disable()
func (*MainMenuEntity) Enable ¶
func (mme *MainMenuEntity) Enable()
func (*MainMenuEntity) FinalUpdate ¶
func (mme *MainMenuEntity) FinalUpdate(dt time.Duration) bool
func (*MainMenuEntity) GetController ¶
func (mme *MainMenuEntity) GetController() engine.ControllerComponent
type MainMenuGraphicComponent ¶
type MainMenuGraphicComponent struct { engine.GraphicComponentBase // contains filtered or unexported fields }
type MenuOption ¶
type MenuOption int
type MorpionGame ¶
type MorpionGame struct {
// contains filtered or unexported fields
}
func NewMorpionGame ¶
func NewMorpionGame() *MorpionGame
func (MorpionGame) InitializeBuckets ¶
func (mg MorpionGame) InitializeBuckets() []engine.EntityBucket
func (MorpionGame) InitializeGame ¶
func (mg MorpionGame) InitializeGame(engine *engine.Engine)
func (MorpionGame) Name ¶
func (mg MorpionGame) Name() string
type MorpionGameControllerComponent ¶
type MorpionGameControllerComponent struct { engine.ControllerComponentBase // contains filtered or unexported fields }
func (*MorpionGameControllerComponent) ConsumeGamepadEvents ¶
func (mgcc *MorpionGameControllerComponent) ConsumeGamepadEvents(events *[]controller.GamepadEvent, projection controller.GamepadProjection)
func (*MorpionGameControllerComponent) ConsumeKeyboardEvents ¶
func (mgcc *MorpionGameControllerComponent) ConsumeKeyboardEvents(events *[]controller.KeyboardEvent, projection controller.KeyboardProjection)
type MorpionGameEntity ¶
type MorpionGameEntity struct { engine.EntityBase // contains filtered or unexported fields }
func NewMorpionGameEntity ¶
func NewMorpionGameEntity() *MorpionGameEntity
func (*MorpionGameEntity) Disable ¶
func (e *MorpionGameEntity) Disable()
func (*MorpionGameEntity) Enable ¶
func (e *MorpionGameEntity) Enable()
func (*MorpionGameEntity) FinalUpdate ¶
func (e *MorpionGameEntity) FinalUpdate(dt time.Duration) bool
func (*MorpionGameEntity) GetController ¶
func (e *MorpionGameEntity) GetController() engine.ControllerComponent
type MorpionScoresControllerComponent ¶
type MorpionScoresControllerComponent struct { engine.ControllerComponentBase // contains filtered or unexported fields }
func (*MorpionScoresControllerComponent) ConsumeGamepadEvents ¶
func (mscc *MorpionScoresControllerComponent) ConsumeGamepadEvents(events *[]controller.GamepadEvent, projection controller.GamepadProjection)
func (*MorpionScoresControllerComponent) ConsumeKeyboardEvents ¶
func (mscc *MorpionScoresControllerComponent) ConsumeKeyboardEvents(events *[]controller.KeyboardEvent, projection controller.KeyboardProjection)
type MorpionScoresEntity ¶
type MorpionScoresEntity struct { engine.EntityBase // contains filtered or unexported fields }
func NewMorpionScoresEntity ¶
func NewMorpionScoresEntity() *MorpionScoresEntity
func (*MorpionScoresEntity) Disable ¶
func (mse *MorpionScoresEntity) Disable()
func (*MorpionScoresEntity) Enable ¶
func (mse *MorpionScoresEntity) Enable()
func (*MorpionScoresEntity) FinalUpdate ¶
func (mse *MorpionScoresEntity) FinalUpdate(dt time.Duration) bool
func (*MorpionScoresEntity) GetController ¶
func (mse *MorpionScoresEntity) GetController() engine.ControllerComponent
type PositionRef ¶
type PositionRef int
type ScoresGraphicComponent ¶
type ScoresGraphicComponent struct {
engine.GraphicComponentBase
}
type TextGraphicComponent ¶
type TextGraphicComponent struct { engine.GraphicComponentBase // contains filtered or unexported fields }
type TokenGraphicComponent ¶
type TokenGraphicComponent struct { engine.GraphicComponentBase // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.