mardi 19 décembre 2017

observer Pattern Lemmings

I'm doing a game of Lemmings. I have a Lemming class (Position position, Game game)

the lemmings move but are not notified of the position changes of other lemmings. I have to make an Observer pattern, I have to implement it myself. who is the observer, who is observable?

Which solution do you propose to me?

Aucun commentaire:

Enregistrer un commentaire