Hot answers tagged

3

Typically for a pure data change like this, we would not use separate classes. Instead, you could make your class non-abstract (say "BasicMob" to leave room if you need more complex mob classes in future) and give it one or several Factory Methods that populate the data of your mob to make a specific variant. eg.. public static BasicMob CreateFireElemental(...


1

There are a small fixed set of possible locations on the board so measuring each one against your metrics and picking the best one would be no problem. The issue is, whether you can come up with good, (or merely good enough,) metrics. In other words, if you want the best place(s) to place a settlement then you need to define what best means. Then the rest ...


1

Your main game loop should usually loop through 3 main processes. Each of these processes usually run in context to a specific scene/screen in your game .. menu screen, gameplay screen, exit screen , etc. Process input: this is usually where people use an observer design pattern and create an event dispatcher which dispatches events to game objects who are ...


Only top voted, non community-wiki answers of a minimum length are eligible