@Override public boolean canPlaceTrap(Point p) { //traps cannot appear in connection rooms on floor 1 return super.canPlaceTrap(p) && Dungeon.depth > 1; }
public void set( Type type ) { if (type.compareTo( this.type ) > 0) { this.type = type; } } }
public int remConnections(int direction){ if (curConnections(ALL) >= maxConnections(ALL)) return 0; else return maxConnections(direction) - curConnections(direction); }
public boolean canPlaceWater(Point p){ return inside(p); }
public boolean forceSize( int w, int h ){ return setSize( w, w, h, h ); }
public Point random() { return random( 1 ); }
public boolean canConnect(int direction){ return remConnections(direction) > 0; }
public int remConnections(int direction){ if (curConnections(ALL) >= maxConnections(ALL)) return 0; else return maxConnections(direction) - curConnections(direction); }
public boolean canPlaceCharacter(Point p, Level l){ return inside(p); }
@Override public boolean canPlaceTrap(Point p) { //traps cannot appear in connection rooms on floor 1 return super.canPlaceTrap(p) && Dungeon.depth > 1; }
public void set( Type type ) { if (type.compareTo( this.type ) > 0) { this.type = type; } } }
public boolean forceSize( int w, int h ){ return setSize( w, w, h, h ); }
public Point random() { return random( 1 ); }
public boolean canConnect(int direction){ return remConnections(direction) > 0; }
public boolean canPlaceTrap(Point p){ return inside(p); }
public boolean canPlaceGrass(Point p){ return inside(p); }
public boolean canPlaceTrap(Point p){ return inside(p); }
public boolean canPlaceWater(Point p){ return inside(p); }