engine

package
v0.0.0-...-602f89e Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionId

type ActionId string

type GameAction

type GameAction int

type GameActionInfo

type GameActionInfo struct {
	ActionName string
	Story      string
	Target     string
	Secret     string
}

type GameDataI

type GameDataI interface {
	Start() GameNodeI
	GetNodeByString(string) GameNodeI
	GetActionById(ActionId) *GameActionInfo
}

type GameNodeI

type GameNodeI interface {
	IsGameOver() bool
	IsGameLost() bool
	Next(ActionId) GameNodeI // action ID -> Node
	Actions() map[ActionId]GameActionInfo
	Story() StoryContent
	Name() string
}

type StoryContent

type StoryContent string

Directories

Path Synopsis
data

Jump to

Keyboard shortcuts

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