Server.Multis.BaseBoat.StartMove C# (CSharp) Méthode

StartMove() public méthode

public StartMove ( Direction dir, bool fast ) : bool
dir Direction
fast bool
Résultat bool
		public bool StartMove( Direction dir, bool fast )
		{
			if ( CheckDecay() )
				return false;

			bool drift = ( dir != Forward && dir != ForwardLeft && dir != ForwardRight );
			TimeSpan interval = (fast ? (drift ? FastDriftInterval : FastInterval) : (drift ? SlowDriftInterval : SlowInterval));
			int speed = (fast ? (drift ? FastDriftSpeed : FastSpeed) : (drift ? SlowDriftSpeed : SlowSpeed));
			int clientSpeed = fast ? 0x4 : 0x3;

			if ( StartMove( dir, speed, clientSpeed, interval, false, true ) )
			{
				if ( m_TillerMan != null )
					m_TillerMan.Say( 501429 ); // Aye aye sir.

				return true;
			}

			return false;
		}

Same methods

BaseBoat::StartMove ( Direction dir, int speed, int clientSpeed, TimeSpan interval, bool single, bool message ) : bool