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/Velocity.cpp | 82 ----------------------------------- 1 file changed, 82 deletions(-) delete mode 100644 music/pokeredmusicdisasm/Velocity.cpp (limited to 'music/pokeredmusicdisasm/Velocity.cpp') diff --git a/music/pokeredmusicdisasm/Velocity.cpp b/music/pokeredmusicdisasm/Velocity.cpp deleted file mode 100644 index 0000d4ba..00000000 --- a/music/pokeredmusicdisasm/Velocity.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include -#include "Velocity.h" -using namespace std; - -Velocity::Velocity() -{ - velocity = 0; - length = 0; -} - -Velocity::Velocity(unsigned char* byte) // Parse Immidiately -{ - Parse(byte); -} - -Velocity::Velocity(unsigned char velocity, unsigned char length, bool) // Set value -{ - SetVelocity(velocity); - SetLength(length); -} - -// Direct Getters/Setters -unsigned char Velocity::GetVelocity() -{ - return velocity; -} - -void Velocity::SetVelocity(unsigned char value) -{ - velocity = value; -} - -unsigned char Velocity::GetLength() -{ - return length; -} - -void Velocity::SetLength(unsigned char value) -{ - length = value; -} - -bool Velocity::IsValid(unsigned char* byte) -{ - if(byte[0] == 0xDC) - { - error = false; - return true; - } - else - { - error = true; - return false; - } -} - -string Velocity::GenAsm() -{ - string tmpRet = AbstractData::GenAsm(); - if(tmpRet != "") return tmpRet; - - stringstream tmpAsmOut; - tmpAsmOut << "mus_vel" << " " << (short)velocity << ", " << (short)length; - return tmpAsmOut.str(); -} - -bool Velocity::Parse(unsigned char* byte) -{ - if(!AbstractData::Parse(byte)) return false; - - velocity = byte[1] & 0xF0; - velocity >>= 4; - - length = byte[1] & 0x0F; - return true; -} - -unsigned int Velocity::Arguments() -{ - // 1 1-byte argument - return 1; -} \ No newline at end of file -- cgit v1.3.1-sl0p