当前位置: 首页>>代码示例>>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;未经允许,请勿转载。