Inheritance: 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)
 {
 }
 public SpawnActorPower(Actor self, SpawnActorPowerInfo info)
     : base(self, info)
 {
     Info = info;
 }