Documentation ¶
Index ¶
- Constants
- Variables
- func Index(i int) string
- type TileVector_int
- func (es *TileVector_int) Add(e tile.Tile, v int)
- func (es *TileVector_int) Dec(e tile.Tile)
- func (es TileVector_int) Get(e tile.Tile) int
- func (es *TileVector_int) Inc(e tile.Tile)
- func (es TileVector_int) Iter(fn func(i tile.Tile, v int) bool) bool
- func (es *TileVector_int) SetIfGt(e tile.Tile, v int)
- func (es TileVector_int) String() string
- func (es *TileVector_int) ToWeb(w http.ResponseWriter, r *http.Request) error
- func (es TileVector_int) VectorAdd(arg TileVector_int) TileVector_int
- func (es TileVector_int) VectorSub(arg TileVector_int) TileVector_int
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 ¶
Types ¶
type TileVector_int ¶
type TileVector_int [tile.Tile_Count]int
func (*TileVector_int) Dec ¶
func (es *TileVector_int) Dec(e tile.Tile)
func (*TileVector_int) Inc ¶
func (es *TileVector_int) Inc(e tile.Tile)
func (TileVector_int) Iter ¶
Iter return true if iter stop, return false if iter all fn return true to stop iter
func (TileVector_int) String ¶
func (es TileVector_int) String() string
func (*TileVector_int) ToWeb ¶
func (es *TileVector_int) ToWeb(w http.ResponseWriter, r *http.Request) error
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
Click to show internal directories.
Click to hide internal directories.