Versions in this module Expand all Collapse all v1 v1.0.2 Apr 29, 2024 v1.0.0 Apr 29, 2024 Changes in this version + const NEIGHBOUR_WEIGHT_SCALE + const NUM_WTECH + const TC_ABI_BUF + const TC_DEF_BUF + const TC_DISABLE_LONG + const TC_FLY + const TC_PEOPLE + const TST_LOSS + const TST_NORMAL + const TST_QUIT + const TST_WIN + var AI_MAX_BUF_SCORE int + var AI_MAX_BUF_VALUE int + var AI_MAX_DEF_DIST int + var AI_MAX_DEF_SCORE int + var AI_MAX_MOVE_DIST int + var AI_MAX_MOVE_SCORE int + var AI_MAX_TECH_BUF_VMD int + var AI_MAX_TECH_DIST int + var AI_MAX_TECH_DL_VMD int + var AI_MAX_TECH_FLY_VMD int + var AI_MAX_TECH_SCORE int + var MAP_SIZE [2]int + var MAX_ABI int + var MAX_FLY_WEIGHT int + func AICalAllDist() + func AICalTechObjs(ip int, move_loc []int) + func AIMakeDecision(ip int, move_loc []int) + func AISetArg(ip int, goal int, fact_att, fact_def, fact_move int) + func CalDist(center int, weight []int, dist []int) + func Do() (st int) + func DoOneTurn() (status int) + func DoPeople(ip int, ui UI) bool + func DoTech(ip int, itech int, obj_loc int, ui UINote) (is_err bool) + func GetAoeRange(cloc int, d int) (aloc []int) + func IAbs(a int) int + func Init(ui_note UINote, ui_select [2]UISelect, ftech, fmap io.Reader, ...) bool + func InitAI() + func InitMiniPath() + func LoadAI(ftech, fmap io.Reader) bool + func LoadAIBase(fin io.Reader) bool + func LoadAIPeople(fin io.Reader) bool + func LoadDX(fin io.Reader) bool + func LoadIntro(fin_name string) + func LoadMap(fin io.Reader, ui UINote) bool + func LoadPeople(fin io.Reader, ui UINote) bool + func LoadTech(fin io.Reader) bool + func Loc2XY(loc int) (x, y int) + func LocDist(l1, l2 int) int + func MapClearPath(is_valid bool) + func MapUpdataAux() + func MapUpdateWeight(opt int) + func MovePeople(ip int, iloc int, ui UINote) + func RemovePeople(ip int, ui UINote) + func SetMovingRange(ip int) (valid_loc []int) + func SetPeople(ip int, iloc int, ui UINote) + func SetTechRange(ip int, itech int) + func StartTurnPeople() + func XY2Loc(x, y int) (loc int) + type AIPeople struct + type Location struct + type MPEdge struct + type NCursesUI struct + func InitNCursesUI() *NCursesUI + func (nui *NCursesUI) CenterCursor() + func (nui *NCursesUI) DoTech(itech, p_src, p_obj, l_obj int) + func (nui *NCursesUI) DrawGrid(x, y int, hp_down int) + func (nui *NCursesUI) DrawInfo() + func (nui *NCursesUI) DrawMapStatic() + func (nui *NCursesUI) End() + func (nui *NCursesUI) GameOver(win_opt int) + func (nui *NCursesUI) GameStart() + func (nui *NCursesUI) HPDown(ip, loc, hp, dhp int) + func (nui *NCursesUI) LoadMapDone() + func (nui *NCursesUI) LocBuf(loc, att_def, val, dur int) + func (nui *NCursesUI) LocDisableLong(loc, dur int) + func (nui *NCursesUI) LocFly(loc, weight, dur int) + func (nui *NCursesUI) PeopleIn(ip, loc int) + func (nui *NCursesUI) PeopleMove(ip, loc_start, loc_end int) + func (nui *NCursesUI) PeopleOut(ip, loc int) + func (nui *NCursesUI) PeopleStep(ip, loc, dir int) + func (nui *NCursesUI) ShowGrid(x, y int) + func (nui *NCursesUI) ShowMsg(msg string) + func (nui *NCursesUI) TurnStart(opt int) + func (nui *NCursesUI) Update() + func (nui *NCursesUI) UpdateCursor(cx, cy int, hp_down int) + func (nui *NCursesUI) UpdateScroll() + type NCursesUIAISelect struct + func InitNCursesUIAISelect(opt int, nui *NCursesUI) *NCursesUIAISelect + func (nuis *NCursesUIAISelect) Confirm(msg string) bool + func (nuis *NCursesUIAISelect) SelObj(status SelObjStatus, itech int, valid_loc []int) int + func (nuis *NCursesUIAISelect) SelTech(ip int) int + func (nuis *NCursesUIAISelect) TurnStart(opt int) + type NCursesUISelect struct + func InitNCursesUISelect(opt int, nui *NCursesUI) *NCursesUISelect + func (nuis *NCursesUISelect) BrowseOperation(c goncurses.Key, cur_p *int) + func (nuis *NCursesUISelect) Confirm(msg string) bool + func (nuis *NCursesUISelect) SelObj(status SelObjStatus, itech int, valid_loc []int) int + func (nuis *NCursesUISelect) SelTech(ip int) int + func (nuis *NCursesUISelect) TurnStart(opt int) + type People struct + type SelObjStatus int + const SOS_MOVE_OBJ + const SOS_PEOPLE + const SOS_TECH_OBJ + type Tech struct + type UI struct + type UINote interface + DoTech func(itech, p_src, p_obj, l_obj int) + GameOver func(win_opt int) + GameStart func() + HPDown func(ip, loc, hp, dhp int) + LoadMapDone func() + LocBuf func(loc, att_def, val, dur int) + LocDisableLong func(loc, dur int) + LocFly func(loc, weight, dur int) + PeopleIn func(ip, loc int) + PeopleMove func(ip, loc_start, loc_end int) + PeopleOut func(ip, loc int) + PeopleStep func(ip, loc, dir int) + type UISelect interface + Confirm func(msg string) bool + SelObj func(status SelObjStatus, itech int, valid_loc []int) int + SelTech func(ip int) int + TurnStart func(opt int)