public final class MapSize extends Object
修飾子とタイプ | フィールドと説明 |
---|---|
static MapSize |
DEFAULT
デフォルト値を表わすインスタンス.
|
static int |
DEFAULT_HEIGHT
タテに並ぶデフォルトのユニット数.
|
static int |
DEFAULT_WIDTH
ヨコに並ぶデフォルトのユニット数.
|
修飾子とタイプ | メソッドと説明 |
---|---|
int |
getHeight()
タテに並べられるユニット数.
|
int |
getWidth()
ヨコに並べられるユニット数.
|
static MapSize |
of(int w,
int h)
ヨコとタテの値を指定してインスタンスを取得する.
|
static MapSize |
ofHeight(int h)
タテだけを指定してインスタンスを取得する.
|
static MapSize |
ofWidth(int w)
ヨコだけを指定してインスタンスを取得する.
|
String |
toString() |
public static final MapSize DEFAULT
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
public static MapSize of(int w, int h)
w
- ヨコh
- タテpublic static MapSize ofWidth(int w)
w
- ヨコpublic static MapSize ofHeight(int h)
h
- タテpublic int getWidth()
public int getHeight()
Copyright © 2016. All rights reserved.