public class InteractableLookupMap extends Object
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(Interactable interactable) |
Adds an interactable component to the lookup map
|
Interactable |
findNextDown(Interactable interactable) |
Starting from a particular
Interactable and going down, which is the next interactable? |
Interactable |
findNextLeft(Interactable interactable) |
Starting from a particular
Interactable and going left, which is the next interactable? |
Interactable |
findNextRight(Interactable interactable) |
Starting from a particular
Interactable and going right, which is the next interactable? |
Interactable |
findNextUp(Interactable interactable) |
Starting from a particular
Interactable and going up, which is the next interactable? |
Interactable |
getInteractableAt(TerminalPosition position) |
Looks up what interactable component is as a particular location in the map
|
public void add(Interactable interactable)
interactable - Interactable to add to the lookup mappublic Interactable getInteractableAt(TerminalPosition position)
position - Position to look upInteractable component at the specified location or null if there's nothing therepublic Interactable findNextUp(Interactable interactable)
Interactable and going up, which is the next interactable?interactable - What Interactable to start searching fromInteractable above the one specified or null if there are no more
Interactable:s above itpublic Interactable findNextDown(Interactable interactable)
Interactable and going down, which is the next interactable?interactable - What Interactable to start searching fromInteractable below the one specified or null if there are no more
Interactable:s below itpublic Interactable findNextLeft(Interactable interactable)
Interactable and going left, which is the next interactable?interactable - What Interactable to start searching fromInteractable left of the one specified or null if there are no more
Interactable:s left of itpublic Interactable findNextRight(Interactable interactable)
Interactable and going right, which is the next interactable?interactable - What Interactable to start searching fromInteractable right of the one specified or null if there are no more
Interactable:s right of itCopyright © 2020. All rights reserved.