#include "rollover.h" rolloverCounter::rolloverCounter(int low, int hi) : limitedCounter(low, hi) { min = low; max = hi; } rolloverCounter::rolloverCounter(void) : limitedCounter() { min = 0; max = MAXV; } void rolloverCounter::count(void) { if (!isAtMax()) counter::count(); else setCounter(min); } void rolloverCounter::unCount(void) { if (!isAtMin()) counter::unCount(); else setCounter(max); }