Exemple #1
0
        public Player(int number, player_role role, Team team) : base(BaseGameEntity.GetNextValidID())
        {
            //varibale initialization
            position = new Position();

            this.team = team;

            playerNumber = number;
            //player number is the id of the player
            id = playerNumber;

            this.role = role;
        }
Exemple #2
0
 public Player() : base(BaseGameEntity.GetNextValidID())
 {
 }