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; }
public PieceWhiteQueen(BaseGameBoard board) : base(0x358A, board) { }
public PieceBlackRook( BaseGameBoard board ) : base(0x358D, board) { }
public PieceBlackKnight(BaseGameBoard board) : base(0x358F, board) { }
public PieceBlackPawn(BaseGameBoard board) : base(0x3590, board) { }
public PieceBlackRook(BaseGameBoard board) : base(0x358D, board) { }
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) { }
public PieceWhiteKing(BaseGameBoard board) : base(0x3587, board) { }
public PieceBlackKnight( BaseGameBoard board ) : base(0x358F, board) { }
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; }
public PieceWhiteBishop(BaseGameBoard board) : base(0x3585, board) { }
public PieceBlackChecker( BaseGameBoard board ) : base(0x358B, board) { }
public PieceWhiteKnight(BaseGameBoard board) : base(0x3588, board) { }
public PieceWhiteChecker( BaseGameBoard board ) : base(0x3584, board) { }
public PieceWhitePawn(BaseGameBoard board) : base(0x3589, board) { }
public BasePiece( int itemID, BaseGameBoard board ) : base(itemID) { m_Board = board; }
public PieceBlackKing(BaseGameBoard board) : base(0x358E, board) { }
public PieceBlackPawn( BaseGameBoard board ) : base(0x3590, board) { }
public PieceBlackQueen(BaseGameBoard board) : base(0x3591, board) { }
public PieceBlackQueen( BaseGameBoard board ) : base(0x3591, board) { }
public PieceBlackBishop( BaseGameBoard board ) : base(0x358C, board) { }