public AbilityContainer(BasicEnemy enemy, Color _color, Ability _mod) : base(enemy, _color, _mod) { }
//Sets position to the place where enemy, from which it dropped, died private void SetPosition(BasicEnemy enemy) { position.X = enemy.position.X + (enemy.scale.X * enemy.texture.Width) / 2 - (defaultScale.X * texture.Width) / 2; position.Y = enemy.position.Y + (enemy.scale.Y * enemy.texture.Height) / 2 - (defaultScale.Y * texture.Height) / 2; }
public WeaponContainer(BasicEnemy enemy, Color _color, Weapon _mod) : base(enemy, _color, _mod) { }
public ModificationContainer(BasicEnemy enemy, Color color, Modification _mod) : base(GameProperties.DefaultTexture, defaultPosition, defaultScale, color) { SetPosition(enemy); mod = _mod; }