示例#1
0
 public Human(string name, Chassis tank, Color colour) : base(name, tank, colour)
 {
     this.name   = name;
     this.tank   = tank;
     this.colour = colour;
 }
 public HumanOpponent(string name, Chassis tank, Color colour) : base(name, tank, colour)
 {
     throw new NotImplementedException();
 }
示例#3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">Name of the player</param>
 /// <param name="tank">Chassis the player uses</param>
 /// <param name="colour">Colour the player uses</param>
 public GenericPlayer(string name, Chassis tank, Color colour)
 {
     this.name   = name;
     this.tank   = tank;
     this.colour = colour;
 }
示例#4
0
 public TankController(string name, Chassis tank, Color colour)
 {
     throw new NotImplementedException();
 }
示例#5
0
 /// <summary>
 /// Not used by human player
 /// </summary>
 public PlayerController(string name, Chassis tank, Color colour) : base(name, tank, colour)
 {
 }
示例#6
0
 public PlayerController(string name, Chassis tank, Color colour) : base(name, tank, colour)
 {
     // PlayerController constructor is handled in TankController
 }
示例#7
0
 /// <summary>
 ///  exists to pass its parameters to the base constructor
 /// </summary>
 /// <param name="name">Name to be displayed</param>
 /// <param name="tank">Computers tank</param>
 /// <param name="colour">Tanks colour</param>
 public ComputerPlayer(string name, Chassis tank, Color colour) : base(name, tank, colour)
 {
     this.name   = name;
     this.tank   = tank;
     this.colour = colour;
 }