Beispiel #1
0
 public FallToEarth(Actor self, FallsToEarthInfo info)
 {
     this.info = info;
     aircraft = self.Trait<Aircraft>();
     if (info.Spins)
         acceleration = self.World.SharedRandom.Next(2) * 2 - 1;
 }
Beispiel #2
0
 public FallsToEarth(ActorInitializer init, FallsToEarthInfo info)
 {
     init.Self.QueueActivity(false, new FallToEarth(init.Self, info));
     effectiveOwner = init.Contains <EffectiveOwnerInit>() ? init.Get <EffectiveOwnerInit, Player>() : init.Self.Owner;
 }
Beispiel #3
0
		public FallsToEarth(Actor self, FallsToEarthInfo info)
		{
			self.QueueActivity(false, new FallToEarth(self, info));
		}
Beispiel #4
0
 public FallsToEarth(Actor self, FallsToEarthInfo info)
 {
     self.QueueActivity(false, new FallToEarth(self, info));
 }
Beispiel #5
0
 public FallsToEarth(ActorInitializer init, FallsToEarthInfo info)
 {
     this.info      = info;
     effectiveOwner = init.Contains <EffectiveOwnerInit>() ? init.Get <EffectiveOwnerInit, Player>() : init.Self.Owner;
 }
Beispiel #6
0
 public FallsToEarth(ActorInitializer init, FallsToEarthInfo info)
 {
     this.info      = info;
     effectiveOwner = init.GetValue <EffectiveOwnerInit, Player>(info, init.Self.Owner);
 }