Documentation
¶
Index ¶
Constants ¶
View Source
const ( ActiveObjectI_HTML_tableheader = ` <tr> <td>ActiveObj</td> <td>bias</td> <td>level</td> <td>exp</td> <td>AI</td> </tr> ` ActiveObjectI_HTML_row = `` /* 316-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveObjectI ¶
type ActiveObjectI interface { Cleanup() GetUUID() string // GetNickName() string String() string GetInven() InventoryI GetHP() float64 // GetSP() float64 GetHPRate() float64 GetSPRate() float64 IsAlive() bool Rebirth() EnterFloor(f FloorI) Death(f FloorI) GetBias() bias.Bias AddBattleExp(v float64) // for sort GetExpCopy() float64 UpdateExpCopy() NeedCharge(limit float64) bool Charged(limit float64) bool ReduceSP(apToReduce float64) (apReduced float64) ReduceHP(hpToReduce float64) (hpReduced float64) GetTurnResultList() []turnresult.TurnResult SetTurnActReqRsp(actrsp *aoactreqrsp.ActReqRsp) GetTurnActReqRsp() *aoactreqrsp.ActReqRsp SetNeedTANoti() GetAndClearNeedTANoti() bool GetAP() float64 SetReq2Handle(req *aoactreqrsp.Act) GetClearReq2Handle() *aoactreqrsp.Act GetTurnData() *aoturndata.ActiveObjTurnData GetBuffManager() *activebuff.BuffManager GetActiveObjType() aotype.ActiveObjType GetRespawnType() respawntype.RespawnType IsAIUse() bool SetUseAI(b bool) RunAI(TurnCount int) GetChat() string SetChat(c string, TurnCount int) GetRemainTurn2Rebirth() int TryRebirth() error GetCurrentFloor() FloorI PrepareNewTurn(TurnCount int) ApplyTurnAct() AppendTurnResult(turnResult turnresult.TurnResult) ApplyDamageFromDangerObj() bool ApplyHPSPDecByActOnTile(hp, sp float64) Kill(dst ActiveObjectI) DoEquip(poid string) error DoUnEquip(poid string) error DoUseCarryObj(poid string) error DoRecycleCarryObj(poid string) error DoAIOnOff(onoff bool) error DoPickup(po CarryingObjectI) error // for tower GetHomeFloor() FloorI ToPacket_ActiveObjClient(x, y int) *csprotocol.ActiveObjClient ToPacket_PlayerActiveObjInfo() *csprotocol.PlayerActiveObjInfo GetAchieveStat() *achievetype_vector_float64.AchieveTypeVector_float64 GetFieldObjActStat() *fieldobjacttype_vector_int.FieldObjActTypeVector_int GetPotionStat() *potiontype_vector_int.PotionTypeVector_int GetScrollStat() *scrolltype_vector_int.ScrollTypeVector_int GetActStat() *turnaction_vector_int.TurnActionVector_int GetConditionStat() *condition_vector_int.ConditionVector_int UpdateVisitAreaBySightMat2(f FloorI, vpCenterX, vpCenterY int, sightMat *viewportdata.ViewportSight2, sight float32) GetFloor4ClientList() []*floor4client.Floor4Client GetFloor4Client(floorname string) *floor4client.Floor4Client ForgetFloorByName(floorname string) error MakeFloorComplete(f FloorI) error }
type CarryingObjectI ¶
type CarryingObjectI interface { ToPacket_CarryObjClientOnFloor(x, y int) *csprotocol.CarryObjClientOnFloor GetRemainTurnInFloor() int DecRemainTurnInFloor() int SetRemainTurnInFloor() GetUUID() string GetCarryingObjectType() carryingobjecttype.CarryingObjectType GetWeight() float64 GetValue() float64 }
type EquipObjI ¶
type EquipObjI interface { CarryingObjectI ToPacket_EquipClient() *csprotocol.EquipClient // bias, faction GetEquipType() equipslottype.EquipSlotType GetBias() bias.Bias }
type FloorI ¶
type FloorI interface { Initialized() bool Cleanup() GetName() string GetWidth() int GetHeight() int VisitableCount() int // for visitarea GetTower() TowerI GetBias() bias.Bias GetEnvBias() bias.Bias GetTerrain() terraini.TerrainI GetCmdFloorActStat() *actpersec.ActPerSec GetActiveObjPosMan() uuidposmani.UUIDPosManI GetCarryObjPosMan() uuidposmani.UUIDPosManI GetFieldObjPosMan() uuidposmani.UUIDPosManI GetCmdCh() chan<- interface{} Turn(TurnCount int) ProcessAllCmds() Run(ctx context.Context, queuesize int) TotalActiveObjCount() int TotalCarryObjCount() int SearchRandomActiveObjPos() (int, int, error) SearchRandomActiveObjPosInRoomOrRandPos() (int, int, error) FindPath(dstx, dsty, srcx, srcy int, limit int) [][2]int Web_FloorInfo(w http.ResponseWriter, r *http.Request) Web_FloorImageZoom(w http.ResponseWriter, r *http.Request) Web_FloorImageAutoZoom(w http.ResponseWriter, r *http.Request) Web_TileInfo(w http.ResponseWriter, r *http.Request) ToPacket_FloorInfo() *csprotocol.FloorInfo FindUsablePortalPairAt(x, y int) (*fieldobject.FieldObject, *fieldobject.FieldObject, error) }
type FloorManagerI ¶
type FloorManagerI interface { GetFloorByIndex(i int) FloorI GetStartFloor() FloorI GetFloorCount() int GetFloorList() []FloorI GetFloorByName(name string) FloorI FindPortalByID(id string) *fieldobject.FieldObject }
type InventoryI ¶
type InventoryI interface { GetEquipSlot() [equipslottype.EquipSlotType_Count]EquipObjI GetTypeList() ( []EquipObjI, []PotionI, []ScrollI) GetEquipList() []EquipObjI GetPotionList() []PotionI GetScrollList() []ScrollI GetTotalWeight() float64 RemoveByUUID(poid string) CarryingObjectI GetByUUID(poid string) CarryingObjectI AddToBag(po CarryingObjectI) error RecycleCarryObjByID(poid string) (float64, error) AddToWallet(po MoneyI) error SubFromWallet(po MoneyI) error GetWalletValue() float64 EquipFromBagByUUID(id string) error UnEquipToBagByUUID(id string) (EquipObjI, error) }
type MoneyI ¶
type MoneyI interface { CarryingObjectI Add(po2 MoneyI) MoneyI Sub(po2 MoneyI) MoneyI }
type PotionI ¶
type PotionI interface { CarryingObjectI ToPacket_PotionClient() *csprotocol.PotionClient GetPotionType() potiontype.PotionType }
type ScrollI ¶
type ScrollI interface { CarryingObjectI GetScrollType() scrolltype.ScrollType ToPacket_ScrollClient() *csprotocol.ScrollClient }
type TowerI ¶
type TowerI interface { String() string GetCmdCh() chan<- interface{} GetTurnCh() chan<- int GetTurnCount() int SendNoti(body interface{}) GetBias() bias.Bias GetFloorManager() FloorManagerI GetExpRanking() []ActiveObjectI Config() *goguelikeconfig.GoguelikeConfig }
Click to show internal directories.
Click to hide internal directories.