package mapAOI import ( aoiTower "f1-game/internal/algorithm/aoi_tower" "f1-game/internal/constant" "f1-game/internal/data" "f1-game/internal/enum" nameActor "f1-game/internal/name/actor" ) // 地图建筑AOI type actorCastle struct { actorBase } func newActorAOICastle() *actorCastle { aoi := aoiTower.New(aoiTower.Config{ Width: data.MapWidth(), Height: data.MapHeight(), TowerWidth: constant.MapTowerWidth_Castle, TowerHeight: constant.MapTowerHeight_Castle, TowerPointOffset: 0, TowerViewRange: 1, WatcherLeaveDelay: constant.Aoi_WatcherLeaveDelay, }) return &actorCastle{ actorBase: newActorAOIBase(enum.ObjectType_Castle, aoi, constant.Duration_AoiUpdate), } } func (p *actorCastle) AliasID() string { return nameActor.MapAOI_Castle } func (p *actorCastle) OnInit() { p.actorBase.OnInit() }