상속: Item, ICommodity
예제 #1
0
        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 ) );
        }
        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;
                    }
            }
        }
예제 #3
0
 public PieceWhitePawn( BaseBoard board )
     : base(0x3589, "white pawn", board)
 {
 }
예제 #4
0
 public PieceWhiteRook( BaseBoard board )
     : base(0x3586, "white rook", board)
 {
 }
예제 #5
0
 public PieceBlackRook( BaseBoard board )
     : base(0x358D, "black rook", board)
 {
 }
예제 #6
0
 public PieceWhiteKing( BaseBoard board )
     : base(0x3587, "white king", board)
 {
 }
예제 #7
0
 public PieceBlackChecker(BaseBoard board)
     : base(0x358B, board)
 {
 }
예제 #8
0
 public PieceBlackPawn( BaseBoard board )
     : base(0x3590, "black pawn", board)
 {
 }
예제 #9
0
 public PieceWhiteKing(BaseBoard board) : base(0x3587, "white king", board)
 {
 }
예제 #10
0
 public BasePiece( int itemID, string name, BaseBoard board )
     : base(itemID)
 {
     m_Board = board;
     Name = name;
 }
예제 #11
0
 public PieceWhitePawn(BaseBoard board) : base(0x3589, "white pawn", board)
 {
 }
예제 #12
0
 public PieceBlackPawn(BaseBoard board) : base(0x3590, "black pawn", board)
 {
 }
예제 #13
0
 public PieceBlackKnight(BaseBoard board) : base(0x358F, "black knight", board)
 {
 }
예제 #14
0
 public PieceWhiteKnight(BaseBoard board) : base(0x3588, "white knight", board)
 {
 }
예제 #15
0
 public PieceBlackBishop(BaseBoard board) : base(0x358C, "black bishop", board)
 {
 }
예제 #16
0
 public PieceBlackKnight( BaseBoard board )
     : base(0x358F, "black knight", board)
 {
 }
예제 #17
0
 public PieceBlackKing(BaseBoard board) : base(0x358E, "black king", board)
 {
 }
예제 #18
0
 public PieceWhiteBishop(BaseBoard board) : base(0x3585, "white bishop", board)
 {
 }
예제 #19
0
 public PieceWhiteQueen(BaseBoard board) : base(0x358A, "white queen", board)
 {
 }
예제 #20
0
 public PieceWhiteChecker(BaseBoard board)
     : base(0x3584, board)
 {
 }
예제 #21
0
 public static bool ValidateDefault(Mobile from, BaseBoard board) =>
 !board.Deleted && (from.AccessLevel >= AccessLevel.GameMaster || from.Alive &&
                    (board.IsChildOf(from.Backpack) || !(board.RootParent is Mobile) &&
                     board.Map == from.Map && from.InRange(board.GetWorldLocation(), 1) &&
                     BaseHouse.FindHouseAt(board)?.IsOwner(from) == true));
예제 #22
0
 public PieceBlackBishop( BaseBoard board )
     : base(0x358C, "black bishop", board)
 {
 }
예제 #23
0
 public BasePiece(int itemID, BaseBoard board) : base(itemID)
 {
     m_Board = board;
 }
예제 #24
0
 public PieceBlackQueen( BaseBoard board )
     : base(0x3591, "black queen", board)
 {
 }
예제 #25
0
 public PieceWhiteChecker(BaseBoard board)
     : base(0x3584, board)
 {
 }
예제 #26
0
 public PieceWhiteBishop( BaseBoard board )
     : base(0x3585, "white bishop", board)
 {
 }
예제 #27
0
 public PieceBlackChecker(BaseBoard board)
     : base(0x358B, board)
 {
 }
예제 #28
0
 public PieceWhiteKnight( BaseBoard board )
     : base(0x3588, "white knight", board)
 {
 }
예제 #29
0
 public BasePiece(int itemID, string name, BaseBoard board) : base(itemID)
 {
     m_Board = board;
     Name    = name;
 }
예제 #30
0
 public PieceWhiteQueen( BaseBoard board )
     : base(0x358A, "white queen", board)
 {
 }
 public BasePiece(int itemID, BaseBoard board)
     : base(itemID)
 {
     this.m_Board = board;
 }
예제 #32
0
 public PieceBlackKing( BaseBoard board )
     : base(0x358E, "black king", board)
 {
 }
예제 #33
0
 public PieceWhiteRook(BaseBoard board) : base(0x3586, "white rook", board)
 {
 }
예제 #34
0
 public DefaultEntry(Mobile from, BaseBoard board)
     : base(6162, from.AccessLevel >= AccessLevel.GameMaster ? -1 : 1)
 {
     m_From  = from;
     m_Board = board;
 }
예제 #35
0
 public PieceBlackRook(BaseBoard board) : base(0x358D, "black rook", board)
 {
 }
예제 #36
0
			public DefaultEntry( Mobile from, BaseBoard board ) : base( 6162, from.AccessLevel >= AccessLevel.GameMaster ? -1 : 1 )
			{
				m_From = from;
				m_Board = board;
			}
예제 #37
0
 public PieceBlackQueen(BaseBoard board) : base(0x3591, "black queen", board)
 {
 }