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

    • Field Detail

      • PARAMETER_TYPE

        @NotNull
        public static final @NotNull java.lang.String PARAMETER_TYPE
        The string representation of this parameter type.
    • Constructor Detail

      • MapParameter

        public MapParameter​(@NotNull
                            @NotNull MapManager<G,​A,​R> mapManager,
                            @NotNull
                            @NotNull PathManager pathManager)
        Creates a new instance.
        Parameters:
        mapManager - the map manager for converting map paths to map control instances
        pathManager - the path manager instance for converting files into path names
    • Method Detail

      • getParameterType

        @NotNull
        public @NotNull java.lang.String getParameterType()
        Description copied from interface: PluginParameter
        Returns the parameter type name.
        Returns:
        the parameter type name
      • visit

        @NotNull
        public <T> T visit​(@NotNull
                           @NotNull PluginParameterVisitor<G,​A,​R,​T> visitor)
        Description copied from interface: PluginParameter
        Calls the visit() function for this parameter type.
        Type Parameters:
        T - the visitor-specific type of the return value
        Parameters:
        visitor - the visitor to call
        Returns:
        a visitor-specific return value
      • getValueOrNull

        @Nullable
        public @Nullable MapControl<G,​A,​R> getValueOrNull()
        Description copied from interface: PluginParameter
        Returns the current value of this parameter.
        Returns:
        the value or null if the the value is invalid
      • setValueToCurrent

        public void setValueToCurrent()
        Selects the current map.
      • isCurrentMap

        public boolean isCurrentMap()
        Returns whether the current map is selected.
        Returns:
        whether the current map is selected