output

package
v0.0.0-...-9034458 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2016 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConsole

func GetConsole(opt Options) (ret C.IConsole)

func GetWriter

func GetWriter(opt Options) (ret io.Writer)

func PlayGame

func PlayGame(cons C.IConsole, g R.Game) (err error)

func PlayGameUpdate

func PlayGameUpdate(cons C.IConsole, g R.Game, endFrame func()) (err error)

func Run

func Run(scriptCallback script.InitCallback)

simplest interface:

func RunGame

func RunGame(opt Options) (err error)

func RunScript

func RunScript(script *script.Script, opt Options) (err error)

Types

type MiniConsole

type MiniConsole struct {
	*minicon.MiniCon
}

implement IConsole for MiniCon FIX: rename to standard.miniconsole maybe?

func (MiniConsole) Readln

func (this MiniConsole) Readln() (string, bool)

type Options

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

options and command line parsing for terminal style playback.

func ParseCommandLine

func ParseCommandLine() Options

create options by reading the command line

func (Options) DumpModelAndExit

func (opt Options) DumpModelAndExit(okay bool) Options

func (Options) SetConsole

func (opt Options) SetConsole(cons C.IConsole) Options

override console with some external instance

func (Options) SetVerbose

func (opt Options) SetVerbose(okay bool) Options

func (Options) UseTextConsole

func (opt Options) UseTextConsole(okay bool) Options

type StandardOutput

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

func NewStandardOutput

func NewStandardOutput(c C.IConsole, logger io.Writer) *StandardOutput

func (*StandardOutput) ActorSays

func (out *StandardOutput) ActorSays(whose meta.Instance, lines []string)

func (*StandardOutput) Log

func (out *StandardOutput) Log(s string)

func (*StandardOutput) Println

func (out *StandardOutput) Println(args ...interface{})

func (*StandardOutput) ScriptSays

func (out *StandardOutput) ScriptSays(lines []string)

Jump to

Keyboard shortcuts

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