|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An InteractionDescriptor accumulates several
InteractionItems. It is returned by an object that
implements the BaseInteractable interface.
NOTICE:This class is subject of reconstruction such that it might
change in the near future. It is recommended not to make to much use of
it.
InteractionItem,
BaseInteractable| Field Summary | |
static int |
ITEM_INDEX_NONE
constant that defines a non existing index |
| Method Summary | |
void |
addItem(InteractionItem item)
Adds the item given by item to the
InteractionDescriptor. |
InteractionItem |
getItem(int index)
Returns the InteractionItem at the index given by
index. |
InteractionItem |
getMoveItem()
Returns the InteractionItem that moves the
BaseInteractable or null if there is no item that moves the whole
BaseInteractable. |
int |
indexOf(InteractionItem item)
Returns the index for the InteractionItem given by
item. |
int |
indexOfMoveItem()
Returns the index of the 'move' InteractionItem or
ITEM_INDEX_NONE if no 'move' InteractionItem is
available. |
int |
itemCount()
Returns the number of InteractionItems currently available
for the InteractionDescriptor. |
java.util.Iterator |
iteratorItems()
This method returns an iterator which steps over the InteractionItems provided by this
InteractionDescriptor object. |
void |
removeItem(int index)
Removes the item at the index given by index from the
InteractionDescriptor. |
void |
removeItem(InteractionItem item)
Removes the InteractionItem given by item from
the InteractionDescriptor. |
| Field Detail |
public static final int ITEM_INDEX_NONE
| Method Detail |
public int itemCount()
InteractionItems currently available
for the InteractionDescriptor.
InteractionItemspublic int indexOf(InteractionItem item)
InteractionItem given by
item.
item - the InteractionItem to return the index for
InteractionItempublic int indexOfMoveItem()
InteractionItem or
ITEM_INDEX_NONE if no 'move' InteractionItem is
available.
InteractionItem or
ITEM_INDEX_NONEpublic InteractionItem getItem(int index)
InteractionItem at the index given by
index.
index - the index of the InteractionItem to return
InteractionItem at the given
indexpublic void addItem(InteractionItem item)
item to the
InteractionDescriptor.
item - the InteractionItem to addpublic void removeItem(int index)
index from the
InteractionDescriptor.
index - the index of the InteractionItem to removepublic void removeItem(InteractionItem item)
InteractionItem given by item from
the InteractionDescriptor.
item - the InteactionDescriptor to removepublic java.util.Iterator iteratorItems()
InteractionItems provided by this
InteractionDescriptor object.
public InteractionItem getMoveItem()
InteractionItem that moves the
BaseInteractable or null if there is no item that moves the whole
BaseInteractable.
BaseInteractable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||