/// <summary> /// Pathfind towards a destination /// </summary> /// <param name="destination">The location that the entity will be closer to after the move</param> public virtual void MoveToward(Levels.Tile destination) { //pathfinding logic here }
/// <summary> /// Move to the specified destination. /// </summary> /// <param name="destination">Where this entity will be located on the map after the move</param> public virtual void Move(Levels.Tile destination) { destination.Contents.Add(this); PresentLocation.Contents.Remove(this); PresentLocation = destination; }