Ejemplo n.º 1
0
 public PickupUnit(Actor self, Actor cargo)
 {
     this.cargo = cargo;
     carryable = cargo.Trait<Carryable>();
     cargoFacing = cargo.Trait<IFacing>();
     movement = self.Trait<IMove>();
     carryall = self.Trait<Carryall>();
     helicopter = self.Trait<Helicopter>();
     selfFacing = self.Trait<IFacing>();
     state = State.Intercept;
 }
Ejemplo n.º 2
0
        public PickupUnit(Actor self, Actor cargo, int delay)
        {
            this.cargo      = cargo;
            this.delay      = delay;
            carryable       = cargo.Trait <Carryable>();
            carryableFacing = cargo.Trait <IFacing>();
            carryableBody   = cargo.Trait <BodyOrientation>();

            carryall = self.Trait <Carryall>();

            ChildHasPriority = false;
        }
Ejemplo n.º 3
0
		public DeliverUnit(Actor self)
		{
			carryall = self.Trait<Carryall>();
			this.self = self;
			cargo = carryall.Carrying;
			movement = self.Trait<IMove>();
			carryable = cargo.Trait<Carryable>();
			aircraft = self.Trait<Aircraft>();
			positionable = cargo.Trait<IPositionable>();
			cargoFacing = cargo.Trait<IFacing>();
			selfFacing = self.Trait<IFacing>();
			state = State.Transport;
		}
Ejemplo n.º 4
0
 public DeliverUnit(Actor self)
 {
     carryall     = self.Trait <Carryall>();
     this.self    = self;
     cargo        = carryall.Carrying;
     movement     = self.Trait <IMove>();
     carryable    = cargo.Trait <Carryable>();
     aircraft     = self.Trait <Aircraft>();
     positionable = cargo.Trait <IPositionable>();
     cargoFacing  = cargo.Trait <IFacing>();
     selfFacing   = self.Trait <IFacing>();
     state        = State.Transport;
 }
Ejemplo n.º 5
0
        public DeliverUnit(Actor self, CPos destination)
        {
            this.self = self;
            this.destination = destination;

            carryallFacing = self.Trait<IFacing>();
            carryall = self.Trait<Carryall>();
            body = self.Trait<BodyOrientation>();

            carryable = carryall.Carryable.Trait<Carryable>();
            positionable = carryall.Carryable.Trait<IPositionable>();
            carryableFacing = carryall.Carryable.Trait<IFacing>();
            state = State.Transport;
        }
Ejemplo n.º 6
0
        public PickupUnit(Actor self, Actor cargo, int delay)
        {
            this.cargo      = cargo;
            this.delay      = delay;
            carryable       = cargo.Trait <Carryable>();
            carryableFacing = cargo.Trait <IFacing>();
            carryableBody   = cargo.Trait <BodyOrientation>();

            movement       = self.Trait <IMove>();
            carryall       = self.Trait <Carryall>();
            carryallFacing = self.Trait <IFacing>();

            state = PickupState.Intercept;
        }
Ejemplo n.º 7
0
        public PickupUnit(Actor self, Actor cargo, int delay)
        {
            this.cargo = cargo;
            this.delay = delay;
            carryable = cargo.Trait<Carryable>();
            carryableFacing = cargo.Trait<IFacing>();
            carryableBody = cargo.Trait<BodyOrientation>();

            movement = self.Trait<IMove>();
            carryall = self.Trait<Carryall>();
            carryallFacing = self.Trait<IFacing>();

            state = State.Intercept;
        }
Ejemplo n.º 8
0
        public DeliverUnit(Actor self, CPos destination)
        {
            this.self        = self;
            this.destination = destination;

            carryallFacing = self.Trait <IFacing>();
            carryall       = self.Trait <Carryall>();
            body           = self.Trait <BodyOrientation>();

            carryable       = carryall.Carryable.Trait <Carryable>();
            positionable    = carryall.Carryable.Trait <IPositionable>();
            carryableFacing = carryall.Carryable.Trait <IFacing>();
            state           = DeliveryState.Transport;
        }
Ejemplo n.º 9
0
 public AttachUnit(Actor self, Actor cargo)
 {
     this.cargo = cargo;
     carryable  = cargo.Trait <Carryable>();
     carryall   = self.Trait <Carryall>();
 }
Ejemplo n.º 10
0
 public ReleaseUnit(Actor self)
 {
     facing   = self.Trait <IFacing>();
     carryall = self.Trait <Carryall>();
     body     = self.Trait <BodyOrientation>();
 }
Ejemplo n.º 11
0
 public CarryallProperties(ScriptContext context, Actor self)
     : base(context, self)
 {
     carryall = Self.Trait <Carryall>();
 }