summaryrefslogtreecommitdiff
path: root/music/pokeredmusicdisasm/Tempo.h
blob: 185c3a948e9918982c7bc37190e7773c329b7de3 (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
#ifndef TEMPO_H
#define TEMPO_H

#include "AbstractData.h"

class Tempo : public AbstractData
{
public:
	// Constructors
	Tempo();
	Tempo(unsigned char* byte); // Parse Immidiately
    Tempo(unsigned char divider, unsigned char modifier, bool); // Set value

	// Direct Getters and Setters
	unsigned char GetDivider();
	void SetDivider(unsigned char value);

	unsigned char Getmodifier();
	void SetModifier(unsigned char value);

	// Overides
	virtual std::string GenAsm();
	virtual bool IsValid(unsigned char* byte);
	virtual bool Parse(unsigned char* byte);
	virtual unsigned int Arguments();

private:
	unsigned char divider;
	unsigned char modifier;
};

#endif