public Bomb(BombPowerup bombPowerup, Vector2 position, String textureName, float timeToExplode, int explosionRadius) : base(position, new Hitbox(32, 32)) { this.bombPowerup = bombPowerup; this.textureName = textureName; this.timeToExplode = timeToExplode; this.explosionRadius = explosionRadius; baseScale = scale; setTexture(textureName); }
public BombPowerupMemento(BombPowerup target) { //save necessary information from target here Target = target; bombTimer = target.bombTimer; bombs = new List<Bomb>(target.bombs); bombMementos = new IMemento[target.bombs.Count]; for (int i = 0; i < bombMementos.Length; i++) { bombMementos[i] = target.bombs[i].GenerateMementoFromCurrentFrame(); } }