public void Visit(BuildingList list)
 {
     if (BuildingListVisitor != null)
     {
         list.Accept(BuildingListVisitor);
     }
 }
        /// <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>();
        }
示例#3
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>();
        }
示例#4
0
 public void Visit(BuildingList list)
 {
     output.WriteStartElement("BuildingList");
     VisitChildren(list);
     output.WriteEndElement();
 }
 public virtual void Visit(BuildingList list)
 {
     Visit((ModelComponent)list);
 }
 public virtual void Visit(BuildingList list)
 {
     Visit((ModelComponent)list);
 }
 public void Visit(BuildingList list)
 {
     output.WriteStartElement("BuildingList");
     VisitChildren(list);
     output.WriteEndElement();
 }
 public void Visit(BuildingList list)
 {
     if (BuildingListVisitor != null)
         list.Accept(BuildingListVisitor);
 }