Files
ss/include/toBeSorted/counters/counter.h
T
Elijah Thomas 26af4db82d update from dtk-template - clangd :) (#66)
* update from dtk-template and start work towards using clangd

* include <a> -> "a"

* Update build.yml

* remove/add non-trivial class in union warning
2024-10-16 15:36:02 -04:00

20 lines
367 B
C++

#ifndef COUNTER_H
#define COUNTER_H
#include "common.h"
class Counter {
public:
Counter(u16 id) : counterId(id) {}
virtual ~Counter(){};
virtual s32 checkedAdd(s32 num);
virtual u16 getCommittedValue();
virtual u16 getMax() = 0;
virtual u16 getUncommittedValue();
virtual void setValue(u16 num);
u16 counterId;
};
#endif COUNTER_H