How Do I Add Spawn Chances For An Enemy Per Area?
Enemies currently contain a Name, Health, Damage and Attackspeed.
I am now not sure where or how I should add Spawnchances.
1 Reply
Separation of concerns - definitely not into the enemy class.
You probably put it into the class representing the area
The chances would be represented by a dictionary, where the key is some identifier of the enemy type, and the value is the chance
Or maybe you can use some other collection type
Whatever suits your needs