Startside

parts of my code:

public
class Dungeon {
 

dim1 =

new
ArrayList<Long>[maxDim];

dim2 =

new ArrayList<Long>[maxDim];

dim3 =

new ArrayList<Long>[maxDim]; int squareNb;

private

int []zeroCoordinates={0,0,0};

arrayOfCoordinates[3][MAX_VALUE]=

new ArrayList<Long>[3][MAX_VALUE];

private

static final int SOUTH = 1; private static final int FLOOR =2; private static final int WEST =3; private static final int EAST = 4; private static final int CEILING = 5; private static final int NORTH = 6; int Directions[] = {SOUTH, FLOOR, WEST, EAST, CEILING, NORTH};

public

int[] getNewCoordinates(int[]currentCoordinates, int direction){...}

public

void setNewSquareInDirection(long SquareNb, int direction, int[] coordinates){ this.squareNb=squareNb; this.coordinates=coordinates; if ((direction!=SOUTH)&&(direction!=WEST)&&(direction!=FLOOR)) new Square(); this.squareNb+=squareNb+1; long [] newCoordinates=getNewCoordinates(this.coordinates, direction);

set.hasNeighborInDirection(

this.direction)=true;

}

public boolean isValidNewCoordinates(int[]newCoordinates){ if ((newCoordinates[1]==newCoordinates[2])&&(newCoordinates[2]==newCoordinates[3])) return false;

}

public void setNewCoordinatesToArray(long[]newCoordinates){

arrayOfCoordinates[3][( getCurrentSquareNb+1)] = newCoordinates;

}