Labyrinth
A labyrinth game assignment
|
Helper C++ like enumerator class for direction ranged loops. More...
Static Package Attributes | |
static final int | Begin =1 |
Iterator style begin of range direction (starting north) More... | |
static final int | End =8 |
Iterator style end of range direction (one place after the last) More... | |
static final int | Step =2 |
Step for iterator style direction. More... | |
Helper C++ like enumerator class for direction ranged loops.
We can make use of this in loops like:
for (int i=DirRange.Begin ; i<DirRange.End ; i += DirRange.Step) { }
or
Range directions = new Range(DirRange.Begin, DirRange.End, DirRange.Step);
Definition at line 62 of file Common.java.
|
staticpackage |
Iterator style begin of range direction (starting north)
Definition at line 63 of file Common.java.
|
staticpackage |
Iterator style end of range direction (one place after the last)
Definition at line 64 of file Common.java.
|
staticpackage |
Step for iterator style direction.
Definition at line 65 of file Common.java.