tile_vector_int

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

Documentation

Index

Constants

View Source
const (
	HTML_tableheader = `<tr>
		<th>Name</th>
		<th>Value</th>
		</tr>`
	HTML_row = `<tr>
		<td>{{TileIndex $i}}</td>
		<td>{{$v}}</td>
		</tr>
		`
)

Variables

View Source
var IndexFn = template.FuncMap{
	"TileIndex": Index,
}

Functions

func Index

func Index(i int) string

Types

type TileVector_int

type TileVector_int [tile.Tile_Count]int

func (*TileVector_int) Add

func (es *TileVector_int) Add(e tile.Tile, v int)

func (*TileVector_int) Dec

func (es *TileVector_int) Dec(e tile.Tile)

func (TileVector_int) Get

func (es TileVector_int) Get(e tile.Tile) int

func (*TileVector_int) Inc

func (es *TileVector_int) Inc(e tile.Tile)

func (TileVector_int) Iter

func (es TileVector_int) Iter(fn func(i tile.Tile, v int) bool) bool

Iter return true if iter stop, return false if iter all fn return true to stop iter

func (*TileVector_int) SetIfGt

func (es *TileVector_int) SetIfGt(e tile.Tile, v int)

func (TileVector_int) String

func (es TileVector_int) String() string

func (*TileVector_int) ToWeb

func (TileVector_int) VectorAdd

func (es TileVector_int) VectorAdd(arg TileVector_int) TileVector_int

VectorAdd add element to element

func (TileVector_int) VectorSub

func (es TileVector_int) VectorSub(arg TileVector_int) TileVector_int

VectorSub sub element to element

Jump to

Keyboard shortcuts

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