Documentation ¶
Index ¶
- type AccountInfo
- type ActiveObjBuff
- type ActiveObjClient
- type CarryObjClientOnFloor
- type CarryObjEqByLen
- type DangerObjClient
- type EquipClient
- type EquipClientByUUID
- type FieldObjByType
- type FieldObjClient
- type FloorInfo
- type FloorInfoByName
- type NotiActivateTrap_data
- type NotiAgeing_data
- type NotiBroadcast_data
- type NotiDeath_data
- type NotiEnterFloor_data
- type NotiEnterTower_data
- type NotiFieldObjList_data
- type NotiFloorTiles_data
- type NotiForgetFloor_data
- type NotiFoundFieldObj_data
- type NotiInvalid_data
- type NotiLeaveFloor_data
- type NotiLeaveTower_data
- type NotiReadyToRebirth_data
- type NotiRebirthed_data
- type NotiVPObjList_data
- type NotiVPTiles_data
- type PlayerActiveObjInfo
- type PotionClient
- type PotionClientByUUID
- type ReqAIPlay_data
- type ReqAchieveInfo_data
- type ReqActTeleport_data
- type ReqAdminActiveObjCmd_data
- type ReqAdminAddEquip_data
- type ReqAdminAddExp_data
- type ReqAdminAddMoney_data
- type ReqAdminAddPotion_data
- type ReqAdminAddScroll_data
- type ReqAdminCondition_data
- type ReqAdminFloorCmd_data
- type ReqAdminFloorMap_data
- type ReqAdminFloorMove_data
- type ReqAdminForgetFloor_data
- type ReqAdminPotionEffect_data
- type ReqAdminScrollEffect_data
- type ReqAdminTeleport_data
- type ReqAdminTowerCmd_data
- type ReqAttackLong_data
- type ReqAttackWide_data
- type ReqAttack_data
- type ReqChat_data
- type ReqDrinkPotion_data
- type ReqDrop_data
- type ReqEnterPortal_data
- type ReqEquip_data
- type ReqHeartbeat_data
- type ReqInvalid_data
- type ReqKillSelf_data
- type ReqLogin_data
- type ReqMeditate_data
- type ReqMoveFloor_data
- type ReqMove_data
- type ReqPickup_data
- type ReqReadScroll_data
- type ReqRebirth_data
- type ReqRecycle_data
- type ReqUnEquip_data
- type ReqVisitFloorList_data
- type RspAIPlay_data
- type RspAchieveInfo_data
- type RspActTeleport_data
- type RspAdminActiveObjCmd_data
- type RspAdminAddEquip_data
- type RspAdminAddExp_data
- type RspAdminAddMoney_data
- type RspAdminAddPotion_data
- type RspAdminAddScroll_data
- type RspAdminCondition_data
- type RspAdminFloorCmd_data
- type RspAdminFloorMap_data
- type RspAdminFloorMove_data
- type RspAdminForgetFloor_data
- type RspAdminPotionEffect_data
- type RspAdminScrollEffect_data
- type RspAdminTeleport_data
- type RspAdminTowerCmd_data
- type RspAttackLong_data
- type RspAttackWide_data
- type RspAttack_data
- type RspChat_data
- type RspDrinkPotion_data
- type RspDrop_data
- type RspEnterPortal_data
- type RspEquip_data
- type RspHeartbeat_data
- type RspInvalid_data
- type RspKillSelf_data
- type RspLogin_data
- type RspMeditate_data
- type RspMoveFloor_data
- type RspMove_data
- type RspPickup_data
- type RspReadScroll_data
- type RspRebirth_data
- type RspRecycle_data
- type RspUnEquip_data
- type RspVisitFloorList_data
- type ScrollClient
- type ScrollClientByUUID
- type ServiceInfo
- type TowerInfo
- type TurnResultClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type ActiveObjBuff ¶
type ActiveObjClient ¶
type ActiveObjClient struct { UUID string NickName string Faction factiontype.FactionType EquippedPo []*EquipClient Conditions condition_flag.ConditionFlag // not all condition X int Y int Alive bool Chat string // turn result Act c2t_idcmd.CommandID Dir way9type.Way9Type Result c2t_error.ErrorCode DamageGive int DamageTake int }
type CarryObjClientOnFloor ¶
type CarryObjClientOnFloor struct { UUID string X int Y int CarryingObjectType carryingobjecttype.CarryingObjectType // for equip EquipType equipslottype.EquipSlotType Faction factiontype.FactionType // for potion PotionType potiontype.PotionType // for scroll ScrollType scrolltype.ScrollType // for money Value int }
func (CarryObjClientOnFloor) String ¶
func (po CarryObjClientOnFloor) String() string
type CarryObjEqByLen ¶
type CarryObjEqByLen []*EquipClient
func (CarryObjEqByLen) Len ¶
func (objList CarryObjEqByLen) Len() int
func (CarryObjEqByLen) Less ¶
func (objList CarryObjEqByLen) Less(i, j int) bool
func (CarryObjEqByLen) Sort ¶
func (objList CarryObjEqByLen) Sort()
func (CarryObjEqByLen) Swap ¶
func (objList CarryObjEqByLen) Swap(i, j int)
type DangerObjClient ¶
type DangerObjClient struct { UUID string OwnerID string DangerType dangertype.DangerType X int Y int AffectRate float64 }
type EquipClient ¶
type EquipClient struct { UUID string Name string EquipType equipslottype.EquipSlotType Faction factiontype.FactionType BiasLen float64 }
func (EquipClient) GetBias ¶
func (po EquipClient) GetBias() bias.Bias
func (EquipClient) String ¶
func (po EquipClient) String() string
func (EquipClient) Weight ¶
func (po EquipClient) Weight() float64
type EquipClientByUUID ¶
type EquipClientByUUID []*EquipClient
func (EquipClientByUUID) Len ¶
func (objList EquipClientByUUID) Len() int
func (EquipClientByUUID) Less ¶
func (objList EquipClientByUUID) Less(i, j int) bool
func (EquipClientByUUID) Sort ¶
func (objList EquipClientByUUID) Sort()
func (EquipClientByUUID) Swap ¶
func (objList EquipClientByUUID) Swap(i, j int)
type FieldObjByType ¶
type FieldObjByType []*FieldObjClient
func (FieldObjByType) Len ¶
func (objList FieldObjByType) Len() int
func (FieldObjByType) Less ¶
func (objList FieldObjByType) Less(i, j int) bool
func (FieldObjByType) Sort ¶
func (objList FieldObjByType) Sort()
func (FieldObjByType) Swap ¶
func (objList FieldObjByType) Swap(i, j int)
type FieldObjClient ¶
type FieldObjClient struct { ID string X int Y int ActType fieldobjacttype.FieldObjActType DisplayType fieldobjdisplaytype.FieldObjDisplayType Message string }
func (*FieldObjClient) GetUUID ¶
func (p *FieldObjClient) GetUUID() string
type FloorInfo ¶
type FloorInfo struct { Name string W int H int Tiles int Bias bias.Bias TurnPerSec float64 VisitCount int }
func (FloorInfo) VisitableCount ¶
type FloorInfoByName ¶
type FloorInfoByName []*FloorInfo
func (FloorInfoByName) Len ¶
func (objList FloorInfoByName) Len() int
func (FloorInfoByName) Less ¶
func (objList FloorInfoByName) Less(i, j int) bool
func (FloorInfoByName) Sort ¶
func (objList FloorInfoByName) Sort()
func (FloorInfoByName) Swap ¶
func (objList FloorInfoByName) Swap(i, j int)
type NotiActivateTrap_data ¶
type NotiActivateTrap_data struct { FieldObjAct fieldobjacttype.FieldObjActType Triggered bool }
type NotiAgeing_data ¶
type NotiAgeing_data struct {
FloorName string
}
type NotiBroadcast_data ¶
type NotiBroadcast_data struct {
Msg string
}
type NotiDeath_data ¶
type NotiDeath_data struct {
Dummy uint8
}
type NotiEnterFloor_data ¶
type NotiEnterFloor_data struct {
FI *FloorInfo
}
type NotiEnterTower_data ¶
type NotiEnterTower_data struct {
TowerInfo *TowerInfo
}
type NotiFieldObjList_data ¶
type NotiFieldObjList_data struct { FI *FloorInfo FOList []*FieldObjClient }
FieldObjList // for rebuild known floor
type NotiFloorTiles_data ¶
type NotiFloorTiles_data struct { FI *FloorInfo X int // X start position, not center Y int // Y start position, not center Tiles tilearea.TileArea }
NotiFloorTiles_data used for floor map, reconnect client
type NotiForgetFloor_data ¶
type NotiForgetFloor_data struct {
FloorName string
}
type NotiFoundFieldObj_data ¶
type NotiFoundFieldObj_data struct { FloorName string FieldObj *FieldObjClient }
type NotiInvalid_data ¶
type NotiInvalid_data struct {
Dummy uint8
}
type NotiLeaveFloor_data ¶
type NotiLeaveFloor_data struct {
FI *FloorInfo
}
type NotiLeaveTower_data ¶
type NotiLeaveTower_data struct {
TowerInfo *TowerInfo
}
type NotiReadyToRebirth_data ¶
type NotiReadyToRebirth_data struct {
Dummy uint8
}
type NotiRebirthed_data ¶
type NotiRebirthed_data struct {
Dummy uint8
}
type NotiVPObjList_data ¶
type NotiVPObjList_data struct { Time time.Time `prettystring:"simple"` FloorName string ActiveObj *PlayerActiveObjInfo ActiveObjList []*ActiveObjClient CarryObjList []*CarryObjClientOnFloor FieldObjList []*FieldObjClient DangerObjList []*DangerObjClient }
type NotiVPTiles_data ¶
type NotiVPTiles_data struct { FloorName string VPX int // viewport center X VPY int // viewport center Y VPTiles *viewportdata.ViewportTileArea2 }
NotiVPTiles_data contains tile info center from pos
type PlayerActiveObjInfo ¶
type PlayerActiveObjInfo struct { Bias bias.Bias Conditions condition_flag.ConditionFlag Exp int TotalAO int // total activeobject count Ranking int // ranking / totalao Death int Kill int Sight float64 HP int HPMax int SP int SPMax int AIPlan aiplan.AIPlan EquippedPo []*EquipClient EquipBag []*EquipClient PotionBag []*PotionClient ScrollBag []*ScrollClient Wallet int Wealth int ActiveBuff []*ActiveObjBuff AP float64 Act *aoactreqrsp.ActReqRsp TurnResult []TurnResultClient }
func (PlayerActiveObjInfo) CalcDamageGive ¶
func (pao PlayerActiveObjInfo) CalcDamageGive() float64
func (PlayerActiveObjInfo) CalcDamageTake ¶
func (pao PlayerActiveObjInfo) CalcDamageTake() float64
func (PlayerActiveObjInfo) CalcWeight ¶
func (pao PlayerActiveObjInfo) CalcWeight() float64
func (PlayerActiveObjInfo) Exist ¶
func (pao PlayerActiveObjInfo) Exist(id string) bool
type PotionClient ¶
type PotionClient struct { UUID string PotionType potiontype.PotionType }
func (PotionClient) String ¶
func (po PotionClient) String() string
func (PotionClient) Weight ¶
func (po PotionClient) Weight() int
type PotionClientByUUID ¶
type PotionClientByUUID []*PotionClient
func (PotionClientByUUID) Len ¶
func (objList PotionClientByUUID) Len() int
func (PotionClientByUUID) Less ¶
func (objList PotionClientByUUID) Less(i, j int) bool
func (PotionClientByUUID) Sort ¶
func (objList PotionClientByUUID) Sort()
func (PotionClientByUUID) Swap ¶
func (objList PotionClientByUUID) Swap(i, j int)
type ReqActTeleport_data ¶
type ReqActTeleport_data struct {
Dummy uint8
}
type ReqAdminActiveObjCmd_data ¶
AdminActiveObjCmd generic cmd
type ReqAdminAddEquip_data ¶
type ReqAdminAddEquip_data struct { Faction factiontype.FactionType Equip equipslottype.EquipSlotType }
AdminAddEquip add random equip to inven
type ReqAdminAddExp_data ¶
type ReqAdminAddExp_data struct {
Exp int
}
AdminAddExp add arg to battle exp
type ReqAdminAddMoney_data ¶
type ReqAdminAddMoney_data struct {
Money int
}
AdminAddMoney add arg money to inven
type ReqAdminAddPotion_data ¶
type ReqAdminAddPotion_data struct {
Potion potiontype.PotionType
}
AdminAddPotion add arg potion to inven
type ReqAdminAddScroll_data ¶
type ReqAdminAddScroll_data struct {
Scroll scrolltype.ScrollType
}
AdminAddScroll add arg scroll to inven
type ReqAdminCondition_data ¶
AdminCondition add arg condition for 100 turn
type ReqAdminFloorCmd_data ¶
AdminFloorCmd generic cmd
type ReqAdminFloorMap_data ¶
type ReqAdminFloorMap_data struct {
Dummy uint8 // change as you need
}
AdminFloorMap complete current floor map
type ReqAdminFloorMove_data ¶
type ReqAdminFloorMove_data struct {
Floor string
}
AdminFloorMove Next Before floorUUID
type ReqAdminForgetFloor_data ¶
type ReqAdminForgetFloor_data struct {
Dummy uint8 // change as you need
}
AdminForgetFloor forget current floor map
type ReqAdminPotionEffect_data ¶
type ReqAdminPotionEffect_data struct {
Potion potiontype.PotionType
}
AdminPotionEffect buff by arg potion type
type ReqAdminScrollEffect_data ¶
type ReqAdminScrollEffect_data struct {
Scroll scrolltype.ScrollType
}
AdminScrollEffect buff by arg Scroll type
type ReqAdminTeleport_data ¶
AdminTeleport random pos in floor
type ReqAdminTowerCmd_data ¶
AdminTowerCmd generic cmd
type ReqAttackLong_data ¶
type ReqAttackWide_data ¶
type ReqAttack_data ¶
type ReqDrinkPotion_data ¶
type ReqDrinkPotion_data struct {
UUID string
}
type ReqDrop_data ¶
type ReqDrop_data struct {
UUID string
}
type ReqEnterPortal_data ¶
type ReqEnterPortal_data struct {
Dummy uint8
}
type ReqEquip_data ¶
type ReqEquip_data struct {
UUID string
}
type ReqHeartbeat_data ¶
Heartbeat
type ReqKillSelf_data ¶
type ReqKillSelf_data struct {
Dummy uint8
}
type ReqLogin_data ¶
Login
type ReqMeditate_data ¶
type ReqMeditate_data struct {
Dummy uint8
}
type ReqMove_data ¶
type ReqPickup_data ¶
type ReqPickup_data struct {
UUID string
}
type ReqReadScroll_data ¶
type ReqReadScroll_data struct {
UUID string
}
type ReqRecycle_data ¶
type ReqRecycle_data struct {
UUID string
}
type ReqUnEquip_data ¶
type ReqUnEquip_data struct {
UUID string
}
type ReqVisitFloorList_data ¶
type ReqVisitFloorList_data struct {
Dummy uint8 // change as you need
}
VisitFloorList floor info of visited
type RspAIPlay_data ¶
type RspAIPlay_data struct {
Dummy uint8
}
type RspAchieveInfo_data ¶
type RspAchieveInfo_data struct { AchieveStat achievetype_vector_float64.AchieveTypeVector_float64 `prettystring:"simple"` PotionStat potiontype_vector_int.PotionTypeVector_int `prettystring:"simple"` ScrollStat scrolltype_vector_int.ScrollTypeVector_int `prettystring:"simple"` FOActStat fieldobjacttype_vector_int.FieldObjActTypeVector_int `prettystring:"simple"` AOActionStat c2t_idcmd_stats.CommandIDStat `prettystring:"simple"` ConditionStat condition_vector_int.ConditionVector_int `prettystring:"simple"` }
type RspActTeleport_data ¶
type RspActTeleport_data struct {
Dummy uint8
}
type RspAdminActiveObjCmd_data ¶
type RspAdminActiveObjCmd_data struct {
Dummy uint8
}
type RspAdminAddEquip_data ¶
type RspAdminAddEquip_data struct {
Dummy uint8 // change as you need
}
AdminAddEquip add random equip to inven
type RspAdminAddExp_data ¶
type RspAdminAddExp_data struct {
Dummy uint8 // change as you need
}
AdminAddExp add arg to battle exp
type RspAdminAddMoney_data ¶
type RspAdminAddMoney_data struct {
Dummy uint8 // change as you need
}
AdminAddMoney add arg money to inven
type RspAdminAddPotion_data ¶
type RspAdminAddPotion_data struct {
Dummy uint8 // change as you need
}
AdminAddPotion add arg potion to inven
type RspAdminAddScroll_data ¶
type RspAdminAddScroll_data struct {
Dummy uint8 // change as you need
}
AdminAddScroll add arg scroll to inven
type RspAdminCondition_data ¶
type RspAdminCondition_data struct {
Dummy uint8 // change as you need
}
AdminCondition add arg condition for 100 turn
type RspAdminFloorCmd_data ¶
type RspAdminFloorCmd_data struct {
Dummy uint8
}
type RspAdminFloorMap_data ¶
type RspAdminFloorMap_data struct {
Dummy uint8 // change as you need
}
AdminFloorMap complete current floor map
type RspAdminFloorMove_data ¶
type RspAdminFloorMove_data struct {
Dummy uint8
}
type RspAdminForgetFloor_data ¶
type RspAdminForgetFloor_data struct {
Dummy uint8 // change as you need
}
AdminForgetFloor forget current floor map
type RspAdminPotionEffect_data ¶
type RspAdminPotionEffect_data struct {
Dummy uint8 // change as you need
}
AdminPotionEffect buff by arg potion type
type RspAdminScrollEffect_data ¶
type RspAdminScrollEffect_data struct {
Dummy uint8 // change as you need
}
AdminScrollEffect buff by arg Scroll type
type RspAdminTeleport_data ¶
type RspAdminTeleport_data struct {
Dummy uint8
}
type RspAdminTowerCmd_data ¶
type RspAdminTowerCmd_data struct {
Dummy uint8
}
type RspAttackLong_data ¶
type RspAttackLong_data struct {
Dummy uint8
}
type RspAttackWide_data ¶
type RspAttackWide_data struct {
Dummy uint8
}
type RspAttack_data ¶
type RspAttack_data struct {
Dummy uint8
}
type RspChat_data ¶
type RspChat_data struct {
Dummy uint8
}
type RspDrinkPotion_data ¶
type RspDrinkPotion_data struct {
Dummy uint8
}
type RspDrop_data ¶
type RspDrop_data struct {
Dummy uint8
}
type RspEnterPortal_data ¶
type RspEnterPortal_data struct {
Dummy uint8
}
type RspEquip_data ¶
type RspEquip_data struct {
Dummy uint8
}
type RspHeartbeat_data ¶
type RspInvalid_data ¶
type RspInvalid_data struct {
Dummy uint8
}
type RspKillSelf_data ¶
type RspKillSelf_data struct {
Dummy uint8
}
type RspLogin_data ¶
type RspLogin_data struct { ServiceInfo *ServiceInfo AccountInfo *AccountInfo }
type RspMeditate_data ¶
type RspMeditate_data struct {
Dummy uint8
}
type RspMoveFloor_data ¶
type RspMoveFloor_data struct {
Dummy uint8
}
type RspMove_data ¶
type RspPickup_data ¶
type RspPickup_data struct {
Dummy uint8
}
type RspReadScroll_data ¶
type RspReadScroll_data struct {
Dummy uint8
}
type RspRebirth_data ¶
type RspRebirth_data struct {
Dummy uint8
}
type RspRecycle_data ¶
type RspRecycle_data struct {
Dummy uint8
}
type RspUnEquip_data ¶
type RspUnEquip_data struct {
Dummy uint8
}
type RspVisitFloorList_data ¶
type RspVisitFloorList_data struct {
FloorList []*FloorInfo
}
VisitFloorList floor info of visited
type ScrollClient ¶
type ScrollClient struct { UUID string ScrollType scrolltype.ScrollType }
func (ScrollClient) String ¶
func (po ScrollClient) String() string
func (ScrollClient) Weight ¶
func (po ScrollClient) Weight() int
type ScrollClientByUUID ¶
type ScrollClientByUUID []*ScrollClient
func (ScrollClientByUUID) Len ¶
func (objList ScrollClientByUUID) Len() int
func (ScrollClientByUUID) Less ¶
func (objList ScrollClientByUUID) Less(i, j int) bool
func (ScrollClientByUUID) Sort ¶
func (objList ScrollClientByUUID) Sort()
func (ScrollClientByUUID) Swap ¶
func (objList ScrollClientByUUID) Swap(i, j int)
type ServiceInfo ¶
func (*ServiceInfo) StringForm ¶
func (info *ServiceInfo) StringForm() string
type TowerInfo ¶
type TowerInfo struct { UUID string Name string Factor [3]int64 `prettystring:"simple"` TotalFloorNum int StartTime time.Time `prettystring:"simple"` TurnPerSec float64 }
func (*TowerInfo) StringForm ¶
type TurnResultClient ¶
type TurnResultClient struct { ResultType turnresulttype.TurnResultType DstUUID string Arg float64 }
func (TurnResultClient) String ¶
func (ifa TurnResultClient) String() string