Gridarta Editor
net.sf.gridarta.model.match.ViewGameObjectMatcherManager Class Reference

Manages GameObjectMatchers. More...

+ Collaboration diagram for net.sf.gridarta.model.match.ViewGameObjectMatcherManager:

Classes

class  GameObjectMatcherToggleAction
 An Action to toggle an GameObjectMatcher within an MutableOrGameObjectMatcher. More...
 
class  ResetAction
 The reset action. More...
 

Public Member Functions

Action addArchObjectMatcher (@NotNull final GameObjectMatcher gameObjectMatcher)
 Adds an GameObjectMatcher. More...
 
List<? extends Action > getAllActions ()
 Gets all actions. More...
 
Action getResetAction ()
 Gets the reset action. More...
 
 ViewGameObjectMatcherManager (@NotNull final MutableOrGameObjectMatcher mutableOrGameObjectMatcher)
 Creates a new instance. More...
 

Private Attributes

final List< GameObjectMatcherToggleActionactions = new ArrayList<>()
 The actions. More...
 
final MutableOrGameObjectMatcher mutableOrGameObjectMatcher
 The MutableOrGameObjectMatcher that is manipulated by the actions. More...
 
final Action resetAction = new ResetAction(Collections.unmodifiableList(actions))
 The reset action. More...
 

Detailed Description

Manages GameObjectMatchers.

Author
Christian Hujer

Definition at line 34 of file ViewGameObjectMatcherManager.java.

Constructor & Destructor Documentation

◆ ViewGameObjectMatcherManager()

net.sf.gridarta.model.match.ViewGameObjectMatcherManager.ViewGameObjectMatcherManager ( @NotNull final MutableOrGameObjectMatcher  mutableOrGameObjectMatcher)

Creates a new instance.

Parameters
mutableOrGameObjectMatcherthe
MutableOrGameObjectMatcher
to manipulate

Definition at line 60 of file ViewGameObjectMatcherManager.java.

References net.sf.gridarta.model.match.ViewGameObjectMatcherManager.mutableOrGameObjectMatcher.

Member Function Documentation

◆ addArchObjectMatcher()

Action net.sf.gridarta.model.match.ViewGameObjectMatcherManager.addArchObjectMatcher ( @NotNull final GameObjectMatcher  gameObjectMatcher)

Adds an GameObjectMatcher.

Parameters
gameObjectMatcherthe
GameObjectMatcher
to add
Returns
the
Action
created for toggling
gameObjectMatcher

Definition at line 70 of file ViewGameObjectMatcherManager.java.

◆ getAllActions()

List<? extends Action> net.sf.gridarta.model.match.ViewGameObjectMatcherManager.getAllActions ( )

Gets all actions.

Returns
all actions created so far (except reset)

Definition at line 81 of file ViewGameObjectMatcherManager.java.

◆ getResetAction()

Action net.sf.gridarta.model.match.ViewGameObjectMatcherManager.getResetAction ( )

Gets the reset action.

Returns
the reset action

Definition at line 90 of file ViewGameObjectMatcherManager.java.

References net.sf.gridarta.model.match.ViewGameObjectMatcherManager.resetAction.

Member Data Documentation

◆ actions

final List<GameObjectMatcherToggleAction> net.sf.gridarta.model.match.ViewGameObjectMatcherManager.actions = new ArrayList<>()
private

The actions.

Definition at line 47 of file ViewGameObjectMatcherManager.java.

◆ mutableOrGameObjectMatcher

final MutableOrGameObjectMatcher net.sf.gridarta.model.match.ViewGameObjectMatcherManager.mutableOrGameObjectMatcher
private

◆ resetAction

final Action net.sf.gridarta.model.match.ViewGameObjectMatcherManager.resetAction = new ResetAction(Collections.unmodifiableList(actions))
private

The documentation for this class was generated from the following file: