public final class MapCursorCollection extends Object
MapCanvas. Like MapCanvas, a
MapCursorCollection is linked to a specific MapRenderer.| Constructor and Description |
|---|
MapCursorCollection() |
| Modifier and Type | Method and Description |
|---|---|
MapCursor |
addCursor(int x,
int y,
byte direction)
Add a cursor to the collection.
|
MapCursor |
addCursor(int x,
int y,
byte direction,
byte type)
Deprecated.
Magic value
|
MapCursor |
addCursor(int x,
int y,
byte direction,
byte type,
boolean visible)
Deprecated.
Magic value
|
MapCursor |
addCursor(MapCursor cursor)
Add a cursor to the collection.
|
MapCursor |
getCursor(int index)
Get a cursor from this collection.
|
boolean |
removeCursor(MapCursor cursor)
Remove a cursor from the collection.
|
int |
size()
Get the amount of cursors in this collection.
|
public int size()
public MapCursor getCursor(int index)
index - The index of the cursor.public boolean removeCursor(MapCursor cursor)
cursor - The MapCursor to remove.public MapCursor addCursor(MapCursor cursor)
cursor - The MapCursor to add.public MapCursor addCursor(int x, int y, byte direction)
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.@Deprecated public MapCursor addCursor(int x, int y, byte direction, byte type)
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.@Deprecated public MapCursor addCursor(int x, int y, byte direction, byte type, boolean visible)
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.Copyright © 2015. All rights reserved.