Class to create ranges of numbers.
More...
|
| | 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...
|
| |
| int | size () |
| |
|
| void | init (int begin, int end, int step) |
| | Common utility to create the range for all constructors. More...
|
| |
Class to create ranges of numbers.
Definition at line 185 of file Common.java.
◆ Range() [1/2]
| host.labyrinth.Range.Range |
( |
int |
begin, |
|
|
int |
end |
|
) |
| |
|
package |
Create the range [begin, end)
- Parameters
-
| begin | The first item on the range |
| end | The item after the last on the range |
Definition at line 191 of file Common.java.
◆ Range() [2/2]
| host.labyrinth.Range.Range |
( |
int |
begin, |
|
|
int |
end, |
|
|
int |
step |
|
) |
| |
|
package |
Create the range [begin, end) using step as interval between items.
- Parameters
-
| begin | The first item on the range |
| end | The item after the last on the range |
| step | The interval between items |
Definition at line 201 of file Common.java.
◆ get()
| int host.labyrinth.Range.get |
( |
| ) |
|
|
package |
Extract and return the first item from the range.
- Returns
- The first item of the range or Const.noTileId if there is none.
Definition at line 218 of file Common.java.
◆ init()
| void host.labyrinth.Range.init |
( |
int |
begin, |
|
|
int |
end, |
|
|
int |
step |
|
) |
| |
|
private |
Common utility to create the range for all constructors.
Definition at line 209 of file Common.java.
◆ size()
| int host.labyrinth.Range.size |
( |
| ) |
|
|
package |
- Returns
- The size of the underline structure
Definition at line 227 of file Common.java.
◆ numbers
| ArrayList<Integer> host.labyrinth.Range.numbers |
|
protected |
The documentation for this class was generated from the following file: