Documentation
¶
Index ¶
- Constants
- Variables
- func Distance(begX, begY, endX, endY int) float64
- func GetCityCost(cid int) int8
- func GetCityLV(cid int) int8
- func GetDepotCapacity(rid int) int
- func GetMaxDurable(cid int) int
- func GetYield(rid int) model.Yield
- func RoleNickName(rid int) string
- func TravelTime(speed, begX, begY, endX, endY int) int
- type NMArray
- type NationalMapMgr
- func (this *NationalMapMgr) IsCanBuild(x, y int) bool
- func (this *NationalMapMgr) IsCanBuildCity(x, y int) bool
- func (this *NationalMapMgr) Load()
- func (this *NationalMapMgr) MapResTypeLevel(x, y int) (bool, int8, int8)
- func (this *NationalMapMgr) PositionBuild(x, y int) (model.NationalMap, bool)
- func (this *NationalMapMgr) Scan(x, y int) []model.NationalMap
Constants ¶
View Source
const ScanHeight = 3
View Source
const ScanWith = 3
Variables ¶
View Source
var AMgr = &armyMgr{ armyById: make(map[int]*model.Army), armyByCityId: make(map[int][]*model.Army), armyByRId: make(map[int][]*model.Army), }
View Source
var GMgr = &generalMgr{ genByRole: make(map[int][]*model.General), genByGId: make(map[int]*model.General), }
View Source
var NMMgr = &NationalMapMgr{ conf: make(map[int]model.NationalMap), sysBuild: make(map[int]model.NationalMap), }
View Source
var RAttrMgr = &roleAttributeMgr{ attribute: make(map[int]*model.RoleAttribute), }
View Source
var RBMgr = &roleBuildMgr{ dbRB: make(map[int]*model.MapRoleBuild), posRB: make(map[int]*model.MapRoleBuild), roleRB: make(map[int][]*model.MapRoleBuild), giveUpRB: make(map[int64]map[int]*model.MapRoleBuild), destroyRB: make(map[int64]map[int]*model.MapRoleBuild), }
View Source
var RCMgr = &roleCityMgr{ dbCity: make(map[int]*model.MapRoleCity), posCity: make(map[int]*model.MapRoleCity), roleCity: make(map[int][]*model.MapRoleCity), }
View Source
var RFMgr = facilityMgr{ // contains filtered or unexported fields }
View Source
var RMgr = &roleMgr{ roles: make(map[int]*model.Role), }
View Source
var RResMgr = &roleResMgr{ rolesRes: make(map[int]*model.RoleRes), }
View Source
var SkillMgr = &skillMgr{ skillMap: make(map[int][]*model.Skill), }
View Source
var UnionMgr = &coalitionMgr{ unions: make(map[int]*model.Coalition), }
Functions ¶
func GetCityCost ¶
func GetMaxDurable ¶
func RoleNickName ¶
func TravelTime ¶
Types ¶
type NationalMapMgr ¶
type NationalMapMgr struct {
// contains filtered or unexported fields
}
func (*NationalMapMgr) IsCanBuild ¶
func (this *NationalMapMgr) IsCanBuild(x, y int) bool
func (*NationalMapMgr) IsCanBuildCity ¶
func (this *NationalMapMgr) IsCanBuildCity(x, y int) bool
func (*NationalMapMgr) Load ¶
func (this *NationalMapMgr) Load()
func (*NationalMapMgr) MapResTypeLevel ¶
func (this *NationalMapMgr) MapResTypeLevel(x, y int) (bool, int8, int8)
func (*NationalMapMgr) PositionBuild ¶
func (this *NationalMapMgr) PositionBuild(x, y int) (model.NationalMap, bool)
func (*NationalMapMgr) Scan ¶
func (this *NationalMapMgr) Scan(x, y int) []model.NationalMap
Click to show internal directories.
Click to hide internal directories.