mvc design in a card game
- by Hong
I'm trying to make a card game.
some classes I have are: CardModel, CardView; DeckModel, DeckView.
The deck model has a list of card model, According to MVC, if I want to send a card to a deck, I can add the card model to the deck model, and the card view will be added to the deck view by a event handler.
So I have a addCard(CardModel m) in the…