mirror of
https://github.com/zeldaret/ss
synced 2026-05-27 08:08:07 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
20 lines
367 B
C++
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
|