コード例 #1
0
ファイル: Player.cs プロジェクト: vvnurmi/assaultwing
 private Player(AssaultWingCore game, string name, CanonicalString shipTypeName, CanonicalString weapon2Name,
     CanonicalString extraDeviceName, PlayerControls controls, int connectionId, IPAddress ipAddress)
     : base(game, connectionId, ipAddress)
 {
     Name = name;
     ShipName = shipTypeName;
     Weapon2Name = weapon2Name;
     ExtraDeviceName = extraDeviceName;
     Controls = controls;
     Messages = new MessageContainer(Game);
     PostprocessEffectNames = new List<CanonicalString>();
     GobTrackerItems = new List<GobTrackerItem>();
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: vvnurmi/assaultwing
 /// <summary>
 /// Creates a new player who plays at the local game instance.
 /// </summary>
 /// <param name="name">Name of the player.</param>
 /// <param name="shipTypeName">Name of the type of ship the player is flying.</param>
 /// <param name="weapon2Name">Name of the type of secondary weapon.</param>
 /// <param name="extraDeviceName">Name of the type of extra device.</param>
 /// <param name="controls">Player's in-game controls.</param>
 public Player(AssaultWingCore game, string name, CanonicalString shipTypeName, CanonicalString weapon2Name,
     CanonicalString extraDeviceName, PlayerControls controls)
     : this(game, name, shipTypeName, weapon2Name, extraDeviceName, controls, CONNECTION_ID_LOCAL, null)
 {
 }