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

            int version = reader.ReadInt();

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

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

                    break;
                }
            }
        }
        public static bool ValidateDefault( Mobile from, BaseGameBoard 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;

            BaseHouse house = BaseHouse.FindHouseAt( board );

            return ( house != null && house.IsOwner( from ) );
        }
 public BasePiece(int itemID, BaseGameBoard board) : base(itemID)
 {
     m_Board = board;
 }
Exemple #4
0
 public PieceWhiteQueen(BaseGameBoard board) : base(0x358A, board)
 {
 }
 public PieceBlackRook( BaseGameBoard board )
     : base(0x358D, board)
 {
 }
Exemple #6
0
 public PieceBlackKnight(BaseGameBoard board) : base(0x358F, board)
 {
 }
Exemple #7
0
 public PieceBlackPawn(BaseGameBoard board) : base(0x3590, board)
 {
 }
Exemple #8
0
 public PieceBlackRook(BaseGameBoard board) : base(0x358D, board)
 {
 }
Exemple #9
0
 public PieceBlackBishop(BaseGameBoard board) : base(0x358C, board)
 {
 }
 public PieceWhiteRook( BaseGameBoard board )
     : base(0x3586, board)
 {
 }
 public PieceBlackKing( BaseGameBoard board )
     : base(0x358E, board)
 {
 }
 public PieceWhitePawn( BaseGameBoard board )
     : base(0x3589, board)
 {
 }
 public PieceWhiteQueen( BaseGameBoard board )
     : base(0x358A, board)
 {
 }
 public PieceWhiteKnight( BaseGameBoard board )
     : base(0x3588, board)
 {
 }
 public PieceWhiteKing( BaseGameBoard board )
     : base(0x3587, board)
 {
 }
 public PieceWhiteBishop( BaseGameBoard board )
     : base(0x3585, board)
 {
 }
Exemple #17
0
 public PieceWhiteKing(BaseGameBoard board) : base(0x3587, board)
 {
 }
 public PieceBlackKnight( BaseGameBoard board )
     : base(0x358F, board)
 {
 }
Exemple #19
0
 public PieceWhiteRook(BaseGameBoard board) : base(0x3586, board)
 {
 }
 public DefaultEntry(Mobile from, BaseGameBoard board) : base(6162, from.AccessLevel >= AccessLevel.GameMaster ? -1 : 1)
 {
     m_From  = from;
     m_Board = board;
 }
Exemple #21
0
 public PieceWhiteBishop(BaseGameBoard board) : base(0x3585, board)
 {
 }
 public PieceBlackChecker( BaseGameBoard board )
     : base(0x358B, board)
 {
 }
Exemple #23
0
 public PieceWhiteKnight(BaseGameBoard board) : base(0x3588, board)
 {
 }
 public PieceWhiteChecker( BaseGameBoard board )
     : base(0x3584, board)
 {
 }
Exemple #25
0
 public PieceWhitePawn(BaseGameBoard board) : base(0x3589, board)
 {
 }
 public BasePiece( int itemID, BaseGameBoard board )
     : base(itemID)
 {
     m_Board = board;
 }
Exemple #27
0
 public PieceBlackKing(BaseGameBoard board) : base(0x358E, board)
 {
 }
 public PieceBlackPawn( BaseGameBoard board )
     : base(0x3590, board)
 {
 }
Exemple #29
0
 public PieceBlackQueen(BaseGameBoard board) : base(0x3591, board)
 {
 }
 public PieceBlackQueen( BaseGameBoard board )
     : base(0x3591, board)
 {
 }
Exemple #31
0
            public DefaultEntry(Mobile from, BaseGameBoard board)
                : base(6162, from.AccessLevel >= AccessLevel.GameMaster ? -1 : 1)
			{
				m_From = from;
				m_Board = board;
			}
 public PieceBlackBishop( BaseGameBoard board )
     : base(0x358C, board)
 {
 }