private void Hero_TryMove(IHero sender, MovingArgs args) { if ((sender.PosX + args.dx == this.PosX) & (sender.PosY + args.dy == this.PosY)) { sender.DenyMoving(); } }
private void Hero_TryMove(IHero sender, MovingArgs args) { if ((sender.PosX + args.dx == this.PosX) & (sender.PosY + args.dy == this.PosY)) { sender.DenyMoving(); } }