コード例 #1
0
ファイル: BaseBoat.cs プロジェクト: justdanofficial/khaeros
        public BaseBoat()
            : base(0x4000)
        {
            m_TillerMan = new TillerMan( this );
            m_Hold = new Hold( this );

            m_PPlank = new Plank( this, PlankSide.Port, 0 );
            m_SPlank = new Plank( this, PlankSide.Starboard, 0 );

            m_PPlank.MoveToWorld( new Point3D( X + PortOffset.X, Y + PortOffset.Y, Z ), Map );
            m_SPlank.MoveToWorld( new Point3D( X + StarboardOffset.X, Y + StarboardOffset.Y, Z ), Map );

            Facing = Direction.North;

            m_NextNavPoint = -1;

            Movable = false;

            m_Instances.Add( this );
        }
コード例 #2
0
ファイル: BaseBoat.cs プロジェクト: FreeReign/Rebirth-Repack
        public BaseBoat()
            : base(0x4000)
        {
            m_DecayTime = DateTime.Now + BoatDecayDelay;

            m_TillerMan = new TillerMan( this );
            m_Hold = new Hold( this );

            m_PPlank = new Plank( this, PlankSide.Port, 0 );
            m_SPlank = new Plank( this, PlankSide.Starboard, 0 );

            m_PPlank.MoveToWorld( new Point3D( X + PortOffset.X, Y + PortOffset.Y, Z ), Map );
            m_SPlank.MoveToWorld( new Point3D( X + StarboardOffset.X, Y + StarboardOffset.Y, Z ), Map );

            Facing = Direction.North;

            Movable = false;

            m_UpdateDeck = Timer.DelayCall( TimeSpan.FromMinutes( 10.0 ), TimeSpan.FromMinutes( 10.0 ), new TimerCallback( UpdateDeck ) );
        }
コード例 #3
0
ファイル: BaseBoat.cs プロジェクト: Crome696/ServUO
        public BaseBoat(Direction direction, bool isClassic)
            : base(0x0)
        {
            m_DecayTime = DateTime.UtcNow + BoatDecayDelay;
            m_Decay = true;
            Facing = direction;
            Layer = Layer.Mount;
            m_Anchored = false;
            m_VirtualMount = new BoatMountItem(this);

            if (isClassic)
            {
                m_TillerMan = new TillerMan(this);
                m_PPlank = new Plank(this, PlankSide.Port, 0);
                m_SPlank = new Plank(this, PlankSide.Starboard, 0);

                m_PPlank.MoveToWorld(new Point3D(X + PortOffset.X, Y + PortOffset.Y, Z), Map);
                m_SPlank.MoveToWorld(new Point3D(X + StarboardOffset.X, Y + StarboardOffset.Y, Z), Map);

                m_Hold = new Hold(this);

                UpdateComponents();
            }

            m_NextNavPoint = -1;
            Movable = false;
            m_Instances.Add(this);
        }