Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Client.Common.Views.Effects.IndicatorView"/> class.
        /// </summary>
        /// <param name="worldlayer">The world layer.</param>
        public IndicatorView(WorldLayerHex worldlayer)
        {
            m_worldLayer = worldlayer;
            m_sprites = new List<CCSprite>();
            m_areaIndicators = new Dictionary<TileTouchHandler.Area, CCTileGidAndFlags>();
            m_areaIndicators.Add(TileTouchHandler.Area.Movement, new CCTileGidAndFlags(Client.Common.Constants.HelperSpritesGid.WHITEINDICATOR));
            m_areaIndicators.Add(TileTouchHandler.Area.OwnTerritory, new CCTileGidAndFlags(Client.Common.Constants.HelperSpritesGid.GREENINDICATOR));
            m_areaIndicators.Add(TileTouchHandler.Area.EnemyTerritory, new CCTileGidAndFlags(Client.Common.Constants.HelperSpritesGid.REDINDICATOR));
            m_areaIndicators.Add(TileTouchHandler.Area.AllyTerritory, new CCTileGidAndFlags(Client.Common.Constants.HelperSpritesGid.BLUEINDICATOR));

            m_surroundedPositions = new HashSet<PositionI>();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="Client.Common.Views.Actions.CreateTerritoryBuilding"/> class.
 /// </summary>
 /// <param name="model">The entity model of the building.</param>
 /// <param name="worldLayerHex">World layer.</param>
 public CreateTerritoryBuilding(Core.Models.ModelEntity model, WorldLayerHex worldLayerHex)
     : base(model)
 {
     WorldLayerHex = worldLayerHex;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Client.Common.Views.Actions.MoveUnit"/> class.
 /// </summary>
 /// <param name="model">The action model.</param>
 /// <param name="worldLayerHex">World layer.</param>
 public MoveUnit(Core.Models.ModelEntity model, WorldLayerHex worldLayerHex)
     : base(model)
 {
     WorldLayerHex = worldLayerHex;
 }