Labyrinth
A labyrinth game assignment
host.labyrinth.DirRange Class Reference

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...
 
static final int numOfDirections =4
 

Detailed Description

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 56 of file Common.java.

Member Data Documentation

◆ Begin

final int host.labyrinth.DirRange.Begin =1
staticpackage

Iterator style begin of range direction (starting north)

Definition at line 57 of file Common.java.

◆ End

final int host.labyrinth.DirRange.End =8
staticpackage

Iterator style end of range direction (one place after the last)

Definition at line 58 of file Common.java.

◆ numOfDirections

final int host.labyrinth.DirRange.numOfDirections =4
staticpackage

Definition at line 60 of file Common.java.

◆ Step

final int host.labyrinth.DirRange.Step =2
staticpackage

Step for iterator style direction.

Definition at line 59 of file Common.java.


The documentation for this class was generated from the following file: