public virtual bool CourseTurn(int offset, bool message) { if (CurrentTurnTimer != null) { CurrentTurnTimer.Stop(); } if (CheckDecay()) { return(false); } if (SetFacing((Direction)(((int)Facing + offset) & 0x7))) { return(true); } else { if (message) { TillerMan.TillerManSay(501423); // Ar, can't turn sir. } return(false); } }
public override void OnAfterDelete() { foreach (IEntity obj in ContainedObjects.ToList()) // toList necessary for enumeration modification { if (obj is Item) { ((Item)obj).Delete(); } else if (obj is ICrew) { ((ICrew)obj).Delete(); } else if (obj is Mobile) { ((Mobile)obj).Transport = null; } } if (CurrentMoveTimer != null) { CurrentMoveTimer.Stop(); } if (CurrentTurnTimer != null) { CurrentTurnTimer.Stop(); } this.TillerManMobile.Delete(); Instances.Remove(this); }
public bool CourseTurn(int offset, bool message) { if (CurrentTurnTimer != null) { CurrentTurnTimer.Stop(); } if (CheckDecay()) { return(false); } if (Anchored) { if (message) { TillerMan.Say(501419); // Ar, the anchor is down sir! } return(false); } else if (SetFacing((Direction)(((int)Facing + offset) & 0x7))) { return(true); } else { if (message) { TillerMan.Say(501423); // Ar, can't turn sir. } return(false); } }