public bool StartMove( Direction dir, int speed, TimeSpan interval, bool single, bool message ) { if ( CheckDecay() ) return false; if ( m_Anchored ) { if ( message && m_TillerMan != null ) m_TillerMan.Say( 501419 ); // Ar, the anchor is down sir! return false; } m_Moving = dir; m_Speed = speed; m_Order = BoatOrder.Move; if ( m_MoveTimer != null ) m_MoveTimer.Stop(); m_MoveTimer = new MoveTimer( this, interval, single ); m_MoveTimer.Start(); return true; }
public bool StartMove(Direction dir, int speed, int clientSpeed, TimeSpan interval, bool single, bool message) { if (CheckDecay() || Scuttled || clientSpeed == 0x0) return false; m_Moving = dir; m_Speed = speed; m_ClientSpeed = clientSpeed; m_Order = BoatOrder.Move; if (m_MoveTimer != null) m_MoveTimer.Stop(); m_MoveTimer = new MoveTimer(this, interval, single); m_MoveTimer.Start(); return true; }