turnaction_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>{{TurnActionIndex $i}}</td>
		<td>{{$v}}</td>
		</tr>
		`
)

Variables

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

Functions

func Index

func Index(i int) string

Types

type TurnActionVector_int

type TurnActionVector_int [turnaction.TurnAction_Count]int

func (*TurnActionVector_int) Add

func (*TurnActionVector_int) Dec

func (TurnActionVector_int) Get

func (*TurnActionVector_int) Inc

func (TurnActionVector_int) Iter

func (es TurnActionVector_int) Iter(fn func(i turnaction.TurnAction, v int) bool) bool

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

func (*TurnActionVector_int) SetIfGt

func (es *TurnActionVector_int) SetIfGt(e turnaction.TurnAction, v int)

func (TurnActionVector_int) String

func (es TurnActionVector_int) String() string

func (*TurnActionVector_int) ToWeb

func (TurnActionVector_int) VectorAdd

VectorAdd add element to element

func (TurnActionVector_int) VectorSub

VectorSub sub element to element

Jump to

Keyboard shortcuts

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