gyo
Diff: SBDBT.cpp
- Revision:
- 5:a4a994824c96
- Parent:
- 3:16a15d26ebe8
- Child:
- 6:da71294502ee
--- a/SBDBT.cpp Sat May 06 03:07:46 2017 +0000 +++ b/SBDBT.cpp Mon May 08 07:50:22 2017 +0000 @@ -66,6 +66,110 @@ } } + char SBDBT::maru() + { + if(data[2] & 64) + return 1; + return 0; + } + + char SBDBT::batu() + { + if(data[2] & 32) + return 1; + return 0; + } + + char SBDBT::sikaku() + { + if(data[1] & 1) + return 1; + return 0; + } + + char SBDBT::sankaku() + { + if(data[2] & 16) + return 1; + return 0; + } + + char SBDBT::L1() + { + if(data[1] & 2) + return 1; + return 0; + } + + char SBDBT::L2() + { + if(data[1] & 4) + return 1; + return 0; + } + + char SBDBT::R1() + { + if(data[1] & 8) + return 1; + return 0; + } + + char SBDBT::R2() + { + if(data[1] & 16) + return 1; + return 0; + } + + char SBDBT::ue() + { + if(data[2] & 1) + return 1; + return 0; + } + + char SBDBT::sita() + { + if(data[2] & 2) + return 1; + return 0; + } + + char SBDBT::migi() + { + if(data[2] & 4) + return 1; + return 0; + } + + char SBDBT::hidari() + { + if(data[2] & 8) + return 1; + return 0; + } + + char SBDBT::rs_x() + { + return data[5]; + } + + char SBDBT::rs_y() + { + return data[6]; + } + + char SBDBT::ls_x() + { + return data[3]; + } + + char SBDBT::ls_y() + { + return data[4]; + } + SBDBT::~SBDBT() { delete sr;