Added HangmanGame class, but does not work yet
Dependencies: SDFileSystem app epson mbed msp430 pl tests
bookmonitor.cpp
- Committer:
- markpsymonds
- Date:
- 2017-12-04
- Revision:
- 1:a5ec6f9dcf0d
- Parent:
- 0:fa7450a43b99
File content as of revision 1:a5ec6f9dcf0d:
// // Filename: bookmonitor.h // // Flexbook page turn monitor. // #include "bookmonitor.h" #include "book.h" #include "hal.h" #include "log.h" #include "pagefactory.h" #include <iostream> namespace Flexbook { BookMonitor::BookMonitor(Book &book) : book(book) { Log("Creating BookMonitor"); } BookMonitor::~BookMonitor() { Log("Deleting BookMonitor"); } void BookMonitor::CheckForPageChange() { PageType hardwaretype = HAL::GetPageType(); if(book.GetPageType() != hardwaretype) { book.PageChange(hardwaretype); } } } // End Flexbook namespace.