Documentation ¶
Overview ¶
System commands to manage a running game ( save, load, etc ).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Z_Types = typeinfo.TypeSet{ Name: "game", Comment: []string{ "System commands to manage a running game ( save, load, etc ).", }, Flow: z_flow_list, Signatures: z_signatures, }
package listing of type data
var Zt_LoadGame typeinfo.Flow
load_game, a type of flow.
var Zt_PrintVersion typeinfo.Flow
print_version, a type of flow.
var Zt_QuitGame typeinfo.Flow
quit_game, a type of flow.
var Zt_SaveGame typeinfo.Flow
save_game, a type of flow.
var Zt_UndoTurn typeinfo.Flow
undo_turn, a type of flow.
Functions ¶
Types ¶
type LoadGame ¶
Load the most recent save.
func (*LoadGame) Execute ¶
todo: it'd be nice for the user to be able to type a name for the file as part of the thing including a "request list of save files" type of command would either need a parser action that can transparently eat words "load name of my save" ( and change Signal into a struct with data ) -- could also have the play engine handle the player interaction -- but that seems less flexible.
func (*LoadGame) GetMarkup ¶
Implements typeinfo.Markup
type LoadGame_Slice ¶
type LoadGame_Slice []LoadGame
Holds a slice of type LoadGame.
func (*LoadGame_Slice) Repeats ¶
func (op *LoadGame_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of LoadGame.
func (*LoadGame_Slice) TypeInfo ¶
func (*LoadGame_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of LoadGame.
type PrintVersion ¶
Print the version of the tap executable.
func (*PrintVersion) Execute ¶
func (*PrintVersion) Execute(run rt.Runtime) (_ error)
fix: need to think about this. requiring package files or even runtime debug seems iffy.
func (*PrintVersion) GetMarkup ¶
func (op *PrintVersion) GetMarkup(ensure bool) map[string]any
Implements typeinfo.Markup
func (*PrintVersion) TypeInfo ¶
func (*PrintVersion) TypeInfo() typeinfo.T
Implements typeinfo.Instance
type PrintVersion_Slice ¶
type PrintVersion_Slice []PrintVersion
Holds a slice of type PrintVersion.
func (*PrintVersion_Slice) Repeats ¶
func (op *PrintVersion_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of PrintVersion.
func (*PrintVersion_Slice) TypeInfo ¶
func (*PrintVersion_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of PrintVersion.
type QuitGame ¶
Immediately end the current game.
func (*QuitGame) Execute ¶
returns SignalQuit any prompting of the user ( ie. are you sure? ) should happen *before* quit is called.
func (*QuitGame) GetMarkup ¶
Implements typeinfo.Markup
type QuitGame_Slice ¶
type QuitGame_Slice []QuitGame
Holds a slice of type QuitGame.
func (*QuitGame_Slice) Repeats ¶
func (op *QuitGame_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of QuitGame.
func (*QuitGame_Slice) TypeInfo ¶
func (*QuitGame_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of QuitGame.
type SaveGame_Slice ¶
type SaveGame_Slice []SaveGame
Holds a slice of type SaveGame.
func (*SaveGame_Slice) Repeats ¶
func (op *SaveGame_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of SaveGame.
func (*SaveGame_Slice) TypeInfo ¶
func (*SaveGame_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of SaveGame.
type UndoTurn ¶
Unimplemented: rewind the game to undo the player's most recent input.
func (*UndoTurn) GetMarkup ¶
Implements typeinfo.Markup
type UndoTurn_Slice ¶
type UndoTurn_Slice []UndoTurn
Holds a slice of type UndoTurn.
func (*UndoTurn_Slice) Repeats ¶
func (op *UndoTurn_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of UndoTurn.
func (*UndoTurn_Slice) TypeInfo ¶
func (*UndoTurn_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of UndoTurn.