wall

package
v4.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrCreateRuinsGenerator

type ErrCreateRuinsGenerator string

func (ErrCreateRuinsGenerator) Error

func (e ErrCreateRuinsGenerator) Error() string

type ErrCreateWall

type ErrCreateWall string

func (ErrCreateWall) Error

func (e ErrCreateWall) Error() string

type ErrGenerateWall

type ErrGenerateWall string

func (ErrGenerateWall) Error

func (e ErrGenerateWall) Error() string

type RuinsGenerator

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

func NewRuinsGenerator

func NewRuinsGenerator(w world.Interface) *RuinsGenerator

func (*RuinsGenerator) Done

func (rg *RuinsGenerator) Done() bool

func (*RuinsGenerator) Err

func (rg *RuinsGenerator) Err() error

func (*RuinsGenerator) GenerateWall

func (rg *RuinsGenerator) GenerateWall() (*Wall, error)

type Wall

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

ffjson: skip

func NewWall

func NewWall(world world.Interface, dm *engine.DotsMask) (*Wall, error)

func NewWallLocation

func NewWallLocation(world world.Interface, location engine.Location) (*Wall, error)

func (*Wall) Break

func (w *Wall) Break(dot engine.Dot, force float64) (success bool, err error)

func (*Wall) MarshalJSON

func (w *Wall) MarshalJSON() ([]byte, error)

func (*Wall) String

func (w *Wall) String() string

Jump to

Keyboard shortcuts

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