tilearea

package
v0.0.0-...-d7572e3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TileArea

type TileArea [][]tile_flag.TileFlag

func New

func New(x, y int) TileArea

func (TileArea) CalcNotEmptyTileCount

func (ta TileArea) CalcNotEmptyTileCount() int

func (TileArea) CalcStat

func (ta TileArea) CalcStat() tile_vector_int.TileVector_int

func (TileArea) DrawBoolMapFalse

func (ta TileArea) DrawBoolMapFalse(xWrap, yWrap func(i int) int,
	maX, maY int, ma boolmatrix.BoolMatrix, tl tile_flag.TileFlag)

func (TileArea) DrawBoolMapTrue

func (ta TileArea) DrawBoolMapTrue(xWrap, yWrap func(i int) int,
	maX, maY int, ma boolmatrix.BoolMatrix, tl tile_flag.TileFlag)

func (TileArea) DrawCorridors

func (ta TileArea) DrawCorridors(corridorList []*corridor.Corridor)

func (TileArea) DrawRooms

func (ta TileArea) DrawRooms(rs []*room.Room)

func (TileArea) Dup

func (ta TileArea) Dup() TileArea

func (TileArea) DupWithFilter

func (ta TileArea) DupWithFilter(fn func(x, y int) bool) TileArea

func (TileArea) Ellipses

func (ta TileArea) Ellipses(x, w, y, h int, tl tile_flag.TileFlag)

func (TileArea) FillRect

func (ta TileArea) FillRect(x, w, y, h int, tl tile_flag.TileFlag)

func (TileArea) GetByXY

func (ta TileArea) GetByXY(x, y int) *tile_flag.TileFlag

func (TileArea) GetRectArea

func (ta TileArea) GetRectArea(x, y int, w, h int) TileArea

GetRectArea dup rect area start x,y, size w,h

func (TileArea) GetTiles

func (ta TileArea) GetTiles() TileArea

func (TileArea) GetXYLen

func (ta TileArea) GetXYLen() (int, int)

for draw2d

func (TileArea) GetXYWrapper

func (ta TileArea) GetXYWrapper() (func(int) int, func(int) int)

func (TileArea) HLine

func (ta TileArea) HLine(x, w, y int, tl tile_flag.TileFlag)

func (TileArea) Line

func (ta TileArea) Line(x1, y1, x2, y2 int, tl tile_flag.TileFlag)

func (TileArea) Rect

func (ta TileArea) Rect(x, w, y, h int, tl tile_flag.TileFlag)

func (TileArea) String

func (ta TileArea) String() string

func (TileArea) ToImage

func (ta TileArea) ToImage(zoom int) *image.RGBA

func (TileArea) TotalPos

func (ta TileArea) TotalPos() int

func (TileArea) VLine

func (ta TileArea) VLine(x, y, h int, tl tile_flag.TileFlag)

Jump to

Keyboard shortcuts

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