feat: add CharacterConfig

This commit is contained in:
punchready 2021-05-31 17:50:15 +02:00
parent 213955bc37
commit d09a733f2a
3 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,8 @@
package uulm.teamname.marvelous.gamelibrary.json.config;
/**
* POJO describing the CharacterConfig as defined by the standard document.
*/
public class CharacterConfig {
public CharacterProperties[] characters;
}

View File

@ -0,0 +1,18 @@
package uulm.teamname.marvelous.gamelibrary.json.config;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Represents properties of a character in the {@link CharacterConfig}.
*/
public class CharacterProperties {
public String name;
public int HP;
public int MP;
public int AP;
public int meleeDamage;
@JsonProperty("rangeCombatDamage")
public int rangedDamage;
@JsonProperty("rangeCombatReach")
public int attackRange;
}

View File

@ -6,7 +6,6 @@ import uulm.teamname.marvelous.gamelibrary.json.config.FieldType;
* POJO describing the ScenarioConfig as defined by the standard document * POJO describing the ScenarioConfig as defined by the standard document
*/ */
public class ScenarioConfig { public class ScenarioConfig {
/** An array containing the map based on the {@link FieldType} enum. So, ROCK and GRASS basically. */ /** An array containing the map based on the {@link FieldType} enum. So, ROCK and GRASS basically. */
public FieldType[][] scenario; public FieldType[][] scenario;