I am new to game development and to be honest I am an intermediate - beginner in the language of JAVA. I want to build a dungeon generator, based on rougelike techniques, such as the grid based dungeon generator. I read the instructions on the following site http://www.roguebasin.com/index.php?title=Grid_Based_Dungeon_Generator but I am not sure how I am able to implement all the data structures needed there.
I know how the floodfill algorithm works and I also know how to implement it later, but the first things I did do not work.
I have to create a grid of cells on an array and store four dimensions for each cell. If I have a cell of the size 5 on my array, the four dimensions would be (0,0) (4,0) (0,4) and (4,4) so the corner points of the cell, and the numbers are the locations on my two dimensional array.
The first thing I did was creating a datastructure which can hold a pair (2tupel) of Integers, called IntPair. Now I have to iterate over the array and store for each cell the four dimensions. How am I able to do this? If my description sucks, which it does, since I am confused at the moment, please visit the link and you get a clear idea of what I want to have.
All advice is welcome. I know that this is some basic stuff for most of you guys, but if you never have been into game development and such algorithms, its quite hard to write specifications into code right away.
Thank you in advance.