From 8edfcc4b1e36111d400b5f104a04001c66416426 Mon Sep 17 00:00:00 2001 From: "U-Fish-PC\\Daniel" Date: Sat, 12 Oct 2013 14:40:37 -0400 Subject: All music and sfx --- music/pokeredmusicdisasm/Tempo.cpp | 80 -------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 music/pokeredmusicdisasm/Tempo.cpp (limited to 'music/pokeredmusicdisasm/Tempo.cpp') diff --git a/music/pokeredmusicdisasm/Tempo.cpp b/music/pokeredmusicdisasm/Tempo.cpp deleted file mode 100644 index a41de4a8..00000000 --- a/music/pokeredmusicdisasm/Tempo.cpp +++ /dev/null @@ -1,80 +0,0 @@ -#include -#include "Tempo.h" -using namespace std; - -Tempo::Tempo() -{ - divider = 0; - modifier = 0; -} - -Tempo::Tempo(unsigned char* byte) // Parse Immidiately -{ - Parse(byte); -} - -Tempo::Tempo(unsigned char divider, unsigned char modifier, bool) // Set value -{ - SetDivider(divider); - SetModifier(modifier); -} - -unsigned char Tempo::GetDivider() -{ - return divider; -} - -void Tempo::SetDivider(unsigned char value) -{ - divider = value; -} - -unsigned char Tempo::Getmodifier() -{ - return modifier; -} - -void Tempo::SetModifier(unsigned char value) -{ - modifier = value; -} - -bool Tempo::IsValid(unsigned char* byte) -{ - if(byte[0] == 0xED) - { - error = false; - return true; - } - else - { - error = true; - return false; - } -} - -string Tempo::GenAsm() -{ - string tmpRet = AbstractData::GenAsm(); - if(tmpRet != "") return tmpRet; - - stringstream tmpAsmOut; - tmpAsmOut << "mus_tempo" << " " << (short)divider << ", " << (short)modifier; - return tmpAsmOut.str(); -} - -bool Tempo::Parse(unsigned char* byte) -{ - if(!AbstractData::Parse(byte)) return false; - - divider = byte[1]; - modifier = byte[2]; - - return true; -} - -unsigned int Tempo::Arguments() -{ - // 2 1-byte arguments = 2 - return 2; -} \ No newline at end of file -- cgit v1.3.1-sl0p