public final class MapCursor
extends java.lang.Object
原文: Represents a cursor on a map.
限定符和类型 | 类和说明 |
---|---|
static class |
MapCursor.Type
表示地图光标的标准类型。
|
构造器和说明 |
---|
MapCursor(byte x,
byte y,
byte direction,
byte type,
boolean visible)
已过时。
不安全的参数
|
MapCursor(byte x,
byte y,
byte direction,
byte type,
boolean visible,
java.lang.String caption)
已过时。
不安全的参数
|
MapCursor(byte x,
byte y,
byte direction,
MapCursor.Type type,
boolean visible,
java.lang.String caption)
初始化地图光标.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getCaption()
Gets the caption on this cursor.
|
byte |
getDirection()
获取这个光标的朝向.
|
byte |
getRawType()
已过时。
不安全的参数
|
MapCursor.Type |
getType()
获取这个光标的类型.
|
byte |
getX()
获取这个光标的X坐标.
|
byte |
getY()
获取这个光标的Y坐标.
|
boolean |
isVisible()
获取这个光标的可见情况.
|
void |
setCaption(java.lang.String caption)
Sets the caption on this cursor.
|
void |
setDirection(byte direction)
设置这个光标的方向.
|
void |
setRawType(byte type)
已过时。
不安全的参数
|
void |
setType(MapCursor.Type type)
设置这个光标的类型.
|
void |
setVisible(boolean visible)
设置这个光标的可见情况.
|
void |
setX(byte x)
设置这个光标的X坐标.
|
void |
setY(byte y)
设置这个光标的Y坐标.
|
@Deprecated public MapCursor(byte x, byte y, byte direction, byte type, boolean visible)
原文:Initialize the map cursor.
x
- The x coordinate, from -128 to 127.y
- The y coordinate, from -128 to 127.direction
- The facing of the cursor, from 0 to 15.type
- The type (color/style) of the map cursor.visible
- Whether the cursor is visible by default.@Deprecated public MapCursor(byte x, byte y, byte direction, byte type, boolean visible, java.lang.String caption)
原文: Initialize the map cursor.
x
- x坐标,范围为-128到127y
- y坐标,范围为-128到127direction
- 光标的朝向,范围为0到15type
- 地图光标的类型(颜色、风格)visible
- 光标在默认情况下是否可见caption
- 光标标题public MapCursor(byte x, byte y, byte direction, MapCursor.Type type, boolean visible, java.lang.String caption)
原文: Initialize the map cursor.
x
- The x coordinate, from -128 to 127.y
- The y coordinate, from -128 to 127.direction
- The facing of the cursor, from 0 to 15.type
- The type (color/style) of the map cursor.visible
- Whether the cursor is visible by default.caption
- cursor captionpublic byte getX()
原文: Get the X position of this cursor.
public byte getY()
原文: Get the Y position of this cursor.
public byte getDirection()
原文: Get the direction of this cursor.
public MapCursor.Type getType()
原文: Get the type of this cursor.
@Deprecated public byte getRawType()
原文: Get the type of this cursor.
public boolean isVisible()
原文: Get the visibility status of this cursor.
public void setX(byte x)
原文: Set the X position of this cursor.
x
- X坐标public void setY(byte y)
原文: Set the Y position of this cursor.
y
- Y坐标public void setDirection(byte direction)
原文: Set the direction of this cursor.
direction
- 这个光标的朝向,范围为0到15public void setType(MapCursor.Type type)
原文: Set the type of this cursor.
type
- 地图光标的类型(颜色、风格)@Deprecated public void setRawType(byte type)
原文: Set the type of this cursor.
type
- 地图光标的类型(颜色、风格)public void setVisible(boolean visible)
原文: Set the visibility status of this cursor.
visible
- 可见则为truepublic java.lang.String getCaption()
public void setCaption(java.lang.String caption)
caption
- new caption