| Package | Description |
|---|---|
| com.sun.sgs.example.hack.server | |
| com.sun.sgs.example.hack.server.level |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleItem
This is a simple implementation of
Item that provides
non-interactive items. |
| Modifier and Type | Method and Description |
|---|---|
void |
Level.addItem(Item item)
Adds an item to this level at some random position.
|
boolean |
BasicTile.addItem(Item item)
Adds the given item to this tile if possible.
|
boolean |
ConnectorTile.addItem(Item item)
Always returns false, since you can't have items on this tile.
|
boolean |
Tile.addItem(Item item)
Adds the given item to this tile if possible.
|
void |
SimpleLevel.addItem(Item item)
Adds an item to this level at some random position.
|
void |
Level.addItem(Item item,
int startX,
int startY)
Adds an item to this level at the given position.
|
void |
SimpleLevel.addItem(Item item,
int startX,
int startY)
Adds an item to this level at the given position.
|
boolean |
SimpleBoard.addItemAt(int x,
int y,
Item item)
Tries to add an item at the given location.
|
boolean |
LevelBoard.addItemAt(int x,
int y,
Item item)
Tries to add an item at the given location.
|
boolean |
BasicTile.removeItem(Item item)
Removes the given item from this tile, if and only if this item
is already on this tile.
|
boolean |
ConnectorTile.removeItem(Item item)
Always returns false, since you can't have items on this tile.
|
boolean |
Tile.removeItem(Item item)
Removes the given item from this tile, if and only if this item
is already on this tile.
|
boolean |
SimpleBoard.removeItemAt(int x,
int y,
Item item)
Tries to remove an item from the given location.
|
boolean |
LevelBoard.removeItemAt(int x,
int y,
Item item)
Tries to remove an item from the given location.
|
Copyright © 2013. All Rights Reserved.