Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dashboard ¶
type Dashboard struct {
// contains filtered or unexported fields
}
Dashboard implementation
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine implementation
func (Engine) FinishGame ¶
func (e Engine) FinishGame()
type ExitHandler ¶
type ExitHandler struct {
// contains filtered or unexported fields
}
Exit handler implementation
func (*ExitHandler) IsRunning ¶
func (e *ExitHandler) IsRunning() bool
func (*ExitHandler) On ¶
func (e *ExitHandler) On(toRun func())
func (*ExitHandler) Trigger ¶
func (e *ExitHandler) Trigger()
type IDashboard ¶
type IDashboard interface {
// Starts the dashboard process [This is a blocking call]
Start()
}
Describes a dashboard interface
func NewDashboard ¶
func NewDashboard( eventBus bus.IBus, scoreService scoreboard.IService, combatService combat.IService, playerService player.IService, ) IDashboard
Constructor for dashboard
type IEngine ¶
type IEngine interface { // Starts the engine process [This is a blocking call] Start() // Stops the engine process Stop() // Calculates the results of the game FinishGame() }
Describes and engine interface
type IExitHandler ¶
type IExitHandler interface { // Subscribe a function to run when exit should happen On(func()) // Trigger calls all functions at the same time Trigger() // Returns if exit is already been initiated IsRunning() bool }
Describes an exit handler interface
Click to show internal directories.
Click to hide internal directories.