summaryrefslogtreecommitdiff
path: root/music/pokeredmusicdisasm/Jump.h
blob: 64273fb7b67d1bd87ec547002154a6e9275cb5b6 (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
#ifndef JUMP_H
#define JUMP_H

#include "AbstractData.h"

// Represents 1 Jump Class
class Jump : public AbstractData
{
public:
    // Constructors
    Jump(); // Default
    Jump(unsigned char* byte); // Parse Immidiately
    Jump(unsigned short value, unsigned char loop, bool); // Set value

    // Direct Getter/Setter Functions
    unsigned short GetAddress();
    void SetAddress(unsigned short value);

	unsigned char GetLoop();
    void SetLoop(unsigned char value);

    // The standard re-implementations from AbstractData
    virtual std::string GenAsm();
    virtual bool IsValid(unsigned char* byte);
    virtual bool Parse(unsigned char* byte);
    virtual unsigned int Arguments();

private:
    unsigned short address;
	unsigned char loop;
};

#endif