コード例 #1
0
 public RepairBuilding(Actor self, Actor target, EnterBehaviour enterBehaviour, Stance validStances)
     : base(self, target, enterBehaviour)
 {
     this.target       = target;
     this.validStances = validStances;
     health            = target.Trait <Health>();
 }
コード例 #2
0
ファイル: RepairBridge.cs プロジェクト: pchote/OpenRA
 public RepairBridge(Actor self, Actor target, EnterBehaviour enterBehaviour, string notification)
     : base(self, target, enterBehaviour)
 {
     this.target = target;
     legacyHut = target.TraitOrDefault<LegacyBridgeHut>();
     hut = target.TraitOrDefault<BridgeHut>();
     this.notification = notification;
 }
コード例 #3
0
ファイル: Enter.cs プロジェクト: huwpascoe/OpenRA
 protected Enter(Actor self, Actor target, EnterBehaviour enterBehaviour, int maxTries = 1, bool targetCenter = false)
 {
     this.move           = self.Trait <IMove>();
     this.target         = Target.FromActor(target);
     this.maxTries       = maxTries;
     this.enterBehaviour = enterBehaviour;
     this.targetCenter   = targetCenter;
 }
コード例 #4
0
ファイル: Enter.cs プロジェクト: RAunplugged/OpenRA
 protected Enter(Actor self, Actor target, EnterBehaviour enterBehaviour, int maxTries = 1, bool repathWhileMoving = true)
 {
     move                   = self.Trait <IMove>();
     this.target            = Target.FromActor(target);
     this.maxTries          = maxTries;
     this.enterBehaviour    = enterBehaviour;
     this.repathWhileMoving = repathWhileMoving;
 }
コード例 #5
0
 public RepairBridge(Actor self, Actor target, EnterBehaviour enterBehaviour, string notification)
     : base(self, target, enterBehaviour)
 {
     this.target       = target;
     legacyHut         = target.TraitOrDefault <LegacyBridgeHut>();
     hut               = target.TraitOrDefault <BridgeHut>();
     this.notification = notification;
 }
コード例 #6
0
 public Infiltrate(Actor self, Actor target, EnterBehaviour enterBehaviour, Stance validStances, string notification)
     : base(self, target, enterBehaviour)
 {
     this.target       = target;
     this.validStances = validStances;
     this.notification = notification;
     cloak             = self.TraitOrDefault <Cloak>();
 }
コード例 #7
0
ファイル: Enter.cs プロジェクト: CH4Code/OpenRA
 protected Enter(Actor self, Actor target, EnterBehaviour enterBehaviour, int maxTries = 1, bool targetCenter = false)
 {
     move = self.Trait<IMove>();
     this.target = Target.FromActor(target);
     this.maxTries = maxTries;
     this.enterBehaviour = enterBehaviour;
     this.targetCenter = targetCenter;
 }
コード例 #8
0
ファイル: Infiltrate.cs プロジェクト: CH4Code/OpenRA
 public Infiltrate(Actor self, Actor target, EnterBehaviour enterBehaviour, Stance validStances, string notification)
     : base(self, target, enterBehaviour)
 {
     this.target = target;
     this.validStances = validStances;
     this.notification = notification;
     cloak = self.TraitOrDefault<Cloak>();
 }
コード例 #9
0
 public Demolish(Actor self, Target target, EnterBehaviour enterBehaviour, int delay,
                 int flashes, int flashesDelay, int flashInterval)
     : base(self, target, Color.Crimson)
 {
     notifiers           = self.TraitsImplementing <INotifyDemolition>().ToArray();
     this.delay          = delay;
     this.flashes        = flashes;
     this.flashesDelay   = flashesDelay;
     this.flashInterval  = flashInterval;
     this.enterBehaviour = enterBehaviour;
 }
コード例 #10
0
ファイル: Demolish.cs プロジェクト: RAunplugged/OpenRA
 public Demolish(Actor self, Actor target, EnterBehaviour enterBehaviour, int delay,
                 int flashes, int flashesDelay, int flashInterval)
     : base(self, target, enterBehaviour)
 {
     this.target        = target;
     demolishables      = target.TraitsImplementing <IDemolishable>().ToArray();
     notifiers          = self.TraitsImplementing <INotifyDemolition>().ToArray();
     this.delay         = delay;
     this.flashes       = flashes;
     this.flashesDelay  = flashesDelay;
     this.flashInterval = flashInterval;
 }
コード例 #11
0
ファイル: Demolish.cs プロジェクト: pchote/OpenRA
        public Demolish(Actor self, Actor target, EnterBehaviour enterBehaviour, int delay,
			int flashes, int flashesDelay, int flashInterval, int flashDuration)
            : base(self, target, enterBehaviour)
        {
            this.target = target;
            demolishables = target.TraitsImplementing<IDemolishable>().ToArray();
            this.delay = delay;
            this.flashes = flashes;
            this.flashesDelay = flashesDelay;
            this.flashInterval = flashInterval;
            this.flashDuration = flashDuration;
            cloak = self.TraitOrDefault<Cloak>();
        }
コード例 #12
0
 public Demolish(Actor self, Actor target, EnterBehaviour enterBehaviour, int delay,
                 int flashes, int flashesDelay, int flashInterval, int flashDuration)
     : base(self, target, enterBehaviour)
 {
     this.target        = target;
     demolishables      = target.TraitsImplementing <IDemolishable>().ToArray();
     this.delay         = delay;
     this.flashes       = flashes;
     this.flashesDelay  = flashesDelay;
     this.flashInterval = flashInterval;
     this.flashDuration = flashDuration;
     cloak = self.TraitOrDefault <Cloak>();
 }
コード例 #13
0
        //readonly Dictionary<AmmoPool, int> ammoPoolsReloadTimes;

        public EnterSpawner(Actor self, Actor target, EnterBehaviour enterBehaviour)
            : base(self, target, enterBehaviour)
        {
            this.master = target;
            spawner     = target.Trait <Spawner>();

            ammoPools = self.TraitsImplementing <AmmoPool>().Where(p => !p.Info.SelfReloads).ToArray();

            if (ammoPools == null)
            {
                return;
            }

            //ammoPoolsReloadTimes = ammoPools.ToDictionary(x => x, y => y.Info.ReloadDelay);
        }
コード例 #14
0
 public EnterTeleportNetwork(Actor self, Actor target, EnterBehaviour enterBehaviour, string type)
     : base(self, target, enterBehaviour)
 {
     this.type = type;
 }
コード例 #15
0
 public EnterCarrierParent(Actor self, Actor parent, CarrierParent spawnerParent, EnterBehaviour enterBehaviour)
     : base(self, Target.FromActor(parent))
 {
     this.parent        = parent;
     this.spawnerParent = spawnerParent;
 }
コード例 #16
0
 public EnterCarrierMaster(Actor self, Actor master, CarrierMaster spawnerMaster, EnterBehaviour enterBehaviour)
     : base(self, master, enterBehaviour)
 {
     this.master        = master;
     this.spawnerMaster = spawnerMaster;
 }
コード例 #17
0
ファイル: EnterCarrierMaster.cs プロジェクト: m-ober/CAmod
 public EnterCarrierMaster(Actor self, Target master, CarrierMaster spawnerMaster, EnterBehaviour enterBehaviour)
     : base(self, master, Color.Green)
 {
     this.master        = master.Actor;
     this.spawnerMaster = spawnerMaster;
 }
コード例 #18
0
ファイル: RepairBuilding.cs プロジェクト: pchote/OpenRA
 public RepairBuilding(Actor self, Actor target, EnterBehaviour enterBehaviour)
     : base(self, target, enterBehaviour)
 {
     this.target = target;
     health = target.Trait<Health>();
 }
コード例 #19
0
ファイル: RepairBridge.cs プロジェクト: huwpascoe/OpenRA
 public RepairBridge(Actor self, Actor target, EnterBehaviour enterBehaviour)
     : base(self, target, enterBehaviour)
 {
     hut = target.Trait <BridgeHut>();
 }
コード例 #20
0
 public RepairBridge(Actor self, Actor target, EnterBehaviour enterBehaviour, string notification)
     : base(self, target, enterBehaviour)
 {
     hut = target.Trait <BridgeHut>();
     this.notification = notification;
 }
コード例 #21
0
ファイル: EnterCarrierMaster.cs プロジェクト: jrb0001/OpenRA
 public EnterCarrierMaster(Actor self, Actor master, CarrierMaster spawnerMaster, EnterBehaviour enterBehaviour, WDist closeEnoughDist)
     : base(self, master, enterBehaviour)             ////closeenoughdist
 {
     this.master        = master;
     this.spawnerMaster = spawnerMaster;
 }
コード例 #22
0
ファイル: RepairBridge.cs プロジェクト: reaperrr/OpenRA
 public RepairBridge(Actor self, Target target, EnterBehaviour enterBehaviour, string notification)
     : base(self, target, Color.Yellow)
 {
     this.enterBehaviour = enterBehaviour;
     this.notification   = notification;
 }
コード例 #23
0
 public EnterCarrierMaster(Actor self, Actor master, CarrierMaster spawnerMaster, EnterBehaviour enterBehaviour, WDist closeEnoughDist)
     : base(self, Target.FromActor(master))
 {
     this.master        = master;
     this.spawnerMaster = spawnerMaster;
 }
コード例 #24
0
ファイル: RepairBuilding.cs プロジェクト: huwpascoe/OpenRA
 public RepairBuilding(Actor self, Actor target, EnterBehaviour enterBehaviour)
     : base(self, target, enterBehaviour)
 {
     this.target = target;
     health      = target.Trait <Health>();
 }
コード例 #25
0
        readonly Actor target;         // remember nydus canal.

        public EnterNydus(Actor self, Actor target, EnterBehaviour enterBehaviour)
            : base(self, target, enterBehaviour)
        {
            this.target = target;
        }