Added HangmanGame class, but does not work yet
Dependencies: SDFileSystem app epson mbed msp430 pl tests
pagefactory.h
- Committer:
- markpsymonds
- Date:
- 2017-12-04
- Revision:
- 1:a5ec6f9dcf0d
- Parent:
- 0:fa7450a43b99
File content as of revision 1:a5ec6f9dcf0d:
// // Filename: pagefactory.h // // Flexbook page creator. // // include guards #ifndef PAGEFACTORY_H #define PAGEFACTORY_H #include "book.h" #include <memory> namespace Flexbook { typedef int PageType; class Page; enum { PageType_PageSensor = (1 << 0), PageType_PageTouch = (1 << 1), PageType_PageNFC = (1 << 2), PageType_PageFlexEnable = (1 << 6), PageType_PageOLED = (1 << 7), PageType_PageDice = (1 << 3), PageType_PageNull = 0 }; class PageFactory { public: // Constructor needs to be explicit. explicit PageFactory(); // Destructor. ~PageFactory(); BookPage CreatePages(PageType &type); private: // Disable the copy constructor. PageFactory(const PageFactory &); // Disable assignment. PageFactory &operator=(const PageFactory &); }; } // End Flexbook namespace. #endif // PAGEFACTORY_H