public MIFireBall(Unit caster, IPair destination) : base(66, caster) { radius_ = RADIUS; damage_ = 700; speed_ = 900; // x100 hurt_self_ = false; explode_enemy_ = true; explode_enemy_missile_ = true; IPair delta = destination - caster.Pos; move_vector_ = delta.Clone(); move_vector_.ChangeLength(speed_); delta.ChangeLength(GameDef.UNIT_RADIUS * GameDef.PIXEL_SCALE); Pos.Clone(caster.Pos); Pos.Add(delta); }
public const int STRENGTH = 60; // as 50 damage spell public MIGravity(Unit caster, IPair destination) : base(80, caster) { radius_ = RADIUS; damage_ = 0; speed_ = 450; hurt_self_ = false; explode_enemy_ = false; explode_enemy_missile_ = false; IPair delta = destination - caster.Pos; move_vector_ = delta.Clone(); move_vector_.ChangeLength(speed_); delta.ChangeLength(GameDef.UNIT_RADIUS * GameDef.PIXEL_SCALE); Pos.Clone(caster.Pos); Pos.Add(delta); }
public void Move(IPair destination) { param1_.Clone(destination); type_ = 1; }