uuidposmani

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: 1 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 UUIDPosI

type UUIDPosI interface {
	GetUUID() string
}

type UUIDPosIList

type UUIDPosIList []UUIDPosI

type UUIDPosManI

type UUIDPosManI interface {
	Cleanup()
	Count() int
	Wrap(x, y int) (int, int)
	GetAllList() UUIDPosIList
	IterAll(iterfn func(o UUIDPosI, x, y int) bool)
	GetByUUID(id string) UUIDPosI
	GetByXYAndUUID(id string, x, y int) (UUIDPosI, error)
	GetXYByUUID(id string) (int, int, bool)
	Get1stObjAt(x, y int) UUIDPosI
	GetObjListAt(x, y int) UUIDPosIList
	Search1stByXYLenList(
		xylenlist findnear.XYLenList,
		sx, sy int,
		filterfn func(o UUIDPosI, x, y int, xylen findnear.XYLen) bool) (UUIDPosI, int, int)
	GetVPIXYObjByXYLenList(
		xylenlist findnear.XYLenList,
		sx, sy int) []VPIXYObj
	IterByXYLenList(
		xylenlist findnear.XYLenList,
		sx, sy int,
		stopFn func(o UUIDPosI, x, y int, i int, xylen findnear.XYLen) bool)
	AddOrUpdateToXY(o UUIDPosI, x, y int) error
	AddToXY(o UUIDPosI, x, y int) error
	DelByFilter(filter func(o UUIDPosI, x, y int) bool) error
	Del(o UUIDPosI) error
	UpdateToXY(o UUIDPosI, newx, newy int) error
}

type VPIXYObj

type VPIXYObj struct {
	I    int // xylen pos
	X, Y int // pos in uuidposmani.
	O    UUIDPosI
}

VPIXYObj use for viewport by xylenlist,

Jump to

Keyboard shortcuts

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