/* * MVC example of GTKmm program * * Model class. Is responsible keeping track of the deck of cards. * It knows nothing about views or controllers. * * Created by Jo Atlee on 06/07/09. * Updated to GTKmm 3.0 (version 3.10.1) from 2.4 on February 13, 2017. * Copyright 2009, 2017 UW. All rights reserved. * */ #ifndef MVC_MODEL_H #define MVC_MODEL_H #include "subject.h" const int numFaces = 6; const int numSuits = 4; const int numCards = numFaces * numSuits; enum Faces { NINE, TEN, JACK, QUEEN, KING, ACE, NOFACE }; enum Suits { DIAMOND, CLUB, HEART, SPADE, NOSUIT }; class Model : public Subject { public: Model(); Suits suit(); Faces face(); void nextCard(); void resetCards(); private: int topCard_; }; // Model #endif