38068dd0a5
The class Battle takes two participants (player and monster) that both need to implement the FighterInterface. Right now, rounds are completed by the fightNRounds method. Since all enemies in the old code follow the same default scaling, monsters and masters use a AutoScaleFighter trait for now.
13 lines
225 B
YAML
13 lines
225 B
YAML
characters:
|
|
-
|
|
id: 1
|
|
name: "Player"
|
|
displayName: "The Player"
|
|
health: 100
|
|
maxhealth: 100
|
|
level: 10
|
|
monsters:
|
|
-
|
|
id: 1
|
|
name: "Evil Monster"
|
|
level: 5 |