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

    • Constructor Detail

      • BlockedMobOrSpawnPointError

        public BlockedMobOrSpawnPointError​(@NotNull
                                           @NotNull MapSquare<G,​A,​R> mapSquare,
                                           @NotNull
                                           @NotNull java.util.Collection<G> blockers,
                                           @NotNull
                                           @NotNull java.util.Collection<G> mobsOrSpawnPoints)
        Creates a new instance.
        Parameters:
        mapSquare - the square on which the error occurred
        blockers - the blocking game objects
        mobsOrSpawnPoints - mob or spawn game objects
    • Method Detail

      • getBlockers

        @NotNull
        public @NotNull java.util.Collection<G> getBlockers()
        Returns the blocking game objects.
        Returns:
        the blocking game objects
      • getMobsOrSpawnPoints

        @NotNull
        public @NotNull java.util.Collection<G> getMobsOrSpawnPoints()
        Returns the mob or spawn point game objects.
        Returns:
        the mob or spawn point game objects
      • correct

        public void correct​(@NotNull
                            @NotNull java.awt.Component parentComponent)
        Description copied from interface: CorrectableError
        Try to correct this error.
        Specified by:
        correct in interface CorrectableError
        Parameters:
        parentComponent - parent component to display a dialog upon in case this error needs to query information from the user for correction
      • getParameter

        @Nullable
        public @Nullable java.lang.String getParameter​(int id)
        Description copied from class: ValidationError
        Returns a parameter string to be used in the error message. It can be accessed with {4+id}.
        Specified by:
        getParameter in class ValidationError<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
        Parameters:
        id - the error id
        Returns:
        the error string