Fight
typeFight is one recorded battle.
Value
cagematch.Fight
Entry
typeEntry is one fighter's ladder record. Points: win 3, draw 1, loss 0.
Value
cagematch.Entry
fights
[]*cagematch.Fight- OID
- 0526d7…8f09:297
fights details
ladder
map[string]*cagematch.Entry- OID
- 0526d7…8f09:5
ladder details
ladderOrder
[]string- OID
- 0526d7…8f09:216
ladderOrder details
assert
func(cond bool, msg string)- OID
- 0526d7…8f09:7
assert details
Challenge
func(a string, b string) intChallenge runs a fight between two roster fighters and records it. Anyone may call it; the fight is deterministic and its recap public. Returns the fight id.
- OID
- 0526d7…8f09:9
Challenge details
record
func(r engine.Recap)- OID
- 0526d7…8f09:10
record details
entry
func(name string) *cagematch.Entry- OID
- 0526d7…8f09:11
entry details
winnerName
func(f *cagematch.Fight) string- OID
- 0526d7…8f09:12
winnerName details
FightCount
func() intFightCount returns how many fights have been recorded.
- OID
- 0526d7…8f09:13
FightCount details
GetFight
func(id int) cagematch.FightGetFight returns a copy of a recorded fight. Panics if unknown.
- OID
- 0526d7…8f09:14
GetFight details
Leaderboard
func() []cagematch.EntryLeaderboard returns ladder entries sorted by points, then name.
- OID
- 0526d7…8f09:15
Leaderboard details
less
func(a cagematch.Entry, b cagematch.Entry) bool- OID
- 0526d7…8f09:16
less details
RosterNames
func() []stringRosterNames lists the fighters available to challenge with.
- OID
- 0526d7…8f09:17
RosterNames details
FightRecapJSON
func(id int) stringFightRecapJSON renders a fight recap as compact JSON. Frames are flat arrays: \[round, ax, ay, bx, by, ahp, bhp, aact, adir, bact, bdir, admg, bdmg].
- OID
- 0526d7…8f09:18
FightRecapJSON details
Render
func(path string) stringRender is the gnoweb entry point. Routes: "" home, "f/\<id>" a fight.
- OID
- 0526d7…8f09:19
Render details
renderHome
func() string- OID
- 0526d7…8f09:21
renderHome details
renderFight
func(f *cagematch.Fight) string- OID
- 0526d7…8f09:22
renderFight details
pos
func(p engine.Pos) string- OID
- 0526d7…8f09:23