/// <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>(); }
/// <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>(); }
public void Visit(PlayerResources resources) { // Do nothing }
public virtual void Visit(PlayerResources resources) { Visit((ModelComponent)resources); }
public void Visit(PlayerResources resources) { if (PlayerResourcesVisitor != null) resources.Accept(PlayerResourcesVisitor); }