gamestartfactory

package
v0.0.0-...-5f2b5db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameStartFactory

type GameStartFactory struct {
	// contains filtered or unexported fields
}

func (*GameStartFactory) StartNewGame

func (gamestartfactory *GameStartFactory) StartNewGame(
	tonpuOrHanchan toh.TonpuOrHanchan,
	tonchaid pid.PlayerId,
	nanchaid pid.PlayerId,
	shachaid pid.PlayerId,
	pechaid pid.PlayerId,
) (
	*gs.GameStatus,
	*sb.ScoreBoard,
	error,
)

type GameStartIFactory

type GameStartIFactory interface {
	StartNewGame(
		tonpuOrHanchan toh.TonpuOrHanchan,
		tonchaid pid.PlayerId,
		nanchaid pid.PlayerId,
		shachaid pid.PlayerId,
		pechaid pid.PlayerId,
	) (*gs.GameStatus, *sb.ScoreBoard, error)
}

func NewGameStartFactory

func NewGameStartFactory(
	grepo gs.GameStatusIRepo,
	srepo sb.ScoreBoardIRepo,
) (GameStartIFactory, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL