/// <summary>
        /// Creates a new empty. PlayerComponent
        /// </summary>
        public PlayerComponent()
        {
            PlayerResources resources = new PlayerResources();
            AddChild(resources);

            unitList = new UnitList();
            AddChild(unitList);

            buildingList = new BuildingList();
            AddChild(buildingList);

            enemyList = new List<PlayerComponent>();
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new empty. PlayerComponent
        /// </summary>
        public PlayerComponent()
        {
            PlayerResources resources = new PlayerResources();

            AddChild(resources);

            unitList = new UnitList();
            AddChild(unitList);

            buildingList = new BuildingList();
            AddChild(buildingList);

            enemyList = new List <PlayerComponent>();
        }
Beispiel #3
0
 public void Visit(PlayerResources resources)
 {
     // Do nothing
 }
 public virtual void Visit(PlayerResources resources)
 {
     Visit((ModelComponent)resources);
 }
 public virtual void Visit(PlayerResources resources)
 {
     Visit((ModelComponent)resources);
 }
 public void Visit(PlayerResources resources)
 {
     // Do nothing
 }
 public void Visit(PlayerResources resources)
 {
     if (PlayerResourcesVisitor != null)
         resources.Accept(PlayerResourcesVisitor);
 }