Example #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);
 }
Example #2
0
 protected UIContext(ClientGame game, LocalPlayer localPlayer, PlayerGameObject playerGameObject)
 {
     this.game = game;
     this.localPlayer = localPlayer;
     this.localPlayer.PushUIContext(this);
     this.playerObject = playerGameObject;
 }
 public static CombatVehicle CombatVehicleFactory(GameObjectCollection collection, PlayerGameObject controllingPlayer, Vector2 position)
 {
     CombatVehicle vehicle = new CombatVehicle(collection);
     collection.Add(vehicle);
     CombatVehicle.ServerInitialize(vehicle, controllingPlayer, position);
     return vehicle;
 }
Example #4
0
 public static Company Factory(ServerGame game, PlayerGameObject controllingPlayer)
 {
     Company obj = new Company(game.GameObjectCollection);
     game.GameObjectCollection.Add(obj);
     Company.ServerInitialize(obj, controllingPlayer);
     return obj;
 }
Example #5
0
 public static Transport TransportFactory(GameObjectCollection collection, PlayerGameObject controllingPlayer, Vector2 position)
 {
     Transport vehicle = new Transport(collection);
     collection.Add(vehicle);
     Transport.ServerInitialize(vehicle, controllingPlayer, position);
     return vehicle;
 }
 public static PlayerGameObject Factory(ServerGame game, RemotePlayer player)
 {
     PlayerGameObject obj = new PlayerGameObject(game.GameObjectCollection);
     game.GameObjectCollection.Add(obj);
     PlayerGameObject.ServerInitialize(obj, player.Id);
     return obj;
 }
 public RootContext(ClientGame game, LocalPlayer localPlayer, PlayerGameObject playerGameObject)
     : base(game, localPlayer, playerGameObject)
 {
 }
 public static void ServerInitialize(CombatVehicle vic, PlayerGameObject controllingPlayer, Vector2 position)
 {
     Vehicle.ServerInitialize(vic, controllingPlayer, position, maxMateriel);
     vic.targetPosition.Value = position;
 }
Example #9
0
 public static void ServerInitialize(Company obj, PlayerGameObject controllingPlayer)
 {
     obj.controllingPlayer.Value = controllingPlayer;
 }
Example #10
0
 public static void ServerInitialize(Transport vic, PlayerGameObject controllingPlayer, Vector2 position)
 {
     Vehicle.ServerInitialize(vic, controllingPlayer, position, 20);
 }
 public static void ServerInitialize(PlayerGameObject obj, int id)
 {
     obj.playerID.Value = id;
     obj.colorIndex.Value = nextColor;
     nextColor = nextColor + 1 % colors.Length;
 }