Tagged Questions
3
votes
2answers
455 views
Design pattern for creating multiple enemies
I'm currently attempting to implement a factory method pattern for creating multiple different enemies after loading data from a file. But I'm having second thoughts on what would be the best design ...
6
votes
4answers
606 views
Java collections and managing simultaneous operations / concurrency (java.util.ConcurrentModificationException)
Ok, so i have created my first "game" and it uses a lot of java's collections. for example, i have a bunch of monsters in a HashSet which sometimes gives me the fabled ...
2
votes
3answers
488 views
Design pattern on class level, how to do separation of concerns through mvc or alike?
Say i had a Monster class
public class Monster {
}
Now this class has a set of properties like
int health
int speed
int weaponDamage
which details the core information about the monster.
in ...