Closed philip0000000 closed 1 year ago
Open issue #9
File: Sim.razor Added button "Restart". Added method Restart, that "restart the simulation".
File: Actor.cs Added method Reset. Set Actor object to default values.
Suggestion to do: Add to file Actor.cs this: private const int DefaultSpeed = 1; private const int DefaultArmourClass = 10; private const int DefaultStrength = 0; private const int DefaultDexerity = 0; private const int DefaultHealth = 12;
public string Name { get; } public Coord Location { get; private set; } public int Speed { get; private set; } = DefaultSpeed; public int ArmourClass { get; private set; } = DefaultArmourClass; public int Strength { get; private set; } = DefaultStrength; public IWeapon Weapon { get; private set; } public int Dexerity { get; private set; } = DefaultDexerity; public int Health { get; private set; } = DefaultHealth; public Guid ActorId { get; private set; } = Guid.NewGuid();
Open issue #9
File: Sim.razor Added button "Restart". Added method Restart, that "restart the simulation".
File: Actor.cs Added method Reset. Set Actor object to default values.
Suggestion to do: Add to file Actor.cs this: private const int DefaultSpeed = 1; private const int DefaultArmourClass = 10; private const int DefaultStrength = 0; private const int DefaultDexerity = 0; private const int DefaultHealth = 12;
public string Name { get; } public Coord Location { get; private set; } public int Speed { get; private set; } = DefaultSpeed; public int ArmourClass { get; private set; } = DefaultArmourClass; public int Strength { get; private set; } = DefaultStrength; public IWeapon Weapon { get; private set; } public int Dexerity { get; private set; } = DefaultDexerity; public int Health { get; private set; } = DefaultHealth; public Guid ActorId { get; private set; } = Guid.NewGuid();