public/js/clientSideGameLogic/Commands.js
/**
 * if the vertexUnit at this vertex is a settlement
 * @param vertex
 */
if the vertexUnit at this vertex is a settlement
@param vertex
if the vertexUnit at this vertex is a settlement @param vertex
function isSettlement(vertex) {
    let vertexUnit = DATA.getMatch().map.getVertexInfo(vertex);
    if (!_.isObject(vertexUnit) || isKnight(vertexUnit)) return false;
    return (vertexUnit.level == 1);
}
function isSettlement ( vertex ) { let vertexUnit = DATA . getMatch ( ) . map . getVertexInfo ( vertex ) ; if ( ! _ . isObject ( vertexUnit ) || isKnight ( vertexUnit ) ) return false ; return ( vertexUnit . level == 1 ) ; }
if the vertexUnit at this vertex is a settlement
 @param vertex
if the vertexUnit at this vertex is a settlement @param vertex