public override bool StartMove(Path movementPath) { if (!CanMove() || movementPath.IsEmpty()) { return(false); } Position = movementPath.EndPathPosition; var keys = movementPath.GetServerPathKeys(); Map.ForEach(entry => ContextHandler.SendGameMapMovementMessage(entry.Client, keys, this)); StopMove(); LastMoveDate = DateTime.Now; return(true); }
public override bool StartMove(Path movementPath) { bool result; if (!this.CanMove() || movementPath.IsEmpty()) { result = false; } else { this.Position = movementPath.EndPathPosition; System.Collections.Generic.IEnumerable <short> keys = movementPath.GetServerPathKeys(); base.Map.ForEach(delegate(Character entry) { ContextHandler.SendGameMapMovementMessage(entry.Client, keys, this); }); this.StopMove(); this.LastMoveDate = System.DateTime.Now; result = true; } return(result); }