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; } } }
public PieceWhitePawn( BaseBoard board ) : base(0x3589, "white pawn", board) { }
public PieceWhiteRook( BaseBoard board ) : base(0x3586, "white rook", board) { }
public PieceBlackRook( BaseBoard board ) : base(0x358D, "black rook", board) { }
public PieceWhiteKing( BaseBoard board ) : base(0x3587, "white king", board) { }
public PieceBlackChecker(BaseBoard board) : base(0x358B, board) { }
public PieceBlackPawn( BaseBoard board ) : base(0x3590, "black pawn", board) { }
public PieceWhiteKing(BaseBoard board) : base(0x3587, "white king", board) { }
public BasePiece( int itemID, string name, BaseBoard board ) : base(itemID) { m_Board = board; Name = name; }
public PieceWhitePawn(BaseBoard board) : base(0x3589, "white pawn", board) { }
public PieceBlackPawn(BaseBoard board) : base(0x3590, "black pawn", board) { }
public PieceBlackKnight(BaseBoard board) : base(0x358F, "black knight", board) { }
public PieceWhiteKnight(BaseBoard board) : base(0x3588, "white knight", board) { }
public PieceBlackBishop(BaseBoard board) : base(0x358C, "black bishop", board) { }
public PieceBlackKnight( BaseBoard board ) : base(0x358F, "black knight", board) { }
public PieceBlackKing(BaseBoard board) : base(0x358E, "black king", board) { }
public PieceWhiteBishop(BaseBoard board) : base(0x3585, "white bishop", board) { }
public PieceWhiteQueen(BaseBoard board) : base(0x358A, "white queen", board) { }
public PieceWhiteChecker(BaseBoard board) : base(0x3584, board) { }
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));
public PieceBlackBishop( BaseBoard board ) : base(0x358C, "black bishop", board) { }
public BasePiece(int itemID, BaseBoard board) : base(itemID) { m_Board = board; }
public PieceBlackQueen( BaseBoard board ) : base(0x3591, "black queen", board) { }
public PieceWhiteBishop( BaseBoard board ) : base(0x3585, "white bishop", board) { }
public PieceWhiteKnight( BaseBoard board ) : base(0x3588, "white knight", board) { }
public BasePiece(int itemID, string name, BaseBoard board) : base(itemID) { m_Board = board; Name = name; }
public PieceWhiteQueen( BaseBoard board ) : base(0x358A, "white queen", board) { }
public BasePiece(int itemID, BaseBoard board) : base(itemID) { this.m_Board = board; }
public PieceBlackKing( BaseBoard board ) : base(0x358E, "black king", board) { }
public PieceWhiteRook(BaseBoard board) : base(0x3586, "white rook", board) { }
public DefaultEntry(Mobile from, BaseBoard board) : base(6162, from.AccessLevel >= AccessLevel.GameMaster ? -1 : 1) { m_From = from; m_Board = board; }
public PieceBlackRook(BaseBoard board) : base(0x358D, "black rook", board) { }
public DefaultEntry( Mobile from, BaseBoard board ) : base( 6162, from.AccessLevel >= AccessLevel.GameMaster ? -1 : 1 ) { m_From = from; m_Board = board; }
public PieceBlackQueen(BaseBoard board) : base(0x3591, "black queen", board) { }