Add player input routines

This commit is contained in:
Andrew Cooper
2022-11-01 17:47:28 +11:00
parent da0f2d13ab
commit d4c5fb1df7
21 changed files with 201 additions and 31 deletions

View File

@@ -9,9 +9,8 @@ internal class Reign
private readonly float _year;
public Reign(IReadWrite io, IRandom random)
: this(io, new Country(random), 0)
: this(io, new Country(io, random), 0)
{
}
public Reign(IReadWrite io, Country country, float year)
@@ -20,4 +19,15 @@ internal class Reign
_country = country;
_year = year;
}
public void PlayYear()
{
_io.Write(_country.Status);
var playerSoldLand = _country.SellLand();
var playerDistributedRallods = _country.DistributeRallods();
var playerPlantedLand = _country.PlantLand();
var playerControlledPollution = _country.ControlPollution();
}
}