상속: OpenRA.Traits.SupportPowerInfo
예제 #1
0
        public SelectSpawnActorPowerTarget(string order, SupportPowerManager manager, SpawnActorPower power, MouseButton button)
        {
            // Clear selection if using Left-Click Orders
            if (Game.Settings.Game.UseClassicMouseStyle)
            {
                manager.Self.World.Selection.Clear();
            }

            this.manager   = manager;
            this.power     = power;
            this.order     = order;
            expectedButton = button;

            info = (SpawnActorPowerInfo)power.Info;
        }
예제 #2
0
        public bool Validate(World world, SpawnActorPowerInfo info, CPos cell)
        {
            if (!world.Map.Contains(cell))
            {
                return(false);
            }

            if (!info.AllowUnderShroud && world.ShroudObscures(cell))
            {
                return(false);
            }

            if (info.Terrain != null && !info.Terrain.Contains(world.Map.GetTerrainInfo(cell).Type))
            {
                return(false);
            }

            return(true);
        }
예제 #3
0
 public SpawnActorPower(Actor self, SpawnActorPowerInfo info)
     : base(self, info)
 {
 }
예제 #4
0
 public SpawnActorPower(Actor self, SpawnActorPowerInfo info)
     : base(self, info)
 {
     Info = info;
 }