visitarea

package
v0.0.0-...-e449b39 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

View Source
const BitLen = 8
View Source
const FullBit = 0xff
View Source
const MaskBit = BitLen - 1
View Source
const PosShift = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type BitContainer

type BitContainer uint8

type FloorI

type FloorI interface {
	GetName() string
	GetWidth() int
	GetHeight() int
	VisitableCount() int
}

type VisitArea

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

func New

func New(fi FloorI) *VisitArea

func (*VisitArea) CalcCompleteRate

func (va *VisitArea) CalcCompleteRate() float64

func (*VisitArea) CheckAndSetNolock

func (va *VisitArea) CheckAndSetNolock(x, y int)

func (*VisitArea) Cleanup

func (va *VisitArea) Cleanup()

func (*VisitArea) Dup

func (va *VisitArea) Dup() *VisitArea

func (*VisitArea) Forget

func (va *VisitArea) Forget() int

Forget clear discover data and return old state

func (*VisitArea) GetCompleteTileCount

func (va *VisitArea) GetCompleteTileCount() int

func (*VisitArea) GetDiscoverExp

func (va *VisitArea) GetDiscoverExp() int

func (*VisitArea) GetDiscoveredTileCount

func (va *VisitArea) GetDiscoveredTileCount() int

func (*VisitArea) GetName

func (va *VisitArea) GetName() string

func (*VisitArea) GetUUID

func (va *VisitArea) GetUUID() string

func (*VisitArea) GetXYNolock

func (va *VisitArea) GetXYNolock(x, y int) bool

func (*VisitArea) IsComplete

func (va *VisitArea) IsComplete() bool

func (*VisitArea) IsCompleteNoLock

func (va *VisitArea) IsCompleteNoLock() bool

func (*VisitArea) MakeComplete

func (va *VisitArea) MakeComplete() int

func (*VisitArea) SetXYNolock

func (va *VisitArea) SetXYNolock(x, y int)

func (*VisitArea) String

func (va *VisitArea) String() string

func (*VisitArea) ToImage

func (va *VisitArea) ToImage(zoom int) *image.RGBA

func (*VisitArea) UpdateBySightMat2

func (va *VisitArea) UpdateBySightMat2(
	floorTiles tilearea.TileArea,
	vpCenterX, vpCenterY int,
	sightMat *viewportdata.ViewportSight2,
	sight float32) int

server use only

func (*VisitArea) UpdateByViewport2

func (va *VisitArea) UpdateByViewport2(
	vpCenterX, vpCenterY int,
	vpTiles *viewportdata.ViewportTileArea2,
	vpXYLenList findnear.XYLenList,
) int

client use only

func (*VisitArea) Web_Image

func (va *VisitArea) Web_Image(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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