|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMazeMaker
public class MazeMaker
Field Summary | |
---|---|
(package private) int |
h
|
(package private) java.lang.String |
maz
|
(package private) Maze |
maze
|
(package private) int |
w
|
(package private) int[][] |
walls
|
Constructor Summary | |
---|---|
MazeMaker(int m,
int n)
Creates a new maze. |
Method Summary | |
---|---|
void |
construct()
Constructs the maze |
void |
fillwalls()
Insert all possible walls |
Maze |
getMaze()
|
void |
printwalls()
Print the connections between the vertices of the maze |
java.lang.String |
toString()
Returns the String representing the format of the maze as it would be written to file |
java.io.File |
write(java.lang.String title)
Write the maze to file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
Maze maze
int[][] walls
int h
int w
java.lang.String maz
Constructor Detail |
---|
public MazeMaker(int m, int n)
m
- The widthn
- The heightMethod Detail |
---|
public Maze getMaze()
public java.lang.String toString()
toString
in class java.lang.Object
public void construct()
public java.io.File write(java.lang.String title) throws java.io.IOException
title
- The filename
java.io.IOException
public void printwalls()
public void fillwalls()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |