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

    • Constructor Detail

      • DuplicateMonsterOnSquareError

        public DuplicateMonsterOnSquareError​(@NotNull
                                             @NotNull MapSquare<G,​A,​R> mapSquare,
                                             @NotNull
                                             @NotNull java.lang.String monster1,
                                             @NotNull
                                             @NotNull java.lang.String monster2)
        Creates a new instance.
        Parameters:
        mapSquare - the map square on which the error occurred
        monster1 - the name of the first monster
        monster2 - the name of the second monster
    • Method Detail

      • 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