Ejemplo n.º 1
0
 public static void ServerInitialize(Vehicle vic, PlayerGameObject controllingPlayer, Vector2 position, float maxMateriel)
 {
     vic.controllingPlayer.Value = controllingPlayer;
     vic.materiel.Value = maxMateriel;
     vic.maxMateriel.Value = maxMateriel;
     PhysicalObject.ServerInitialize(vic, position, 0);
 }
Ejemplo n.º 2
0
 public void RemoveVehicle(Vehicle vic)
 {
     if (vic is CombatVehicle)
     {
         CombatVehicle combatVehicle = (CombatVehicle)vic;
         combatVehicles.RemoveAllReferences(combatVehicle);
     }
     else if (vic is Transport)
     {
         Transport transportVehicle = (Transport)vic;
         transportVehicles.RemoveAllReferences(transportVehicle);
     }
 }
Ejemplo n.º 3
0
 public bool InResupplyQueue(Vehicle vic)
 {
     return this.resupplyQueue.Value.Contains(vic);
 }
Ejemplo n.º 4
0
 public void EnqueueTransport(Vehicle vic)
 {
     this.resupplyQueue.Value.Enqueue(vic);
 }