Battlefield.Logic.Players.Player.Player C# (CSharp) 메소드

Player() 공개 메소드

Constructor for initialization of plyers.
public Player ( string name, IField field, IInput input ) : System
name string Name of the player.
field IField The player's playfield.
input IInput Input object for receiving commands.
리턴 System
        public Player(string name, IField field, IInput input)
        {
            this.Name = name;
            this.Field = field;
            this.input = input;
            this.NumberOfBombs = field.NumberOfBombs;
            this.ShotCount = 0;
        }