summaryrefslogtreecommitdiff
path: root/music/pokeredmusicdisasm/Duty.h
blob: aa3f0d0d48d0040685802bc9a357022b72a0dfd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef DUTY_H
#define DUTY_H

#include "AbstractData.h"

//Represents 1 Duty data
class Duty : public AbstractData
{
public:
    // Constructors
    Duty();
    Duty(unsigned char* byte); // Parse Immidiately
    Duty(unsigned char value, bool); // Set value

    // Re-Implementations from Parent
    virtual std::string GenAsm();
    virtual bool IsValid(unsigned char* byte);
    virtual bool Parse(unsigned char* byte);
    virtual unsigned int Arguments();

    // Direct Getters and Setters
    unsigned char GetDuty();
    void SetDuty(unsigned char value);

    // Custom Functions
    std::string LookupDutyString();

    enum dutyList : unsigned char
    {
        duty12_5 = 0x0,
        duty25 = 0x1,
        duty50 = 0x2,
        duty75 = 0x3
    };

private:
	unsigned char duty;
};

#endif