summaryrefslogtreecommitdiff
path: root/include/d/flag/bitwise_flag_helper.h
blob: 432e1cdeefb2d814a72b11d5681183724b2b2efe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef BITWISE_FLAG_HELPERS_H
#define BITWISE_FLAG_HELPERS_H

#include "common.h"

class BitwiseFlagHelper {
public:
    bool checkFlag(u16 slot, u16 shift, const u16 *pData, u16 flagCount) const;
    bool checkFlag2(u16 slot, u16 shift, const u16 *pData, s32 flagCount) {
        return checkFlag(slot, shift, pData, flagCount);
    }
    void setFlag(u16 slot, u16 shift, u16 *pData, u16 flagCount);
    void unsetFlag(u16 slot, u16 shift, u16 *pData, u16 flagCount);
};

#endif