AIsOfCatan.Player.Player C# (CSharp) Method

Player() public method

public Player ( IAgent agent, int id ) : System
agent IAgent
id int
return System
        public Player(IAgent agent, int id)
        {
            agent.Reset(id);

            RoadsLeft = 15; //You start with 15 roads
            CitiesLeft = 4; //          - and 4 cities
            SettlementsLeft = 5; //     - and 5 settlements, according to (rules p. 2 - Game Contents)
            PlayedKnights = 0;

            Agent = agent;
            Id = id;
            DevelopmentCards = new List<DevelopmentCard>();
            NewDevelopmentCards = new List<DevelopmentCard>();
            Resources = new List<Resource>();
        }
Player