malikhollins / HungerGamesSimulator

A hunger games simulator built using the .net blazor framework
0 stars 1 forks source link

Reset Pattern - Sim.Razor #31

Closed malikhollins closed 11 months ago

malikhollins commented 11 months ago

Instead of upcasting to Actor to call Reset, lets create an interface for tributes who are created by the player that are resettable.

I.E Actor : IActor, IResetable

for every actor in tributes that is resettable, reset.

malikhollins commented 11 months ago

This will also allow us to remove actors that were created by the simulation as they won't be resettable

malikhollins commented 11 months ago

We should have NPC's be a different type. We don't need to group them into player characters