Documentation ¶
Index ¶
- type Displayer
- type Driver
- func (d *Driver) Clear()
- func (d *Driver) Draw(app *game.Application)
- func (d *Driver) Finalize()
- func (d *Driver) HandleKeyEventGame(app *game.Application, event *tcell.EventKey) game.Action
- func (d *Driver) HandleKeyEventMenu(app *game.Application, event *tcell.EventKey) game.Action
- func (d *Driver) Init() error
- func (d *Driver) PollAction(app *game.Application) game.Action
- func (d *Driver) SetLog(filename string) error
- type LiquidNumber
- type Random
- type Simple
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Displayer ¶
Displayer is the interface all tile displayers must implement.
func DefaultBlocks ¶
func DefaultBlocks() []Displayer
func DefaultFloors ¶
func DefaultFloors() []Displayer
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is the terminal driver struct.
func (*Driver) Draw ¶
func (d *Driver) Draw(app *game.Application)
func (*Driver) HandleKeyEventGame ¶
func (*Driver) HandleKeyEventMenu ¶
func (*Driver) PollAction ¶
func (d *Driver) PollAction(app *game.Application) game.Action
PollAction gets the next action to update the game with.
type LiquidNumber ¶
type LiquidNumber struct{}
LiquidNumber is a displayer for liquids which shows their depth.
Click to show internal directories.
Click to hide internal directories.