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

Class to create shuffled ranges of numbers. More...

Inheritance diagram for host.labyrinth.ShuffledRange:
host.labyrinth.Range

Package Functions

 ShuffledRange (int begin, int end)
 Create a shuffled version of range [begin, end) More...
 
 ShuffledRange (int begin, int end, int step)
 Create a shuffled version of the range [begin, end) using step as interval between items. More...
 
- Package Functions inherited from host.labyrinth.Range
 Range (int begin, int end)
 Create the range [begin, end) More...
 
 Range (int begin, int end, int step)
 Create the range [begin, end) using step as interval between items. More...
 
int get ()
 Extract and return the first item from the range. More...
 

Additional Inherited Members

- Protected Attributes inherited from host.labyrinth.Range
ArrayList< Integer > numbers
 handle to range More...
 

Detailed Description

Class to create shuffled ranges of numbers.

Definition at line 209 of file Common.java.

Constructor & Destructor Documentation

◆ ShuffledRange() [1/2]

host.labyrinth.ShuffledRange.ShuffledRange ( int  begin,
int  end 
)
package

Create a shuffled version of range [begin, end)

Parameters
beginThe first item on the range
endThe item after the last on the range

Definition at line 215 of file Common.java.

◆ ShuffledRange() [2/2]

host.labyrinth.ShuffledRange.ShuffledRange ( int  begin,
int  end,
int  step 
)
package

Create a shuffled version of the range [begin, end) using step as interval between items.

Parameters
beginThe first item on the range
endThe item after the last on the range
stepThe interval between items

Definition at line 227 of file Common.java.


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