Inheritance: OpenRA.Traits.SupportPowerInfo
Ejemplo n.º 1
0
 public GpsPower(Actor self, GpsPowerInfo info)
     : base(self, info)
 {
     this.info = info;
     owner     = self.Owner.PlayerActor.Trait <GpsWatcher>();
     owner.GpsAdd(self);
 }
Ejemplo n.º 2
0
 public GpsPower(Actor self, GpsPowerInfo info)
     : base(self, info)
 {
     this.info = info;
     owner = self.Owner.PlayerActor.Trait<GpsWatcher>();
     owner.GpsAdd(self);
 }
Ejemplo n.º 3
0
 public void Launch(Actor atek, GpsPowerInfo info)
 {
     atek.World.Add(new DelayedAction(info.RevealDelay * 25,
                                      () =>
     {
         Launched = true;
         RefreshGps(atek);
     }));
 }
Ejemplo n.º 4
0
        public SatelliteLaunch(Actor launcher, GpsPowerInfo info)
        {
            this.info = info;
            this.launcher = launcher;

            doors = new Animation(launcher.World, info.DoorImage);
            doors.PlayThen(info.DoorSequence,
                () => launcher.World.AddFrameEndTask(w => w.Remove(this)));

            pos = launcher.CenterPosition;
        }
Ejemplo n.º 5
0
 public void Launch(Actor atek, GpsPowerInfo info)
 {
     atek.World.Add(new DelayedAction(info.RevealDelay * 25,
         () =>
         {
             Launched = true;
             RefreshGps(atek);
         }));
 }