public enum MapSize extends Enum<MapSize>
| Enum Constant and Description |
|---|
LARGE
Mapa 40 X 40.
|
SMALL
Mapa 20 X 20.
|
| Modifier and Type | Field and Description |
|---|---|
Dimension |
dimension
Tamanho aconselhado para o frame principal.
|
int |
size
Tamanho do mapa.
|
| Modifier and Type | Method and Description |
|---|---|
static MapSize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MapSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapSize SMALL
public static final MapSize LARGE
public final int size
public final Dimension dimension
public static MapSize[] values()
for (MapSize c : MapSize.values()) System.out.println(c);
public static MapSize valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2013–2015 Tecgraf/PUC-Rio. All rights reserved.