Class DefaultFilterControl<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

  • All Implemented Interfaces:
    FilterControl<G,​A,​R>

    public class DefaultFilterControl<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends java.lang.Object
    implements FilterControl<G,​A,​R>
    Control for filters.

    Control to check if 1) a specific GameObject can be shown (filter out of view part) 2) a specific MapSquare must be highlighted (analysis part) It provides only one filterOut path (and so elements are visible or not, they can't be twice visible or such). It provides 3 highlight paths. each of them can be (dis)enabled. So you can, e.g., highlight walls in a specific color, teleporters in another and monsters in a third. highlight and filterOut filters works all the same. You can activate specific predefined filters or you can provide your own. If several predefined Filters are activated for a path, they are combined in an OR way. For example, if you enable the filterOut path, activate in this path the wall and the floor filters, only walls and floors will be shown.