idpos1s

package
v0.0.0-...-f971648 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

postioned object managment in 2d space

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(x, y int) idposi.IDPosManI

Types

type Manager

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

func (*Manager) Add

func (fo *Manager) Add(o idposi.IDPosI) bool

func (*Manager) All

func (fo *Manager) All() idposi.IDPosIList

func (*Manager) Count

func (fo *Manager) Count() int

func (*Manager) Del

func (fo *Manager) Del(o idposi.IDPosI) bool

func (*Manager) GetByID

func (fo *Manager) GetByID(id idgen.IDInt) idposi.IDPosI

func (*Manager) IterAt

func (fo *Manager) IterAt(pos [2]int, fn idposi.DoFn) bool

func (*Manager) IterAtXY

func (fo *Manager) IterAtXY(x, y int, fn idposi.DoFn) bool

func (*Manager) PosXYObjs

func (fo *Manager) PosXYObjs(x, y int) idposi.IDPosIList

func (*Manager) Set

func (fo *Manager) Set(o idposi.IDPosI) bool

func (*Manager) UpdateToPos

func (fo *Manager) UpdateToPos(o idposi.IDPosI, newpos [2]int) bool

Jump to

Keyboard shortcuts

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