Documentation ¶
Overview ¶
positioned object managment in 2d space
Index ¶
- type UUIDPosMan
- func (fo *UUIDPosMan) AddOrUpdateToXY(o uuidposmani.UUIDPosI, x, y int) error
- func (fo *UUIDPosMan) AddToXY(o uuidposmani.UUIDPosI, x, y int) error
- func (fo *UUIDPosMan) Cleanup()
- func (fo *UUIDPosMan) Count() int
- func (fo *UUIDPosMan) Del(o uuidposmani.UUIDPosI) error
- func (fo *UUIDPosMan) DelByFilter(filter func(o uuidposmani.UUIDPosI, x, y int) bool) error
- func (fo *UUIDPosMan) Get1stObjAt(x, y int) uuidposmani.UUIDPosI
- func (fo *UUIDPosMan) GetAllList() uuidposmani.UUIDPosIList
- func (fo *UUIDPosMan) GetByUUID(id string) uuidposmani.UUIDPosI
- func (fo *UUIDPosMan) GetByXYAndUUID(id string, x, y int) (uuidposmani.UUIDPosI, error)
- func (fo *UUIDPosMan) GetObjListAt(x, y int) uuidposmani.UUIDPosIList
- func (fo *UUIDPosMan) GetVPIXYObjByXYLenList(xylenlist findnear.XYLenList, sx, sy int) []uuidposmani.VPIXYObj
- func (fo *UUIDPosMan) GetXYByUUID(id string) (int, int, bool)
- func (fo *UUIDPosMan) IterAll(iterfn func(o uuidposmani.UUIDPosI, x, y int) bool)
- func (fo *UUIDPosMan) IterByXYLenList(xylenlist findnear.XYLenList, sx, sy int, ...)
- func (fo *UUIDPosMan) Search1stByXYLenList(xylenlist findnear.XYLenList, sx, sy int, ...) (uuidposmani.UUIDPosI, int, int)
- func (fo *UUIDPosMan) String() string
- func (fo *UUIDPosMan) UpdateToXY(o uuidposmani.UUIDPosI, newx, newy int) error
- func (fo *UUIDPosMan) Wrap(x, y int) (int, int)
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) []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 (*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
Click to show internal directories.
Click to hide internal directories.