﻿using System;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using BomberBro.Engine.Players;
using Bomberbro.Engine.AI;

namespace BomberBro.Engine.Entities.Bombs
{
	class NormalBomb : IBomb
    {
        #region MEMBROS
        #endregion

        #region CONSTRUTOR
		public NormalBomb(IPlayer owner, int intensity, Tile tile, Texture2D texture, Map map): base(owner, intensity, tile, texture, map)
		{
			SecondsToBlow = BOMB_BLOW_SPEED.NORMAL;
			Type = BOMB_TYPES.NORMAL;

			for (int i = 1; i < 4; i++) {
				CurrentMap.SetTopologicalMapPosition (MapPosition, MapTile.DANGER, 0, i);
				CurrentMap.SetTopologicalMapPosition (MapPosition, MapTile.DANGER, 0, -i);
				CurrentMap.SetTopologicalMapPosition (MapPosition, MapTile.DANGER, i, 0);
				CurrentMap.SetTopologicalMapPosition (MapPosition, MapTile.DANGER, -i, 0);
			}
        }
        #endregion

        #region MANIPULAÇÃO
		public override void BlowUp ()
		{
			base.BlowUp ();
			for (int i = 1; i < 4; i++) {
				CurrentMap.UnSetTopologicalMapPosition (MapPosition, MapTile.DANGER, 0, i);
				CurrentMap.UnSetTopologicalMapPosition (MapPosition, MapTile.DANGER, 0, -i);
				CurrentMap.UnSetTopologicalMapPosition (MapPosition, MapTile.DANGER, i, 0);
				CurrentMap.UnSetTopologicalMapPosition (MapPosition, MapTile.DANGER, -i, 0);
			}
		}
        #endregion

        #region GETS E SETS
        #endregion
    }
}
