代码拉取完成,页面将自动刷新
同步操作将从 tfcolin/ftbt 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package ftbt
type SelObjStatus int
const (
SOS_PEOPLE SelObjStatus = 0
SOS_MOVE_OBJ SelObjStatus = 1
SOS_TECH_OBJ SelObjStatus = 2
)
/* all UI event is driven before data update */
type UINote interface {
/* DoTech triger before HPDown, Loc.. */
DoTech (itech, p_src, p_obj, l_obj int)
HPDown (ip, loc, hp, dhp int)
PeopleIn (ip, loc int)
PeopleOut (ip, loc int)
/* PeopleMove trigger after PeopleStep */
PeopleMove (ip, loc_start, loc_end int)
PeopleStep (ip, loc, dir int)
/* att_def: 0: att; 1: def */
LocBuf (loc, att_def, val, dur int)
LocFly (loc, weight, dur int)
LocDisableLong (loc, dur int)
LoadMapDone ()
GameStart ()
/* win_opt == -1: 退出*/
GameOver (win_opt int)
}
type UISelect interface {
TurnStart (opt int)
/* return -1 to quit, -2 to end turn (only for SOS_PEOPLE)
* valid_loc is only valid in SOS_MOVE_OBJ status
* */
SelObj (status SelObjStatus, itech int, valid_loc []int) int
/* return -1 to give up tech use */
SelTech (ip int) int
/* return true to confirm */
Confirm (msg string) bool
}
type UI struct {
note UINote
sel [2]UISelect
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。