|
Gridarta Editor
|
A GameObjectMatcher that delegates to other. More...
Inheritance diagram for net.sf.gridarta.model.match.MutableOrGameObjectMatcher:
Collaboration diagram for net.sf.gridarta.model.match.MutableOrGameObjectMatcher:Public Member Functions | |
| void | addArchObjectMatcher (@NotNull final GameObjectMatcher gameObjectMatcher) |
| Adds an GameObjectMatcher. More... | |
| boolean | containsArchObjectMatcher (@NotNull final GameObjectMatcher gameObjectMatcher) |
| Checks whether a certain GameObjectMatcher is contained in this matcher. More... | |
| boolean | isMatching (@NotNull final GameObject<?, ?, ?> gameObject) |
| Matches an GameObject. More... | |
| MutableOrGameObjectMatcher (final boolean defaultState) | |
| Creates a new instance. More... | |
| void | removeAll () |
| Removes all GameObjectMatchers. More... | |
| void | removeArchObjectMatcher (@NotNull final GameObjectMatcher gameObjectMatcher) |
| Removes an GameObjectMatcher. More... | |
Private Attributes | |
| final boolean | defaultState |
| The default matching state when gameObjectMatchers is empty. More... | |
| final Collection< GameObjectMatcher > | gameObjectMatchers = new ArrayList<>() |
| The GameObjectMatchers to OR. More... | |
Static Private Attributes | |
| static final long | serialVersionUID = 1L |
| The serial version UID. More... | |
A GameObjectMatcher that delegates to other.
s. If empty, isMatching(GameObject) returns
.
Definition at line 33 of file MutableOrGameObjectMatcher.java.
| net.sf.gridarta.model.match.MutableOrGameObjectMatcher.MutableOrGameObjectMatcher | ( | final boolean | defaultState | ) |
Creates a new instance.
| defaultState | the default matching state when gameObjectMatchers is empty |
Definition at line 58 of file MutableOrGameObjectMatcher.java.
References net.sf.gridarta.model.match.MutableOrGameObjectMatcher.defaultState.
| void net.sf.gridarta.model.match.MutableOrGameObjectMatcher.addArchObjectMatcher | ( | @NotNull final GameObjectMatcher | gameObjectMatcher | ) |
Adds an GameObjectMatcher.
The supplied
is only really added if it isn't already included, e.g. containsArchObjectMatcher(GameObjectMatcher) returns
.
| gameObjectMatcher | the matcher to add |
Definition at line 81 of file MutableOrGameObjectMatcher.java.
References net.sf.gridarta.model.match.MutableOrGameObjectMatcher.containsArchObjectMatcher().
Referenced by net.sf.gridarta.model.match.SetEnabledAction.setSelected(), and net.sf.gridarta.model.match.ViewGameObjectMatcherManager.GameObjectMatcherToggleAction.setSelected().
Here is the call graph for this function:
Here is the caller graph for this function:| boolean net.sf.gridarta.model.match.MutableOrGameObjectMatcher.containsArchObjectMatcher | ( | @NotNull final GameObjectMatcher | gameObjectMatcher | ) |
Checks whether a certain GameObjectMatcher is contained in this matcher.
| gameObjectMatcher | the matcher to check |
Definition at line 102 of file MutableOrGameObjectMatcher.java.
Referenced by net.sf.gridarta.model.match.MutableOrGameObjectMatcher.addArchObjectMatcher(), and net.sf.gridarta.model.match.SetEnabledAction.isSelected().
Here is the caller graph for this function:| boolean net.sf.gridarta.model.match.MutableOrGameObjectMatcher.isMatching | ( | @NotNull final GameObject<?, ?, ?> | gameObject | ) |
Matches an GameObject.
| gameObject | the GameObject |
Implements net.sf.gridarta.model.match.GameObjectMatcher.
Definition at line 63 of file MutableOrGameObjectMatcher.java.
References net.sf.gridarta.model.match.MutableOrGameObjectMatcher.defaultState.
| void net.sf.gridarta.model.match.MutableOrGameObjectMatcher.removeAll | ( | ) |
Removes all GameObjectMatchers.
Definition at line 109 of file MutableOrGameObjectMatcher.java.
| void net.sf.gridarta.model.match.MutableOrGameObjectMatcher.removeArchObjectMatcher | ( | @NotNull final GameObjectMatcher | gameObjectMatcher | ) |
Removes an GameObjectMatcher.
| gameObjectMatcher | the matcher to remove |
Definition at line 91 of file MutableOrGameObjectMatcher.java.
Referenced by net.sf.gridarta.model.match.SetEnabledAction.setSelected(), and net.sf.gridarta.model.match.ViewGameObjectMatcherManager.GameObjectMatcherToggleAction.setSelected().
Here is the caller graph for this function:
|
private |
The default matching state when gameObjectMatchers is empty.
Definition at line 44 of file MutableOrGameObjectMatcher.java.
Referenced by net.sf.gridarta.model.match.MutableOrGameObjectMatcher.isMatching(), and net.sf.gridarta.model.match.MutableOrGameObjectMatcher.MutableOrGameObjectMatcher().
|
private |
The GameObjectMatchers to OR.
Definition at line 51 of file MutableOrGameObjectMatcher.java.
|
staticprivate |
The serial version UID.
Definition at line 38 of file MutableOrGameObjectMatcher.java.