feat: add CharacterConfig
This commit is contained in:
		| @ -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; | ||||||
|  | } | ||||||
| @ -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; | ||||||
|  | } | ||||||
| @ -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; | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user