1 /*
2 * Copyright (c) 2021 Kaiserpfalz EDV-Service, Roland T. Lichti.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18 package de.kaiserpfalzedv.rpg.core.dice;
19
20 /**
21 * a lookup table to calculate a numeric result from a dice throw.
22 *
23 * @author klenkes74 {@literal <rlichit@kaiserpfalz-edv.de>}
24 * @since 1.0.0 2021-01-09
25 */
26 public interface LookupTable {
27 /**
28 * This is a lookup to calculate a result from a die roll.
29 *
30 * @param total The original die roll.
31 * @return The looked up value.
32 */
33 int lookup(int total);
34 }