floor

package
v0.0.0-...-e449b39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheVPIXYOList

type CacheVPIXYOList struct {
	HitRate hitrate.HitRate
	// contains filtered or unexported fields
}

CacheVPIXYOList cache viewport index, pos(x,y), object for each turn to send viewport objectlist noti not inter-turn use

func (*CacheVPIXYOList) GetAtByCache

func (cvpixyol *CacheVPIXYOList) GetAtByCache(
	x, y int) [4][]uuidposmani.VPIXYObj

func (*CacheVPIXYOList) String

func (cvpixyol *CacheVPIXYOList) String() string

type Floor

type Floor struct {
	// contains filtered or unexported fields
}

func New

func New(seed int64, ts []string, tw gamei.TowerI) *Floor

func (*Floor) ActiveObjDropCarryObjByDie

func (f *Floor) ActiveObjDropCarryObjByDie(ao gamei.ActiveObjectI, aox, aoy int) error

func (*Floor) Call_APIAdminCmd2Floor

func (f *Floor) Call_APIAdminCmd2Floor(
	ActiveObj gamei.ActiveObjectI, ReqPk *c2t_obj.ReqAdminFloorCmd_data) c2t_error.ErrorCode

func (*Floor) Call_APIAdminTeleport2Floor

func (f *Floor) Call_APIAdminTeleport2Floor(
	ActiveObj gamei.ActiveObjectI, ReqPk *c2t_obj.ReqAdminTeleport_data) c2t_error.ErrorCode

func (*Floor) Cleanup

func (f *Floor) Cleanup()

func (*Floor) FindPath

func (f *Floor) FindPath(dstx, dsty, srcx, srcy int, trylimit int) [][2]int

func (*Floor) FindUsablePortalPairAt

func (f *Floor) FindUsablePortalPairAt(
	x, y int) (*fieldobject.FieldObject, *fieldobject.FieldObject, error)

func (*Floor) GetActTurn

func (f *Floor) GetActTurn() int

func (*Floor) GetActiveObjPosMan

func (f *Floor) GetActiveObjPosMan() uuidposmani.UUIDPosManI

func (*Floor) GetAllActiveObj

func (f *Floor) GetAllActiveObj() []gamei.ActiveObjectI

func (*Floor) GetBias

func (f *Floor) GetBias() bias.Bias

func (*Floor) GetCarryObjPosMan

func (f *Floor) GetCarryObjPosMan() uuidposmani.UUIDPosManI

func (*Floor) GetCmdFloorActStat

func (f *Floor) GetCmdFloorActStat() *actpersec.ActPerSec

func (*Floor) GetEnvBias

func (f *Floor) GetEnvBias() bias.Bias

func (*Floor) GetFieldObjPosMan

func (f *Floor) GetFieldObjPosMan() uuidposmani.UUIDPosManI

func (*Floor) GetHeight

func (f *Floor) GetHeight() int

func (*Floor) GetInterDur

func (f *Floor) GetInterDur() *intervalduration.IntervalDuration

func (*Floor) GetName

func (f *Floor) GetName() string

func (*Floor) GetReqCh

func (f *Floor) GetReqCh() chan<- interface{}

func (*Floor) GetStatPacketObjOver

func (f *Floor) GetStatPacketObjOver() *actpersec.ActPerSec

func (*Floor) GetTerrain

func (f *Floor) GetTerrain() terraini.TerrainI

func (*Floor) GetTower

func (f *Floor) GetTower() gamei.TowerI

func (*Floor) GetWidth

func (f *Floor) GetWidth() int

func (*Floor) Init

func (f *Floor) Init() error

Init bi need for randomness

func (*Floor) Initialized

func (f *Floor) Initialized() bool

func (*Floor) MakeImage

func (f *Floor) MakeImage(zoom int) *image.RGBA

func (*Floor) NewCacheVPIXYOList

func (f *Floor) NewCacheVPIXYOList() *CacheVPIXYOList

func (*Floor) ReqChState

func (f *Floor) ReqChState() string

func (*Floor) Run

func (f *Floor) Run(ctx context.Context, queuesize int)

func (*Floor) SearchRandomActiveObjPos

func (f *Floor) SearchRandomActiveObjPos() (int, int, error)

func (*Floor) SearchRandomActiveObjPosInRoomOrRandPos

func (f *Floor) SearchRandomActiveObjPosInRoomOrRandPos() (int, int, error)

func (*Floor) String

func (f *Floor) String() string

func (*Floor) ToPacket_FloorInfo

func (f *Floor) ToPacket_FloorInfo() *c2t_obj.FloorInfo

func (*Floor) ToPacket_NotiAgeing

func (f *Floor) ToPacket_NotiAgeing() *c2t_obj.NotiAgeing_data

func (*Floor) TotalActiveObjCount

func (f *Floor) TotalActiveObjCount() int

func (*Floor) TotalCarryObjCount

func (f *Floor) TotalCarryObjCount() int

func (*Floor) VisitableCount

func (f *Floor) VisitableCount() int

for visitarea

func (*Floor) Web_FloorImageAutoZoom

func (f *Floor) Web_FloorImageAutoZoom(w http.ResponseWriter, r *http.Request)

func (*Floor) Web_FloorImageZoom

func (f *Floor) Web_FloorImageZoom(w http.ResponseWriter, r *http.Request)

func (*Floor) Web_FloorInfo

func (f *Floor) Web_FloorInfo(w http.ResponseWriter, r *http.Request)

func (*Floor) Web_TileInfo

func (f *Floor) Web_TileInfo(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL