當前位置: 首頁>>代碼示例>>C#>>正文


C# Items.BaseBoard類代碼示例

本文整理匯總了C#中Server.Items.BaseBoard的典型用法代碼示例。如果您正苦於以下問題:C# BaseBoard類的具體用法?C# BaseBoard怎麽用?C# BaseBoard使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BaseBoard類屬於Server.Items命名空間,在下文中一共展示了BaseBoard類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: ValidateDefault

        public static bool ValidateDefault( Mobile from, BaseBoard board )
        {
            if ( from.AccessLevel >= AccessLevel.GameMaster )
            {
                return true;
            }

            if ( !from.Alive )
            {
                return false;
            }

            if ( board.IsChildOf( from.Backpack ) )
            {
                return true;
            }

            object root = board.RootParent;

            if ( root is Mobile && root != from )
            {
                return false;
            }

            if ( board.Deleted || board.Map != from.Map || !from.InRange( board.GetWorldLocation(), 1 ) )
            {
                return false;
            }

            IHouse house = HousingHelper.FindHouseAt( board );

            return ( house != null && house.IsOwner( from ) );
        }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:33,代碼來源:BaseBoard.cs

示例2: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                    {
                        this.m_Board = (BaseBoard)reader.ReadItem();

                        if (this.m_Board == null || this.Parent == null)
                            this.Delete();

                        break;
                    }
            }
        }
開發者ID:zerodowned,項目名稱:JustUO-merged-with-EC-Support,代碼行數:19,代碼來源:BasePiece.cs

示例3: PieceBlackKnight

 public PieceBlackKnight( BaseBoard board )
     : base(0x358F, "black knight", board)
 {
 }
開發者ID:BackupTheBerlios,項目名稱:sunuo-svn,代碼行數:4,代碼來源:ChessPieces.cs

示例4: PieceWhiteBishop

 public PieceWhiteBishop( BaseBoard board )
     : base(0x3585, "white bishop", board)
 {
 }
開發者ID:BackupTheBerlios,項目名稱:sunuo-svn,代碼行數:4,代碼來源:ChessPieces.cs

示例5: PieceWhiteRook

 public PieceWhiteRook( BaseBoard board )
     : base(0x3586, "white rook", board)
 {
 }
開發者ID:BackupTheBerlios,項目名稱:sunuo-svn,代碼行數:4,代碼來源:ChessPieces.cs

示例6: PieceBlackKing

 public PieceBlackKing( BaseBoard board )
     : base(0x358E, "black king", board)
 {
 }
開發者ID:BackupTheBerlios,項目名稱:sunuo-svn,代碼行數:4,代碼來源:ChessPieces.cs

示例7: PieceWhitePawn

 public PieceWhitePawn( BaseBoard board )
     : base(0x3589, "white pawn", board)
 {
 }
開發者ID:BackupTheBerlios,項目名稱:sunuo-svn,代碼行數:4,代碼來源:ChessPieces.cs

示例8: PieceWhiteQueen

 public PieceWhiteQueen( BaseBoard board )
     : base(0x358A, "white queen", board)
 {
 }
開發者ID:BackupTheBerlios,項目名稱:sunuo-svn,代碼行數:4,代碼來源:ChessPieces.cs

示例9: BasePiece

 public BasePiece( int itemID, string name, BaseBoard board )
     : base(itemID)
 {
     m_Board = board;
     Name = name;
 }
開發者ID:FreeReign,項目名稱:Rebirth-Repack,代碼行數:6,代碼來源:BasePiece.cs

示例10: PieceWhiteKnight

 public PieceWhiteKnight( BaseBoard board )
     : base(0x3588, "white knight", board)
 {
 }
開發者ID:BackupTheBerlios,項目名稱:sunuo-svn,代碼行數:4,代碼來源:ChessPieces.cs

示例11: PieceBlackRook

 public PieceBlackRook( BaseBoard board )
     : base(0x358D, "black rook", board)
 {
 }
開發者ID:BackupTheBerlios,項目名稱:sunuo-svn,代碼行數:4,代碼來源:ChessPieces.cs

示例12: BasePiece

 public BasePiece(int itemID, BaseBoard board)
     : base(itemID)
 {
     this.m_Board = board;
 }
開發者ID:zerodowned,項目名稱:JustUO-merged-with-EC-Support,代碼行數:5,代碼來源:BasePiece.cs

示例13: PieceBlackQueen

 public PieceBlackQueen( BaseBoard board )
     : base(0x3591, "black queen", board)
 {
 }
開發者ID:BackupTheBerlios,項目名稱:sunuo-svn,代碼行數:4,代碼來源:ChessPieces.cs

示例14: PieceBlackPawn

 public PieceBlackPawn( BaseBoard board )
     : base(0x3590, "black pawn", board)
 {
 }
開發者ID:BackupTheBerlios,項目名稱:sunuo-svn,代碼行數:4,代碼來源:ChessPieces.cs

示例15: PieceBlackBishop

 public PieceBlackBishop( BaseBoard board )
     : base(0x358C, "black bishop", board)
 {
 }
開發者ID:BackupTheBerlios,項目名稱:sunuo-svn,代碼行數:4,代碼來源:ChessPieces.cs


注:本文中的Server.Items.BaseBoard類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。