protected static class Script_Engine.ListCounter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
counter
Stores the current position in the list
|
protected java.util.ArrayList<Script_Event> |
entityList
List of script elements to process in order
|
| Constructor and Description |
|---|
ListCounter(java.util.ArrayList<Script_Event> thisEntityList)
Create a new instance of ListCounter.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
backTrack()
Backtrack to the previous element.
|
protected boolean |
endOfList()
End of list of counter past the last list element.
|
protected Script_Event |
getParent()
Get the parent script element of the last indexed element.
|
protected boolean |
isEmpty()
Is empty if there are no elements in the list.
|
protected Script_Event |
nextElement(boolean pop)
Get the next indexed element in the list.
|
protected int counter
protected java.util.ArrayList<Script_Event> entityList
public ListCounter(java.util.ArrayList<Script_Event> thisEntityList)
thisEntityList - the list of script elements to process.protected boolean isEmpty()
protected boolean endOfList()
protected boolean backTrack()
(counter < 0).protected Script_Event nextElement(boolean pop)
pop - if true permanently update the counter to the next element. If
false only look for the next element.protected Script_Event getParent()