uuidposman_map

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: 5 Imported by: 0

Documentation

Overview

positioned object managment in 2d space

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUIDPosMan

type UUIDPosMan struct {
	XWrapper *wrapper.Wrapper `prettystring:"simple"`
	YWrapper *wrapper.Wrapper `prettystring:"simple"`
	XWrap    func(i int) int
	YWrap    func(i int) int
	// contains filtered or unexported fields
}

func New

func New(x, y int) *UUIDPosMan

func (*UUIDPosMan) AddOrUpdateToXY

func (fo *UUIDPosMan) AddOrUpdateToXY(o uuidposmani.UUIDPosI, x, y int) error

func (*UUIDPosMan) AddToXY

func (fo *UUIDPosMan) AddToXY(o uuidposmani.UUIDPosI, x, y int) error

func (*UUIDPosMan) Cleanup

func (fo *UUIDPosMan) Cleanup()

func (*UUIDPosMan) Count

func (fo *UUIDPosMan) Count() int

func (*UUIDPosMan) Del

func (fo *UUIDPosMan) Del(o uuidposmani.UUIDPosI) error

func (*UUIDPosMan) DelByFilter

func (fo *UUIDPosMan) DelByFilter(filter func(o uuidposmani.UUIDPosI, x, y int) bool) error

DelByFilter del obj if filter return true

func (*UUIDPosMan) Get1stObjAt

func (fo *UUIDPosMan) Get1stObjAt(x, y int) uuidposmani.UUIDPosI

func (*UUIDPosMan) GetAllList

func (fo *UUIDPosMan) GetAllList() uuidposmani.UUIDPosIList

func (*UUIDPosMan) GetByUUID

func (fo *UUIDPosMan) GetByUUID(id string) uuidposmani.UUIDPosI

func (*UUIDPosMan) GetByXYAndUUID

func (fo *UUIDPosMan) GetByXYAndUUID(id string, x, y int) (uuidposmani.UUIDPosI, error)

func (*UUIDPosMan) GetObjListAt

func (fo *UUIDPosMan) GetObjListAt(x, y int) uuidposmani.UUIDPosIList

func (*UUIDPosMan) GetVPIXYObjByXYLenList

func (fo *UUIDPosMan) GetVPIXYObjByXYLenList(
	xylenlist findnear.XYLenList,
	sx, sy int, l int) []uuidposmani.VPIXYObj

func (*UUIDPosMan) GetXYByUUID

func (fo *UUIDPosMan) GetXYByUUID(id string) (int, int, bool)

func (*UUIDPosMan) IterAll

func (fo *UUIDPosMan) IterAll(iterfn func(o uuidposmani.UUIDPosI, x, y int) bool)

IterAll stop obj if filter return true

func (*UUIDPosMan) IterByXYLenList

func (fo *UUIDPosMan) IterByXYLenList(
	xylenlist findnear.XYLenList,
	sx, sy int, l int,
	stopFn func(o uuidposmani.UUIDPosI, x, y int, i int, xylen findnear.XYLen) bool)

func (*UUIDPosMan) Search1stByXYLenList

func (fo *UUIDPosMan) Search1stByXYLenList(
	xylenlist findnear.XYLenList,
	sx, sy int,
	filterfn func(o uuidposmani.UUIDPosI, x, y int, xylen findnear.XYLen) bool) (uuidposmani.UUIDPosI, int, int)

func (*UUIDPosMan) String

func (fo *UUIDPosMan) String() string

func (*UUIDPosMan) UpdateToXY

func (fo *UUIDPosMan) UpdateToXY(o uuidposmani.UUIDPosI, newx, newy int) error

func (*UUIDPosMan) Wrap

func (fo *UUIDPosMan) Wrap(x, y int) (int, int)

Jump to

Keyboard shortcuts

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