refactor: fixing codestyle and improving codequality

This commit is contained in:
2021-06-03 19:33:14 +02:00
parent 29f5eed2fb
commit de6e9abfd7
24 changed files with 406 additions and 94 deletions

View File

@ -5,10 +5,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.Objects;
/** Represents properties of a character in the {@link CharacterConfig} */
@JsonPropertyOrder({"characterID", "name", "HP", "MP", "AP", "meleeDamage", "rangeCombatDamage", "rangeCombatReach"})
/**
* Represents properties of a character in the {@link CharacterConfig}.
*/
public class CharacterProperties {
public int characterID;
public String name;

View File

@ -27,7 +27,7 @@ public class ScenarioConfig {
@Override
public int hashCode() {
int result = Objects.hash(author, name);
result = 31 * result + Arrays.hashCode(scenario);
result = 31 * result + Arrays.deepHashCode(scenario);
return result;
}