Example #1
0
 public void buildModules(UnitType t)
 {
     movement = new MovementModule(this);
     modules.Add(movement);
     if (t == UnitType.AFV)
     {
         transporter = new TransporterModule(this);
         modules.Add(transporter);
     }
     if (t == UnitType.Infantry)
     {
         transportable = new TransportableModule(this);
         modules.Add(transportable);
     }
 }
Example #2
0
    public void BuildModules(UnitType t)
    {
        Movement = new MovementModule(this);
        Modules.Add(Movement);

        if (t == UnitType.AFV)
        {
            Transporter = new TransporterModule(this);
            Modules.Add(Transporter);
        }

        if (t == UnitType.Infantry)
        {
            Transportable = new TransportableModule(this);
            Modules.Add(Transportable);
        }
    }
Example #3
0
 public void SetTransport(TransporterModule transport)
 {
     Waypoint.transporterWaypoint = transport.Waypoint;
 }
Example #4
0
 //public PlatoonBehaviour target;
 public TransporterWaypoint(PlatoonBehaviour p, TransporterModule m) : base(p)
 {
     module = m;
 }