Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Core.Models.Account"/> class.
        /// </summary>
        /// <param name="id">Account Identifier.</param>
        /// <param name="userName">User name.</param>
        public Account(int id, string userName)
        {
            ID                 = id;
            UserName           = userName;
            TerritoryBuildings = new Dictionary <PositionI, long>();
            Units              = new LinkedList <PositionI>();
            Buildings          = new Dictionary <PositionI, long>();
            BuildableBuildings = new Dictionary <long, List <long> >();

            Scrap      = new Scrap();
            Population = new Population();
            Technology = new Technology();
            Energy     = new Energy();
            Plutonium  = new Plutonium();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Core.Models.Account"/> class.
        /// </summary>
        /// <param name="id">Account Identifier.</param>
        public Account(int id)
            : base()
        {
            ID = id;
            UserName = "******";
            TerritoryBuildings = new Dictionary<PositionI, long>();
            Buildings = new Dictionary<PositionI, long>();
            Units = new LinkedList<PositionI>();
            BuildableBuildings = new Dictionary<long, List<long>>();

            Scrap = new Scrap();
            Population = new Population();
            Technology = new Technology();
            Energy = new Energy();
            Plutonium = new Plutonium();
        }