game

package
v0.0.0-...-e213e8e Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	ViewPanel,
	LogPanel,
	InfoPanel,
	OtherPanel,
	SmallPopupPanel,
	LargePopupPanel *Panel

	Player *entity.Entity
}

func NewGame

func NewGame() *Game

func (*Game) Draw

func (this *Game) Draw()

func (*Game) ForEachActivePanel

func (this *Game) ForEachActivePanel(fn func(*Panel))

func (*Game) Run

func (this *Game) Run()

type Panel

type Panel struct {
	X, Y, Width, Height int
	Screen              *screen.Screen
	BorderColor         tb.Attribute
}

func NewPanel

func NewPanel(x, y, w, h int, borderColor tb.Attribute) *Panel

func (*Panel) Blit

func (this *Panel) Blit()

func (*Panel) Clear

func (this *Panel) Clear()

func (*Panel) DrawBorder

func (this *Panel) DrawBorder()

Jump to

Keyboard shortcuts

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