Reputation: 137
I have two Models in my card game.
I want to pop a card instance from the HandModel list and place it in the BoardModel coordinates. I would like to send a Card between those two models, but I don't want to directly call BoardModel inside HandModel just for this reason. Not sure how should I do it.
Upvotes: 0
Views: 94
Reputation: 638
You might want to design your model in a way in which the card model itself has some kind of location which can be updated by a controller which handles the cards. That way no model has to know any other model.
Upvotes: 1