commit 9ce3030753d5a94cf3c48e2f71399be3754a28d7 Author: Vincente D'Ingianni Date: Fri Oct 25 14:14:52 2013 -0500 First commit of Freestyle Judo 1.0 diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..fb407e4 Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..76849d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +Freestyle Judo.xcodeproj/project.xcworkspace/xcuserdata/vincente.xcuserdatad/UserInterfaceState.xcuserstate diff --git a/Freestyle Judo.xcodeproj/project.pbxproj b/Freestyle Judo.xcodeproj/project.pbxproj new file mode 100644 index 0000000..e955e3b --- /dev/null +++ b/Freestyle Judo.xcodeproj/project.pbxproj @@ -0,0 +1,625 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 9F07366717B8B06D002B0886 /* Freestyle-Judo-Logo B&W.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 9F07366617B8B06D002B0886 /* Freestyle-Judo-Logo B&W.jpg */; }; + 9F07C44B17FDAB5300BDA6EC /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F07C44A17FDAB5300BDA6EC /* AudioToolbox.framework */; }; + 9F17188217B8012F0055BB0D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F17188117B8012F0055BB0D /* UIKit.framework */; }; + 9F17188417B8012F0055BB0D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F17188317B8012F0055BB0D /* Foundation.framework */; }; + 9F17188617B8012F0055BB0D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F17188517B8012F0055BB0D /* CoreGraphics.framework */; }; + 9F17188C17B8012F0055BB0D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9F17188A17B8012F0055BB0D /* InfoPlist.strings */; }; + 9F17188E17B8012F0055BB0D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F17188D17B8012F0055BB0D /* main.m */; }; + 9F17189217B8012F0055BB0D /* FSJAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F17189117B8012F0055BB0D /* FSJAppDelegate.m */; }; + 9F17189417B8012F0055BB0D /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 9F17189317B8012F0055BB0D /* Default.png */; }; + 9F17189617B8012F0055BB0D /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 9F17189517B8012F0055BB0D /* Default@2x.png */; }; + 9F17189817B8012F0055BB0D /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 9F17189717B8012F0055BB0D /* Default-568h@2x.png */; }; + 9F17189B17B8012F0055BB0D /* MainStoryboard_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9F17189917B8012F0055BB0D /* MainStoryboard_iPhone.storyboard */; }; + 9F17189E17B8012F0055BB0D /* MainStoryboard_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9F17189C17B8012F0055BB0D /* MainStoryboard_iPad.storyboard */; }; + 9F1718A117B8012F0055BB0D /* FSJViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F1718A017B8012F0055BB0D /* FSJViewController.m */; }; + 9F1718A917B801300055BB0D /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F1718A817B801300055BB0D /* SenTestingKit.framework */; }; + 9F1718AA17B801300055BB0D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F17188117B8012F0055BB0D /* UIKit.framework */; }; + 9F1718AB17B801300055BB0D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F17188317B8012F0055BB0D /* Foundation.framework */; }; + 9F1718B317B801300055BB0D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9F1718B117B801300055BB0D /* InfoPlist.strings */; }; + 9F1718B617B801300055BB0D /* Freestyle_JudoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F1718B517B801300055BB0D /* Freestyle_JudoTests.m */; }; + 9F21D20E18031AAC00029572 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F21D20D18031AAC00029572 /* MediaPlayer.framework */; }; + 9F21D2111803613900029572 /* Settings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9F21D20F1803613900029572 /* Settings.cpp */; }; + 9F21D2141804683200029572 /* FSJSettingsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F21D2131804683200029572 /* FSJSettingsViewController.m */; }; + 9F4A0BBB17FEA9DF00BC3B52 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9F4A0BBA17FEA9DF00BC3B52 /* Images.xcassets */; }; + 9F4A0BC117FF294E00BC3B52 /* The Judokai - Gi Patch (Black Background).png in Resources */ = {isa = PBXBuildFile; fileRef = 9F4A0BC017FF294E00BC3B52 /* The Judokai - Gi Patch (Black Background).png */; }; + 9F4A0BC317FF2BE900BC3B52 /* Binary_Systems_(white).png in Resources */ = {isa = PBXBuildFile; fileRef = 9F4A0BC217FF2BE900BC3B52 /* Binary_Systems_(white).png */; }; + 9F4A0BC717FF3B9B00BC3B52 /* Welcome_Mat_Black_Gold_Logo.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 9F4A0BC617FF3B9B00BC3B52 /* Welcome_Mat_Black_Gold_Logo.jpg */; }; + 9F4A0BCA17FF728200BC3B52 /* FSJCreditsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F4A0BC917FF728200BC3B52 /* FSJCreditsViewController.m */; }; + 9F4A0BCF1800901900BC3B52 /* YouTube-Logo-black-background.png in Resources */ = {isa = PBXBuildFile; fileRef = 9F4A0BCE1800901900BC3B52 /* YouTube-Logo-black-background.png */; }; + 9F4A0BD31801BEC100BC3B52 /* FSJWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F4A0BD21801BEC100BC3B52 /* FSJWebViewController.m */; }; + 9F4A0BD61802048800BC3B52 /* WelcomeMatWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F4A0BD51802048800BC3B52 /* WelcomeMatWebViewController.m */; }; + 9F4A0BD918020AFE00BC3B52 /* TheJudokaiWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F4A0BD818020AFE00BC3B52 /* TheJudokaiWebViewController.m */; }; + 9F4A0BDC18020DB000BC3B52 /* BSIWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F4A0BDB18020DB000BC3B52 /* BSIWebViewController.m */; }; + 9F4A0BDF1802159F00BC3B52 /* TheJudokaiChannelWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F4A0BDE1802159F00BC3B52 /* TheJudokaiChannelWebViewController.m */; }; + 9F4A0BE21802403400BC3B52 /* WelcomeMatChannelWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F4A0BE11802403400BC3B52 /* WelcomeMatChannelWebViewController.m */; }; + 9F4A0BE518027D8000BC3B52 /* FSJHelpViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F4A0BE418027D8000BC3B52 /* FSJHelpViewController.m */; }; + 9FC9B9CE18061E0800678E12 /* RulesWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FC9B9CD18061E0800678E12 /* RulesWebViewController.m */; }; + 9FCC7A701809EC6800F55236 /* FREESTYLE_JUDO_HANDBOOK.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A6F1809EC6800F55236 /* FREESTYLE_JUDO_HANDBOOK.pdf */; }; + 9FCC7A72180CA29900F55236 /* boxing_bell.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A71180CA29900F55236 /* boxing_bell.mp3 */; }; + 9FCC7A74180CA72300F55236 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FCC7A73180CA72300F55236 /* AVFoundation.framework */; }; + 9FCC7A76180CB15C00F55236 /* single_bell.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A75180CB15C00F55236 /* single_bell.mp3 */; }; + 9FCC7A78180CB4A200F55236 /* buzzer.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A77180CB4A200F55236 /* buzzer.mp3 */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 9F1718AC17B801300055BB0D /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 9F17187617B8012F0055BB0D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 9F17187D17B8012F0055BB0D; + remoteInfo = "Freestyle Judo"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 9F07366617B8B06D002B0886 /* Freestyle-Judo-Logo B&W.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "Freestyle-Judo-Logo B&W.jpg"; sourceTree = ""; }; + 9F07C44A17FDAB5300BDA6EC /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; + 9F17187E17B8012F0055BB0D /* Freestyle Judo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Freestyle Judo.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 9F17188117B8012F0055BB0D /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 9F17188317B8012F0055BB0D /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 9F17188517B8012F0055BB0D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 9F17188917B8012F0055BB0D /* Freestyle Judo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Freestyle Judo-Info.plist"; sourceTree = ""; }; + 9F17188B17B8012F0055BB0D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 9F17188D17B8012F0055BB0D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 9F17188F17B8012F0055BB0D /* Freestyle Judo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Freestyle Judo-Prefix.pch"; sourceTree = ""; }; + 9F17189017B8012F0055BB0D /* FSJAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FSJAppDelegate.h; sourceTree = ""; }; + 9F17189117B8012F0055BB0D /* FSJAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FSJAppDelegate.m; sourceTree = ""; }; + 9F17189317B8012F0055BB0D /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; + 9F17189517B8012F0055BB0D /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; + 9F17189717B8012F0055BB0D /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; + 9F17189A17B8012F0055BB0D /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPhone.storyboard; sourceTree = ""; }; + 9F17189D17B8012F0055BB0D /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPad.storyboard; sourceTree = ""; }; + 9F17189F17B8012F0055BB0D /* FSJViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FSJViewController.h; sourceTree = ""; }; + 9F1718A017B8012F0055BB0D /* FSJViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FSJViewController.m; sourceTree = ""; }; + 9F1718A717B801300055BB0D /* Freestyle JudoTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Freestyle JudoTests.octest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 9F1718A817B801300055BB0D /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; }; + 9F1718B017B801300055BB0D /* Freestyle JudoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Freestyle JudoTests-Info.plist"; sourceTree = ""; }; + 9F1718B217B801300055BB0D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 9F1718B417B801300055BB0D /* Freestyle_JudoTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Freestyle_JudoTests.h; sourceTree = ""; }; + 9F1718B517B801300055BB0D /* Freestyle_JudoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Freestyle_JudoTests.m; sourceTree = ""; }; + 9F21D20D18031AAC00029572 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; + 9F21D20F1803613900029572 /* Settings.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Settings.cpp; sourceTree = ""; }; + 9F21D2101803613900029572 /* Settings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Settings.h; sourceTree = ""; }; + 9F21D2121804682300029572 /* FSJSettingsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FSJSettingsViewController.h; sourceTree = ""; }; + 9F21D2131804683200029572 /* FSJSettingsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FSJSettingsViewController.m; sourceTree = ""; }; + 9F4A0BBA17FEA9DF00BC3B52 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 9F4A0BC017FF294E00BC3B52 /* The Judokai - Gi Patch (Black Background).png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "The Judokai - Gi Patch (Black Background).png"; sourceTree = ""; }; + 9F4A0BC217FF2BE900BC3B52 /* Binary_Systems_(white).png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Binary_Systems_(white).png"; sourceTree = ""; }; + 9F4A0BC617FF3B9B00BC3B52 /* Welcome_Mat_Black_Gold_Logo.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = Welcome_Mat_Black_Gold_Logo.jpg; sourceTree = ""; }; + 9F4A0BC817FF728200BC3B52 /* FSJCreditsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FSJCreditsViewController.h; sourceTree = ""; }; + 9F4A0BC917FF728200BC3B52 /* FSJCreditsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FSJCreditsViewController.m; sourceTree = ""; }; + 9F4A0BCE1800901900BC3B52 /* YouTube-Logo-black-background.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "YouTube-Logo-black-background.png"; sourceTree = ""; }; + 9F4A0BD11801BEC100BC3B52 /* FSJWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FSJWebViewController.h; sourceTree = ""; }; + 9F4A0BD21801BEC100BC3B52 /* FSJWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FSJWebViewController.m; sourceTree = ""; }; + 9F4A0BD41802046400BC3B52 /* WelcomeMatWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WelcomeMatWebViewController.h; sourceTree = ""; }; + 9F4A0BD51802048800BC3B52 /* WelcomeMatWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WelcomeMatWebViewController.m; sourceTree = ""; }; + 9F4A0BD718020AEC00BC3B52 /* TheJudokaiWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TheJudokaiWebViewController.h; sourceTree = ""; }; + 9F4A0BD818020AFE00BC3B52 /* TheJudokaiWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TheJudokaiWebViewController.m; sourceTree = ""; }; + 9F4A0BDA18020D9E00BC3B52 /* BSIWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BSIWebViewController.h; sourceTree = ""; }; + 9F4A0BDB18020DB000BC3B52 /* BSIWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BSIWebViewController.m; sourceTree = ""; }; + 9F4A0BDD1802159000BC3B52 /* TheJudokaiChannelWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TheJudokaiChannelWebViewController.h; sourceTree = ""; }; + 9F4A0BDE1802159F00BC3B52 /* TheJudokaiChannelWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TheJudokaiChannelWebViewController.m; sourceTree = ""; }; + 9F4A0BE01802402800BC3B52 /* WelcomeMatChannelWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WelcomeMatChannelWebViewController.h; sourceTree = ""; }; + 9F4A0BE11802403400BC3B52 /* WelcomeMatChannelWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WelcomeMatChannelWebViewController.m; sourceTree = ""; }; + 9F4A0BE318027D6D00BC3B52 /* FSJHelpViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FSJHelpViewController.h; sourceTree = ""; }; + 9F4A0BE418027D8000BC3B52 /* FSJHelpViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FSJHelpViewController.m; sourceTree = ""; }; + 9FC9B9CC18061DF200678E12 /* RulesWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RulesWebViewController.h; sourceTree = ""; }; + 9FC9B9CD18061E0800678E12 /* RulesWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RulesWebViewController.m; sourceTree = ""; }; + 9FCC7A6F1809EC6800F55236 /* FREESTYLE_JUDO_HANDBOOK.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = FREESTYLE_JUDO_HANDBOOK.pdf; sourceTree = ""; }; + 9FCC7A71180CA29900F55236 /* boxing_bell.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = boxing_bell.mp3; sourceTree = ""; }; + 9FCC7A73180CA72300F55236 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; + 9FCC7A75180CB15C00F55236 /* single_bell.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = single_bell.mp3; sourceTree = ""; }; + 9FCC7A77180CB4A200F55236 /* buzzer.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = buzzer.mp3; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 9F17187B17B8012F0055BB0D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 9FCC7A74180CA72300F55236 /* AVFoundation.framework in Frameworks */, + 9F21D20E18031AAC00029572 /* MediaPlayer.framework in Frameworks */, + 9F07C44B17FDAB5300BDA6EC /* AudioToolbox.framework in Frameworks */, + 9F17188217B8012F0055BB0D /* UIKit.framework in Frameworks */, + 9F17188417B8012F0055BB0D /* Foundation.framework in Frameworks */, + 9F17188617B8012F0055BB0D /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9F1718A317B8012F0055BB0D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 9F1718A917B801300055BB0D /* SenTestingKit.framework in Frameworks */, + 9F1718AA17B801300055BB0D /* UIKit.framework in Frameworks */, + 9F1718AB17B801300055BB0D /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9F17187517B8012F0055BB0D = { + isa = PBXGroup; + children = ( + 9F17188717B8012F0055BB0D /* Freestyle Judo */, + 9F1718AE17B801300055BB0D /* Freestyle JudoTests */, + 9F17188017B8012F0055BB0D /* Frameworks */, + 9F17187F17B8012F0055BB0D /* Products */, + ); + sourceTree = ""; + }; + 9F17187F17B8012F0055BB0D /* Products */ = { + isa = PBXGroup; + children = ( + 9F17187E17B8012F0055BB0D /* Freestyle Judo.app */, + 9F1718A717B801300055BB0D /* Freestyle JudoTests.octest */, + ); + name = Products; + sourceTree = ""; + }; + 9F17188017B8012F0055BB0D /* Frameworks */ = { + isa = PBXGroup; + children = ( + 9FCC7A73180CA72300F55236 /* AVFoundation.framework */, + 9F21D20D18031AAC00029572 /* MediaPlayer.framework */, + 9F07C44A17FDAB5300BDA6EC /* AudioToolbox.framework */, + 9F17188117B8012F0055BB0D /* UIKit.framework */, + 9F17188317B8012F0055BB0D /* Foundation.framework */, + 9F17188517B8012F0055BB0D /* CoreGraphics.framework */, + 9F1718A817B801300055BB0D /* SenTestingKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 9F17188717B8012F0055BB0D /* Freestyle Judo */ = { + isa = PBXGroup; + children = ( + 9F17189017B8012F0055BB0D /* FSJAppDelegate.h */, + 9F17189117B8012F0055BB0D /* FSJAppDelegate.m */, + 9F17189917B8012F0055BB0D /* MainStoryboard_iPhone.storyboard */, + 9F17189C17B8012F0055BB0D /* MainStoryboard_iPad.storyboard */, + 9F17189F17B8012F0055BB0D /* FSJViewController.h */, + 9F1718A017B8012F0055BB0D /* FSJViewController.m */, + 9F4A0BBA17FEA9DF00BC3B52 /* Images.xcassets */, + 9F17188817B8012F0055BB0D /* Supporting Files */, + 9F4A0BC817FF728200BC3B52 /* FSJCreditsViewController.h */, + 9F4A0BC917FF728200BC3B52 /* FSJCreditsViewController.m */, + 9F21D2121804682300029572 /* FSJSettingsViewController.h */, + 9F21D2131804683200029572 /* FSJSettingsViewController.m */, + 9F4A0BE318027D6D00BC3B52 /* FSJHelpViewController.h */, + 9F4A0BE418027D8000BC3B52 /* FSJHelpViewController.m */, + 9F4A0BD11801BEC100BC3B52 /* FSJWebViewController.h */, + 9F4A0BD21801BEC100BC3B52 /* FSJWebViewController.m */, + 9F4A0BD41802046400BC3B52 /* WelcomeMatWebViewController.h */, + 9F4A0BD51802048800BC3B52 /* WelcomeMatWebViewController.m */, + 9F4A0BE01802402800BC3B52 /* WelcomeMatChannelWebViewController.h */, + 9F4A0BE11802403400BC3B52 /* WelcomeMatChannelWebViewController.m */, + 9F4A0BD718020AEC00BC3B52 /* TheJudokaiWebViewController.h */, + 9F4A0BD818020AFE00BC3B52 /* TheJudokaiWebViewController.m */, + 9FC9B9CC18061DF200678E12 /* RulesWebViewController.h */, + 9FC9B9CD18061E0800678E12 /* RulesWebViewController.m */, + 9F4A0BDD1802159000BC3B52 /* TheJudokaiChannelWebViewController.h */, + 9F4A0BDE1802159F00BC3B52 /* TheJudokaiChannelWebViewController.m */, + 9F4A0BDA18020D9E00BC3B52 /* BSIWebViewController.h */, + 9F4A0BDB18020DB000BC3B52 /* BSIWebViewController.m */, + 9F21D20F1803613900029572 /* Settings.cpp */, + 9F21D2101803613900029572 /* Settings.h */, + ); + path = "Freestyle Judo"; + sourceTree = ""; + }; + 9F17188817B8012F0055BB0D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 9FCC7A77180CB4A200F55236 /* buzzer.mp3 */, + 9FCC7A75180CB15C00F55236 /* single_bell.mp3 */, + 9FCC7A71180CA29900F55236 /* boxing_bell.mp3 */, + 9FCC7A6F1809EC6800F55236 /* FREESTYLE_JUDO_HANDBOOK.pdf */, + 9F4A0BCE1800901900BC3B52 /* YouTube-Logo-black-background.png */, + 9F4A0BC617FF3B9B00BC3B52 /* Welcome_Mat_Black_Gold_Logo.jpg */, + 9F4A0BC217FF2BE900BC3B52 /* Binary_Systems_(white).png */, + 9F4A0BC017FF294E00BC3B52 /* The Judokai - Gi Patch (Black Background).png */, + 9F07366617B8B06D002B0886 /* Freestyle-Judo-Logo B&W.jpg */, + 9F17188917B8012F0055BB0D /* Freestyle Judo-Info.plist */, + 9F17188A17B8012F0055BB0D /* InfoPlist.strings */, + 9F17188D17B8012F0055BB0D /* main.m */, + 9F17188F17B8012F0055BB0D /* Freestyle Judo-Prefix.pch */, + 9F17189317B8012F0055BB0D /* Default.png */, + 9F17189517B8012F0055BB0D /* Default@2x.png */, + 9F17189717B8012F0055BB0D /* Default-568h@2x.png */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 9F1718AE17B801300055BB0D /* Freestyle JudoTests */ = { + isa = PBXGroup; + children = ( + 9F1718B417B801300055BB0D /* Freestyle_JudoTests.h */, + 9F1718B517B801300055BB0D /* Freestyle_JudoTests.m */, + 9F1718AF17B801300055BB0D /* Supporting Files */, + ); + path = "Freestyle JudoTests"; + sourceTree = ""; + }; + 9F1718AF17B801300055BB0D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 9F1718B017B801300055BB0D /* Freestyle JudoTests-Info.plist */, + 9F1718B117B801300055BB0D /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 9F17187D17B8012F0055BB0D /* Freestyle Judo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9F1718B917B801300055BB0D /* Build configuration list for PBXNativeTarget "Freestyle Judo" */; + buildPhases = ( + 9F17187A17B8012F0055BB0D /* Sources */, + 9F17187B17B8012F0055BB0D /* Frameworks */, + 9F17187C17B8012F0055BB0D /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Freestyle Judo"; + productName = "Freestyle Judo"; + productReference = 9F17187E17B8012F0055BB0D /* Freestyle Judo.app */; + productType = "com.apple.product-type.application"; + }; + 9F1718A617B8012F0055BB0D /* Freestyle JudoTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9F1718BC17B801300055BB0D /* Build configuration list for PBXNativeTarget "Freestyle JudoTests" */; + buildPhases = ( + 9F1718A217B8012F0055BB0D /* Sources */, + 9F1718A317B8012F0055BB0D /* Frameworks */, + 9F1718A417B8012F0055BB0D /* Resources */, + 9F1718A517B8012F0055BB0D /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + 9F1718AD17B801300055BB0D /* PBXTargetDependency */, + ); + name = "Freestyle JudoTests"; + productName = "Freestyle JudoTests"; + productReference = 9F1718A717B801300055BB0D /* Freestyle JudoTests.octest */; + productType = "com.apple.product-type.bundle"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 9F17187617B8012F0055BB0D /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = FSJ; + LastUpgradeCheck = 0460; + ORGANIZATIONNAME = "Binary Systems, Inc."; + TargetAttributes = { + 9F17187D17B8012F0055BB0D = { + DevelopmentTeam = FCFV972SDV; + }; + }; + }; + buildConfigurationList = 9F17187917B8012F0055BB0D /* Build configuration list for PBXProject "Freestyle Judo" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 9F17187517B8012F0055BB0D; + productRefGroup = 9F17187F17B8012F0055BB0D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 9F17187D17B8012F0055BB0D /* Freestyle Judo */, + 9F1718A617B8012F0055BB0D /* Freestyle JudoTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 9F17187C17B8012F0055BB0D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9F17188C17B8012F0055BB0D /* InfoPlist.strings in Resources */, + 9FCC7A78180CB4A200F55236 /* buzzer.mp3 in Resources */, + 9FCC7A72180CA29900F55236 /* boxing_bell.mp3 in Resources */, + 9F4A0BBB17FEA9DF00BC3B52 /* Images.xcassets in Resources */, + 9FCC7A76180CB15C00F55236 /* single_bell.mp3 in Resources */, + 9F17189417B8012F0055BB0D /* Default.png in Resources */, + 9F17189617B8012F0055BB0D /* Default@2x.png in Resources */, + 9F4A0BC117FF294E00BC3B52 /* The Judokai - Gi Patch (Black Background).png in Resources */, + 9F17189817B8012F0055BB0D /* Default-568h@2x.png in Resources */, + 9FCC7A701809EC6800F55236 /* FREESTYLE_JUDO_HANDBOOK.pdf in Resources */, + 9F17189B17B8012F0055BB0D /* MainStoryboard_iPhone.storyboard in Resources */, + 9F4A0BC717FF3B9B00BC3B52 /* Welcome_Mat_Black_Gold_Logo.jpg in Resources */, + 9F4A0BCF1800901900BC3B52 /* YouTube-Logo-black-background.png in Resources */, + 9F17189E17B8012F0055BB0D /* MainStoryboard_iPad.storyboard in Resources */, + 9F07366717B8B06D002B0886 /* Freestyle-Judo-Logo B&W.jpg in Resources */, + 9F4A0BC317FF2BE900BC3B52 /* Binary_Systems_(white).png in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9F1718A417B8012F0055BB0D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9F1718B317B801300055BB0D /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 9F1718A517B8012F0055BB0D /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 9F17187A17B8012F0055BB0D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9F17188E17B8012F0055BB0D /* main.m in Sources */, + 9F21D2141804683200029572 /* FSJSettingsViewController.m in Sources */, + 9F4A0BE21802403400BC3B52 /* WelcomeMatChannelWebViewController.m in Sources */, + 9F4A0BDF1802159F00BC3B52 /* TheJudokaiChannelWebViewController.m in Sources */, + 9F4A0BD31801BEC100BC3B52 /* FSJWebViewController.m in Sources */, + 9F4A0BCA17FF728200BC3B52 /* FSJCreditsViewController.m in Sources */, + 9F21D2111803613900029572 /* Settings.cpp in Sources */, + 9F4A0BD918020AFE00BC3B52 /* TheJudokaiWebViewController.m in Sources */, + 9F4A0BE518027D8000BC3B52 /* FSJHelpViewController.m in Sources */, + 9FC9B9CE18061E0800678E12 /* RulesWebViewController.m in Sources */, + 9F4A0BDC18020DB000BC3B52 /* BSIWebViewController.m in Sources */, + 9F17189217B8012F0055BB0D /* FSJAppDelegate.m in Sources */, + 9F1718A117B8012F0055BB0D /* FSJViewController.m in Sources */, + 9F4A0BD61802048800BC3B52 /* WelcomeMatWebViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9F1718A217B8012F0055BB0D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9F1718B617B801300055BB0D /* Freestyle_JudoTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 9F1718AD17B801300055BB0D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 9F17187D17B8012F0055BB0D /* Freestyle Judo */; + targetProxy = 9F1718AC17B801300055BB0D /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 9F17188A17B8012F0055BB0D /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 9F17188B17B8012F0055BB0D /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 9F17189917B8012F0055BB0D /* MainStoryboard_iPhone.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 9F17189A17B8012F0055BB0D /* en */, + ); + name = MainStoryboard_iPhone.storyboard; + sourceTree = ""; + }; + 9F17189C17B8012F0055BB0D /* MainStoryboard_iPad.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 9F17189D17B8012F0055BB0D /* en */, + ); + name = MainStoryboard_iPad.storyboard; + sourceTree = ""; + }; + 9F1718B117B801300055BB0D /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 9F1718B217B801300055BB0D /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 9F1718B717B801300055BB0D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iOS Distribution"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 9F1718B817B801300055BB0D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "Freestyle Judo Distribution"; + "CODE_SIGN_IDENTITY[sdk=*]" = "Freestyle Judo Distribution"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Freestyle Judo Distribution"; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + "PROVISIONING_PROFILE[sdk=*]" = "Freestyle Judo Distribution"; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 9F1718BA17B801300055BB0D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; + INFOPLIST_FILE = "Freestyle Judo/Freestyle Judo-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; + "PROVISIONING_PROFILE[sdk=*]" = ""; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 9F1718BB17B801300055BB0D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; + INFOPLIST_FILE = "Freestyle Judo/Freestyle Judo-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 9F1718BD17B801300055BB0D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Freestyle Judo.app/Freestyle Judo"; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; + INFOPLIST_FILE = "Freestyle JudoTests/Freestyle JudoTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = octest; + }; + name = Debug; + }; + 9F1718BE17B801300055BB0D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Freestyle Judo.app/Freestyle Judo"; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; + INFOPLIST_FILE = "Freestyle JudoTests/Freestyle JudoTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = octest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 9F17187917B8012F0055BB0D /* Build configuration list for PBXProject "Freestyle Judo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9F1718B717B801300055BB0D /* Debug */, + 9F1718B817B801300055BB0D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 9F1718B917B801300055BB0D /* Build configuration list for PBXNativeTarget "Freestyle Judo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9F1718BA17B801300055BB0D /* Debug */, + 9F1718BB17B801300055BB0D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 9F1718BC17B801300055BB0D /* Build configuration list for PBXNativeTarget "Freestyle JudoTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9F1718BD17B801300055BB0D /* Debug */, + 9F1718BE17B801300055BB0D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 9F17187617B8012F0055BB0D /* Project object */; +} diff --git a/Freestyle Judo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Freestyle Judo.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..0c8a3cc --- /dev/null +++ b/Freestyle Judo.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Freestyle Judo.xcodeproj/project.xcworkspace/xcuserdata/vincente.xcuserdatad/WorkspaceSettings.xcsettings b/Freestyle Judo.xcodeproj/project.xcworkspace/xcuserdata/vincente.xcuserdatad/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..28f6741 --- /dev/null +++ b/Freestyle Judo.xcodeproj/project.xcworkspace/xcuserdata/vincente.xcuserdatad/WorkspaceSettings.xcsettings @@ -0,0 +1,22 @@ + + + + + BuildLocationStyle + UseAppPreferences + CustomBuildLocationType + RelativeToDerivedData + DerivedDataLocationStyle + Default + HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges + + IssueFilterStyle + ShowActiveSchemeOnly + LiveSourceIssuesEnabled + + SnapshotAutomaticallyBeforeSignificantChanges + + SnapshotLocationStyle + Default + + diff --git a/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist b/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist new file mode 100644 index 0000000..05301bc --- /dev/null +++ b/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist @@ -0,0 +1,5 @@ + + + diff --git a/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..fe2b454 --- /dev/null +++ b/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,5 @@ + + + diff --git a/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcschemes/Freestyle Judo.xcscheme b/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcschemes/Freestyle Judo.xcscheme new file mode 100644 index 0000000..4b0ecf5 --- /dev/null +++ b/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcschemes/Freestyle Judo.xcscheme @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcschemes/xcschememanagement.plist b/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..6d34e2e --- /dev/null +++ b/Freestyle Judo.xcodeproj/xcuserdata/vincente.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,27 @@ + + + + + SchemeUserState + + Freestyle Judo.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 9F17187D17B8012F0055BB0D + + primary + + + 9F1718A617B8012F0055BB0D + + primary + + + + + diff --git a/Freestyle Judo/.DS_Store b/Freestyle Judo/.DS_Store new file mode 100644 index 0000000..048f053 Binary files /dev/null and b/Freestyle Judo/.DS_Store differ diff --git a/Freestyle Judo/BSIWebViewController.h b/Freestyle Judo/BSIWebViewController.h new file mode 100644 index 0000000..42dfa57 --- /dev/null +++ b/Freestyle Judo/BSIWebViewController.h @@ -0,0 +1,16 @@ +// +// BSIWebViewController.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + +@interface BSIWebViewController : UIViewController +@property (weak, nonatomic) IBOutlet UIWebView *webView; + +@property (weak, nonatomic) IBOutlet UIToolbar *BSIWebToolbar; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; +@end diff --git a/Freestyle Judo/BSIWebViewController.m b/Freestyle Judo/BSIWebViewController.m new file mode 100644 index 0000000..693656d --- /dev/null +++ b/Freestyle Judo/BSIWebViewController.m @@ -0,0 +1,54 @@ +// +// BSIWebViewController.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "BSIWebViewController.h" + + +@implementation BSIWebViewController + +@synthesize webView = _webView; +@synthesize BSIWebToolbar = _BSIWebToolbar; +@synthesize DoneButton = _DoneButton; + + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + self.webView.scalesPageToFit = YES; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.binary-systems.com"]]]; +} + + +- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation +{ + return YES; +} + + + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. + +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + + +- (IBAction)done:(UIBarButtonItem *)sender { + [self dismissViewControllerAnimated:YES completion:nil]; +} + + +@end diff --git a/Freestyle Judo/Binary_Systems_(white).png b/Freestyle Judo/Binary_Systems_(white).png new file mode 100644 index 0000000..4756d8a Binary files /dev/null and b/Freestyle Judo/Binary_Systems_(white).png differ diff --git a/Freestyle Judo/Default-568h@2x.png b/Freestyle Judo/Default-568h@2x.png new file mode 100644 index 0000000..0891b7a Binary files /dev/null and b/Freestyle Judo/Default-568h@2x.png differ diff --git a/Freestyle Judo/Default.png b/Freestyle Judo/Default.png new file mode 100644 index 0000000..4c8ca6f Binary files /dev/null and b/Freestyle Judo/Default.png differ diff --git a/Freestyle Judo/Default@2x.png b/Freestyle Judo/Default@2x.png new file mode 100644 index 0000000..35b84cf Binary files /dev/null and b/Freestyle Judo/Default@2x.png differ diff --git a/Freestyle Judo/FREESTYLE_JUDO_HANDBOOK.pdf b/Freestyle Judo/FREESTYLE_JUDO_HANDBOOK.pdf new file mode 100644 index 0000000..787c726 Binary files /dev/null and b/Freestyle Judo/FREESTYLE_JUDO_HANDBOOK.pdf differ diff --git a/Freestyle Judo/FSJAppDelegate.h b/Freestyle Judo/FSJAppDelegate.h new file mode 100644 index 0000000..5b2eb01 --- /dev/null +++ b/Freestyle Judo/FSJAppDelegate.h @@ -0,0 +1,15 @@ +// +// FSJAppDelegate.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 8/11/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + +@interface FSJAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/Freestyle Judo/FSJAppDelegate.m b/Freestyle Judo/FSJAppDelegate.m new file mode 100644 index 0000000..bc0ed42 --- /dev/null +++ b/Freestyle Judo/FSJAppDelegate.m @@ -0,0 +1,46 @@ +// +// FSJAppDelegate.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 8/11/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "FSJAppDelegate.h" + +@implementation FSJAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + // Override point for customization after application launch. + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/Freestyle Judo/FSJCreditsViewController.h b/Freestyle Judo/FSJCreditsViewController.h new file mode 100644 index 0000000..207a2e0 --- /dev/null +++ b/Freestyle Judo/FSJCreditsViewController.h @@ -0,0 +1,27 @@ +// +// FSJCreditsViewController.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/4/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import +// +//@interface FSJCreditsViewController : UIViewController { +// +//} + +@interface FSJCreditsViewController : UIViewController +@property (strong, nonatomic) IBOutlet UIButton *FreestyleJudoButton; + + +@property (strong, nonatomic) IBOutlet UIButton *WelcomeMatButton; +@property (strong, nonatomic) IBOutlet UIButton *WelcomeMatChannelButton; +@property (strong, nonatomic) IBOutlet UIButton *TheJudokaiButton; +@property (strong, nonatomic) IBOutlet UIButton *BinarySystemsButton; + +@property (weak, nonatomic) IBOutlet UIToolbar *CreditsToolbar; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; + +@end diff --git a/Freestyle Judo/FSJCreditsViewController.m b/Freestyle Judo/FSJCreditsViewController.m new file mode 100644 index 0000000..a3bc629 --- /dev/null +++ b/Freestyle Judo/FSJCreditsViewController.m @@ -0,0 +1,86 @@ +// +// FSJCreditsViewController.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/4/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "FSJCreditsViewController.h" + + + +@implementation FSJCreditsViewController + + +@synthesize FreestyleJudoButton = _FreestyleJudoButton; +@synthesize WelcomeMatButton = _WelcomeMatButton; +@synthesize TheJudokaiButton = _TheJudokaiButton; +@synthesize BinarySystemsButton = _BinarySystemsButton; + +@synthesize CreditsToolbar = _CreditsToolbar; +@synthesize DoneButton = _DoneButton; + + +- (IBAction)showFSJWebSite:(UIButton *)sender { + NSLog(@"Go to www.freestylejudo.org"); + +} + + + + +- (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + if ([segue.identifier isEqualToString:@"showFSJWebSite"]) + { + [segue.destinationViewController setTitle:@"showFSJWebSite"]; + } +} + + + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + + +-(BOOL)shouldAutorotate +{ + return NO; +} + + +- (NSUInteger)supportedInterfaceOrientations +{ + return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; +} + + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. +} + + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +- (IBAction)done:(UIBarButtonItem *)sender { + [self dismissViewControllerAnimated:YES completion:nil]; +} + + + + +@end diff --git a/Freestyle Judo/FSJHelpViewController.h b/Freestyle Judo/FSJHelpViewController.h new file mode 100644 index 0000000..a65152d --- /dev/null +++ b/Freestyle Judo/FSJHelpViewController.h @@ -0,0 +1,17 @@ +// +// FSJHelpViewController.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/4/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + + +@interface FSJHelpViewController : UIViewController +@property (strong, nonatomic) IBOutlet UIButton *FreestyleJudoButton; + +@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; +@end + diff --git a/Freestyle Judo/FSJHelpViewController.m b/Freestyle Judo/FSJHelpViewController.m new file mode 100644 index 0000000..531bbe5 --- /dev/null +++ b/Freestyle Judo/FSJHelpViewController.m @@ -0,0 +1,79 @@ +// +// FSJHelpViewController.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/4/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "FSJHelpViewController.h" + +#include "Settings.h" + +@implementation FSJHelpViewController + + +@synthesize FreestyleJudoButton = _FreestyleJudoButton; +@synthesize DoneButton = _DoneButton; + + + +- (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + if ([segue.identifier isEqualToString:@"showFSJWebSite"]) + { + [segue.destinationViewController setTitle:@"showFSJWebSite"]; + } +} + + + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. + + } + + +-(BOOL)shouldAutorotate +{ + return NO; +} + + +- (NSUInteger)supportedInterfaceOrientations +{ + return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; +} + + + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +- (IBAction)done:(UIBarButtonItem *)sender { + [self dismissViewControllerAnimated:YES completion:nil]; +} + +- (IBAction)goBack:(UIButton *)sender { + [self dismissViewControllerAnimated:YES completion:nil]; +} + + + +@end diff --git a/Freestyle Judo/FSJSettingsViewController.h b/Freestyle Judo/FSJSettingsViewController.h new file mode 100644 index 0000000..511ab74 --- /dev/null +++ b/Freestyle Judo/FSJSettingsViewController.h @@ -0,0 +1,24 @@ +// +// FSJSettingsViewController.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/4/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + + +@interface FSJSettingsViewController : UIViewController +@property (strong, nonatomic) IBOutlet UIButton *FreestyleJudoButton; + +@property (weak, nonatomic) IBOutlet UIToolbar *SettingsToolbar; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; + +@property (weak, nonatomic) IBOutlet UISwitch *AutoScoreOsaekomiSwitch; +@property (weak, nonatomic) IBOutlet UISwitch *IpponForOsaekomiSwitch; +@property (weak, nonatomic) IBOutlet UISwitch *BackgoundMusicSwitch; +@property (weak, nonatomic) IBOutlet UISwitch *IntervalTimerSwitch; + +@end + diff --git a/Freestyle Judo/FSJSettingsViewController.m b/Freestyle Judo/FSJSettingsViewController.m new file mode 100644 index 0000000..0cf4ebd --- /dev/null +++ b/Freestyle Judo/FSJSettingsViewController.m @@ -0,0 +1,131 @@ +// +// FSJSettingsViewController.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/4/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "FSJSettingsViewController.h" + +#include "Settings.h" + +@implementation FSJSettingsViewController + + +@synthesize FreestyleJudoButton = _FreestyleJudoButton; +@synthesize SettingsToolbar = _SettingsToolbar; +@synthesize DoneButton = _DoneButton; +@synthesize AutoScoreOsaekomiSwitch = _AutoScoreOsaekomiSwitch; +@synthesize IpponForOsaekomiSwitch = _IpponForOsaekomiSwitch; +@synthesize BackgoundMusicSwitch = _BackgoundMusicSwitch; +@synthesize IntervalTimerSwitch = _IntervalTimerSwitch; + + + +- (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + if ([segue.identifier isEqualToString:@"showFSJWebSite"]) + { + [segue.destinationViewController setTitle:@"showFSJWebSite"]; + } +} + + + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. + + _BackgoundMusicSwitch.on = isMusicControlEnabled; + _IpponForOsaekomiSwitch.on = isIpponForOsaekomiEnabled; + _IntervalTimerSwitch.on = isIntervalTimerEnabled; + _BackgoundMusicSwitch.on = isMusicControlEnabled; + +} + + +-(BOOL)shouldAutorotate +{ + return NO; +} + + +- (NSUInteger)supportedInterfaceOrientations +{ + return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; +} + + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +- (IBAction)switchAutoScore:(UISwitch *)sender { + if (_AutoScoreOsaekomiSwitch.on) { + isAutoScoreOsaekomiEnabled = TRUE; + } + else { + isAutoScoreOsaekomiEnabled = FALSE; + } + +} + + +- (IBAction)switchIpponForOsaekomi:(UISwitch *)sender { + if (_IpponForOsaekomiSwitch.on) { + isIpponForOsaekomiEnabled = TRUE; + } + else { + isIpponForOsaekomiEnabled = FALSE; + } + +} + + +- (IBAction)switchMusic:(UISwitch *)sender { + if (_BackgoundMusicSwitch.on) { + // Music On + isMusicControlEnabled = TRUE; + } + else { + // Music Off + isMusicControlEnabled = FALSE; + } +} + + + +- (IBAction)switchIntervalTimer:(UISwitch *)sender { + if (_IntervalTimerSwitch.on) { + // Music On + isIntervalTimerEnabled = TRUE; + } + else { + // Music Off + isIntervalTimerEnabled = FALSE; + } +} + + +- (IBAction)done:(UIBarButtonItem *)sender { + [self dismissViewControllerAnimated:YES completion:nil]; +} + + + +@end diff --git a/Freestyle Judo/FSJViewController.h b/Freestyle Judo/FSJViewController.h new file mode 100644 index 0000000..f0c3709 --- /dev/null +++ b/Freestyle Judo/FSJViewController.h @@ -0,0 +1,112 @@ +// +// FSJViewController.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 8/11/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import +#import +#import +#import + + +@interface FSJViewController : UIViewController { + + BOOL isSoremade; + BOOL isMatte; + + int RedScore; + int WhiteScore; + + BOOL isRedOsaekomi; + BOOL isWhiteOsaekomi; + + NSString *RedJudokaName; + NSString *WhiteJudokaName; + + int InitialShiaiTime; + int ShiaiTime; + NSTimer *ShiaiTimer; + IBOutlet UILabel *ShiaiTimerDisplay; + + int RedOsaekomiTime; + NSTimer *RedOsaekomiTimer; + IBOutlet UILabel *RedOsaekomiTimerDisplay; + int RedToketaTime; + + int WhiteOsaekomiTime; + NSTimer *WhiteOsaekomiTimer; + IBOutlet UILabel *WhiteOsaekomiTimerDisplay; + int WhiteToketaTime; + + SystemSoundID soundClick; + + MPMusicPlayerController *MusicPlayer; + + BOOL isInLandscape; + BOOL isInPortrait; + + int InitialBreakTime; + int BreakTime; + NSTimer *BreakTimer; + BOOL isBreakTime; +} + +@property (strong, nonatomic) IBOutlet UIButton *FreestyleJudoButton; + +@property (weak, nonatomic) IBOutlet UIToolbar *ScoreboardToolbar; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *AboutToolbarButton; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *HelpToolbarButton; + +@property (weak, nonatomic) IBOutlet UIToolbar *FSJToolbar; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *Hajime2Button; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *HelpButton; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *SettingsButton; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *AboutButton; + +@property (strong, nonatomic) IBOutlet UIBarButtonItem *IpponWhiteButton; +@property (strong, nonatomic) IBOutlet UIBarButtonItem *IpponRedButton; + +@property (strong, nonatomic) IBOutlet UIBarButtonItem *OsaekomiWhiteButton; +@property (strong, nonatomic) IBOutlet UIBarButtonItem *OsaekomiRedButton; + +@property (strong, nonatomic) IBOutlet UIBarButtonItem *HajimeButton; + +@property (strong, nonatomic) IBOutlet UIButton *ResetButton; + +@property (weak, nonatomic) IBOutlet UITextField *RedTextField; +@property (weak, nonatomic) IBOutlet UITextField *WhiteTextField; + +@property (weak, nonatomic) IBOutlet UILabel *RedOsaekomiTimerDisplay; +@property (weak, nonatomic) IBOutlet UILabel *WhiteOsaekomiTimerDisplay; + +@property (weak, nonatomic) IBOutlet UILabel *ShiaiTimerDisplay; + +@property (weak, nonatomic) IBOutlet UILabel *WhiteScoreDisplay; +@property (weak, nonatomic) IBOutlet UILabel *RedScoreDisplay; + +@property (weak, nonatomic) IBOutlet UILabel *WazariLabel; +@property (weak, nonatomic) IBOutlet UILabel *YukoLabel; +@property (weak, nonatomic) IBOutlet UILabel *KokaLabel; + +@property (strong, nonatomic) IBOutlet UIButton *WhiteWazariButton; +@property (strong, nonatomic) IBOutlet UIButton *RedWazariButton; +@property (strong, nonatomic) IBOutlet UIButton *WhiteYukoButton; +@property (strong, nonatomic) IBOutlet UIButton *RedYukoButton; +@property (strong, nonatomic) IBOutlet UIButton *WhiteKokaButton; +@property (strong, nonatomic) IBOutlet UIButton *RedKokaButton; + +@property (nonatomic, retain) MPMusicPlayerController *MusicPlayer; + +@property (strong,nonatomic) AVAudioPlayer *AudioPlayer; + + +- (void) doIpponWhite; +- (void) doIpponRed; +- (void) clearIpponWhite; +- (void) clearIpponRed; + +@end + diff --git a/Freestyle Judo/FSJViewController.m b/Freestyle Judo/FSJViewController.m new file mode 100644 index 0000000..75a2646 --- /dev/null +++ b/Freestyle Judo/FSJViewController.m @@ -0,0 +1,1724 @@ +// +// FSJViewController.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 8/11/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "FSJViewController.h" +#import +#include "Settings.h" + +#define VERSION "1.0" + +#define ALARM1 1005 +#define ALARM2 1304 +#define TINK1 1103 +#define TINK2 1057 +#define TOCK 1104 +#define KEYPRESSED 1104 +#define SUSPENSE 1332 +#define VIBRATE 4095 + + +#define ONEPOINT 5 +#define TWOPOINTS 10 +#define FOURPOINTS 20 +#define IPPONTIME 25 + +#define SUPERIORDECISIONPOINTS 12 + + +int sleepms(unsigned ms) +{ + return usleep(1000 * ms); +} + + + + +@implementation FSJViewController + +@synthesize FreestyleJudoButton = _FreestyleJudoButton; + +@synthesize FSJToolbar = _FSJToolbar; +@synthesize AboutButton = _AboutButton; +@synthesize Hajime2Button = _Hajime2Button; +@synthesize SettingsButton = _SettingsButton; +@synthesize HelpButton = _HelpButton; + +@synthesize ScoreboardToolbar = _ScoreboardToolbar; +@synthesize IpponWhiteButton = _IpponWhiteButton; +@synthesize OsaekomiWhiteButton = _OsaekomiWhiteButton; +@synthesize HajimeButton = _HajimeButton; +@synthesize OsaekomiRedButton = _OsaekomiRedButton; +@synthesize IpponRedButton = _IpponRedButton; + +@synthesize ResetButton = _ResetButton; + + +@synthesize WazariLabel = _WazariLabel; +@synthesize YukoLabel = _YukoLabel; +@synthesize KokaLabel = _KokaLabel; + +@synthesize WhiteWazariButton = _WhiteWazariButton; +@synthesize RedWazariButton = _RedWazariButton; +@synthesize WhiteYukoButton = _WhiteYukoButton; +@synthesize RedYukoButton = _RedYukoButton; +@synthesize WhiteKokaButton = _WhiteKokaButton; +@synthesize RedKokaButton = _RedKokaButton; + + +@synthesize RedTextField = _RedTextField; +@synthesize WhiteTextField = _WhiteTextField; + +@synthesize ShiaiTimerDisplay = _ShiaiTimerDisplay; +@synthesize RedOsaekomiTimerDisplay = _RedOsaekomiTimerDisplay; +@synthesize WhiteOsaekomiTimerDisplay = _WhiteOsaekomiTimerDisplay; +@synthesize WhiteScoreDisplay = _WhiteScoreDisplay; +@synthesize RedScoreDisplay = _RedScoreDisplay; + + +@synthesize MusicPlayer = _MusicPlayer; + +@synthesize AudioPlayer = _AudioPlayer; + + + + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. + + isSoremade = YES; + isMatte = YES; + + isAutoScoreOsaekomiEnabled = TRUE; + + isBreakTime = NO; + + [ShiaiTimer invalidate]; + InitialShiaiTime = 300; + ShiaiTime = InitialShiaiTime; + + + [BreakTimer invalidate]; + InitialBreakTime = 10; + BreakTime = InitialBreakTime; + + isRedOsaekomi = NO; + [RedOsaekomiTimer invalidate]; + RedOsaekomiTime = 0; + RedToketaTime = 0; + + isWhiteOsaekomi = NO; + [WhiteOsaekomiTimer invalidate]; + WhiteOsaekomiTime = 0; + WhiteToketaTime = 0; + + + RedScore = 0; + WhiteScore = 0; + + RedJudokaName = @"Red"; + WhiteJudokaName = @"White"; + + + UISwipeGestureRecognizer *swipeUpTime = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipedUpTimeGesture:)]; + swipeUpTime.direction = UISwipeGestureRecognizerDirectionUp; + swipeUpTime.numberOfTouchesRequired = 1; + [self.ShiaiTimerDisplay addGestureRecognizer:swipeUpTime]; + [self.ShiaiTimerDisplay setUserInteractionEnabled:YES]; + + UISwipeGestureRecognizer *swipeDownTime = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipedDownTimeGesture:)]; + swipeDownTime.direction = UISwipeGestureRecognizerDirectionDown; + swipeDownTime.numberOfTouchesRequired = 1; + [self.ShiaiTimerDisplay addGestureRecognizer:swipeDownTime]; + [self.ShiaiTimerDisplay setUserInteractionEnabled:YES]; + + + + UISwipeGestureRecognizer *swipeUpWhite = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipedUpWhiteGesture:)]; + swipeUpWhite.direction = UISwipeGestureRecognizerDirectionUp; + swipeUpWhite.numberOfTouchesRequired = 1; + [self.WhiteScoreDisplay addGestureRecognizer:swipeUpWhite]; + [self.WhiteScoreDisplay setUserInteractionEnabled:YES]; + + UISwipeGestureRecognizer *swipeDownWhite = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipedDownWhiteGesture:)]; + swipeDownWhite.direction = UISwipeGestureRecognizerDirectionDown; + swipeDownWhite.numberOfTouchesRequired = 1; + [self.WhiteScoreDisplay addGestureRecognizer:swipeDownWhite]; + [self.WhiteScoreDisplay setUserInteractionEnabled:YES]; + + UISwipeGestureRecognizer *swipeUpRed = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipedUpRedGesture:)]; + swipeUpRed.direction = UISwipeGestureRecognizerDirectionUp; + swipeUpRed.numberOfTouchesRequired = 1; + [self.RedScoreDisplay addGestureRecognizer:swipeUpRed]; + [self.RedScoreDisplay setUserInteractionEnabled:YES]; + + UISwipeGestureRecognizer *swipeDownRed = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipedDownRedGesture:)]; + swipeDownRed.direction = UISwipeGestureRecognizerDirectionDown; + swipeDownRed.numberOfTouchesRequired = 1; + [self.RedScoreDisplay addGestureRecognizer:swipeDownRed]; + [self.RedScoreDisplay setUserInteractionEnabled:YES]; + + + [self updateTime]; + + + self.WhiteTextField.delegate = self; + [self.WhiteTextField setReturnKeyType:UIReturnKeyDone]; + + self.RedTextField.delegate = self; + [self.RedTextField setReturnKeyType:UIReturnKeyDone]; + + + _IpponRedButton.enabled = NO; + _IpponWhiteButton.enabled = NO; + _OsaekomiRedButton.enabled = NO; + _OsaekomiWhiteButton.enabled = NO; + + _HajimeButton.title = @"Hajime"; + _Hajime2Button.title = @"Hajime"; + _HajimeButton.enabled = YES; + + _IpponWhiteButton.title = @"Ippon"; + _IpponRedButton.title = @"Ippon"; + _OsaekomiWhiteButton.title = @"Osaekomi"; + _OsaekomiRedButton.title = @"Osaekomi"; + + [_FSJToolbar setHidden: FALSE]; + [_ScoreboardToolbar setHidden: TRUE]; + + + [_WhiteWazariButton setHidden: TRUE]; + [_RedWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; + + [_WazariLabel setHidden: YES]; + [_YukoLabel setHidden: YES]; + [_KokaLabel setHidden: YES]; + + + + + _MusicPlayer = [MPMusicPlayerController iPodMusicPlayer]; + + + if (_MusicPlayer.playbackState == MPMusicPlaybackStatePlaying) + { + [_MusicPlayer pause]; + } + + + isInPortrait = UIDeviceOrientationIsPortrait([[UIDevice currentDevice] orientation]); + isInLandscape = !isInPortrait; + + if (isInPortrait) + { + [_WazariLabel setHidden: NO]; + [_YukoLabel setHidden: NO]; + [_KokaLabel setHidden: NO]; + + [_WhiteWazariButton setHidden: FALSE]; + [_RedWazariButton setHidden: FALSE]; + [_WhiteYukoButton setHidden: FALSE]; + [_RedYukoButton setHidden: FALSE]; + [_WhiteKokaButton setHidden: FALSE]; + [_RedKokaButton setHidden: FALSE]; + } + + + NSLog(@"Freestyle Judo Initialized"); + + + // Disable the idle timer + [[UIApplication sharedApplication] setIdleTimerDisabled: YES]; + +} + + + + +- (void) audioPlayerDidFinishPlaying: (AVAudioPlayer *) player + + successfully: (BOOL) completed { + + if (completed == YES) + { + + NSLog(@"Sound Playing complete"); + + if (isMusicControlEnabled) + { + [_MusicPlayer play]; + } + + + } + else { + NSLog(@"error in completion of %@",player.url); + } + + +} + + + + +- (void)viewDidUnload +{ + +} + + +- (BOOL) shouldAutorotate +{ + return YES; +} + + + +- (NSUInteger)supportedInterfaceOrientations +{ + return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight; +} + + + +- (void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation +{ + if ((fromInterfaceOrientation == UIDeviceOrientationPortrait) || (fromInterfaceOrientation == UIDeviceOrientationPortraitUpsideDown)) + { + isInLandscape = TRUE; + isInPortrait = FALSE; + } + else if ((fromInterfaceOrientation == UIDeviceOrientationLandscapeRight) || (fromInterfaceOrientation == UIDeviceOrientationLandscapeLeft)) + { + isInLandscape = FALSE; + isInPortrait = TRUE; + } + + if (isInLandscape) + { + [_WazariLabel setHidden: YES]; + [_YukoLabel setHidden: YES]; + [_KokaLabel setHidden: YES]; + + [_RedWazariButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; + [_WhiteWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + } + + if (isInPortrait) + { + if (!isMatte) + { + [_WazariLabel setHidden: NO]; + [_YukoLabel setHidden: NO]; + [_KokaLabel setHidden: NO]; + + [_WhiteWazariButton setHidden: FALSE]; + [_RedWazariButton setHidden: FALSE]; + [_WhiteYukoButton setHidden: FALSE]; + [_RedYukoButton setHidden: FALSE]; + [_WhiteKokaButton setHidden: FALSE]; + [_RedKokaButton setHidden: FALSE]; + } + } + +} + +void systemAudioCallback(SystemSoundID soundId, void *clientData) +{ + NSLog(@"System sound %d finished playing!", (unsigned int)soundId); +} + + +- (void) updateTime { + + self.ShiaiTimerDisplay.baselineAdjustment = UIBaselineAdjustmentAlignCenters; + + if (WhiteScore > RedScore) + { + self.ShiaiTimerDisplay.textColor = [UIColor whiteColor]; + } + else if (RedScore > WhiteScore) + { + self.ShiaiTimerDisplay.textColor = [UIColor redColor]; + } + else { + self.ShiaiTimerDisplay.textColor = [UIColor lightGrayColor]; + } + + if (isSoremade) + { +// self.ShiaiTimerDisplay.text = [NSString stringWithFormat:@"%02d:%02d", InitialShiaiTime / 60, InitialShiaiTime % 60]; + self.ShiaiTimerDisplay.text = [NSString stringWithFormat:@"%02d:%02d", ShiaiTime / 60, ShiaiTime % 60]; +// +// NSLog(@"InitialShiaiTime = %02d:%02d", InitialShiaiTime / 60, InitialShiaiTime % 60); + } + else { + self.ShiaiTimerDisplay.text = [NSString stringWithFormat:@"%d:%02d", ShiaiTime / 60, ShiaiTime % 60]; + + NSLog(@"ShiaiTime = %d:%02d", ShiaiTime / 60, ShiaiTime % 60); + } +} + + + + +- (void)swipedUpTimeGesture:(UIGestureRecognizer *)recognizer +{ + NSLog(@"Shiai timer swiped Up"); + if (isSoremade) + { + InitialShiaiTime = InitialShiaiTime + 60; + + if (InitialShiaiTime > 3600) InitialShiaiTime = 3600; + + ShiaiTime = InitialShiaiTime; + } + else { + if (isMatte) { + ShiaiTime = ShiaiTime + 1; + + if (ShiaiTime > InitialShiaiTime) ShiaiTime = InitialShiaiTime; + } + } + [self updateTime]; +} + + +- (void)swipedDownTimeGesture:(UIGestureRecognizer *)recognizer +{ + NSLog(@"Shiai timer swiped Down"); + if (isSoremade) + { + InitialShiaiTime = InitialShiaiTime - 60; + + if (InitialShiaiTime < 0) InitialShiaiTime = 0; + + ShiaiTime = InitialShiaiTime; + } + else { + if (isMatte) { + ShiaiTime = ShiaiTime - 1; + + if (ShiaiTime < 0) ShiaiTime = 0; + } + } + + [self updateTime]; +} + + + +- (void) incrementWhiteScore +{ + WhiteScore++; + if (WhiteScore > 99) WhiteScore = 99; + + self.WhiteScoreDisplay.text = [NSString stringWithFormat:@"%d", WhiteScore]; + + [self updateTime]; +} + + +- (void) decrementWhiteScore +{ + + WhiteScore--; + if (WhiteScore < 0) WhiteScore = 0; + + self.WhiteScoreDisplay.text = [NSString stringWithFormat:@"%d", WhiteScore]; + + [self updateTime]; +} + + +- (void) incrementRedScore +{ + RedScore++; + if (RedScore > 99) RedScore = 99; + + self.RedScoreDisplay.text = [NSString stringWithFormat:@"%d", RedScore]; + + [self updateTime]; +} + + +- (void) decrementRedScore +{ + RedScore--; + if (RedScore < 0) RedScore = 0; + + self.RedScoreDisplay.text = [NSString stringWithFormat:@"%d", RedScore]; + + [self updateTime]; +} + + +- (void)swipedUpWhiteGesture:(UIGestureRecognizer *)recognizer +{ + [self incrementWhiteScore]; + + NSLog(@"White score swiped Up is %d", WhiteScore); +} + + +- (void)swipedDownWhiteGesture:(UIGestureRecognizer *)recognizer +{ + [self decrementWhiteScore]; + + NSLog(@"White score swiped Down is %d", WhiteScore); +} + + + +- (void)swipedUpRedGesture:(UIGestureRecognizer *)recognizer +{ + [self incrementRedScore]; + + NSLog(@"Red score swiped Up is %d", RedScore); +} + + +- (void)swipedDownRedGesture:(UIGestureRecognizer *)recognizer +{ + [self decrementRedScore]; + + NSLog(@"Red score swiped Down is %d", RedScore); +} + + + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + + +- (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + if ([segue.identifier isEqualToString:@"showCredits"]) + { + [segue.destinationViewController setTitle:@"showCredits"]; + } +} + + +- (void) doIpponWhite +{ + NSLog(@"Ippon White @ %d:%02d", ShiaiTime / 60, ShiaiTime % 60); + + if (isMusicControlEnabled) + { + [_MusicPlayer pause]; + } + + _AudioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] + pathForResource:@"buzzer" ofType:@"mp3"]] error:NULL]; + [_AudioPlayer play]; + + AudioServicesPlaySystemSound(VIBRATE); + + [ShiaiTimer invalidate]; + [RedOsaekomiTimer invalidate]; + [WhiteOsaekomiTimer invalidate]; + + isSoremade = YES; + isMatte = YES; + isRedOsaekomi = NO; + isWhiteOsaekomi = NO; + + self.ShiaiTimerDisplay.textColor = [UIColor whiteColor]; + + self.ShiaiTimerDisplay.text = [NSString stringWithFormat:@"Ippon %d:%02d", ShiaiTime / 60, ShiaiTime % 60]; + + [_ResetButton setHidden: FALSE]; + + _HajimeButton.enabled = NO; + _IpponRedButton.enabled = NO; + _OsaekomiRedButton.enabled = NO; + _OsaekomiWhiteButton.enabled = NO; + + _IpponWhiteButton.title = @"Clear"; + + [_WazariLabel setHidden: YES]; + [_YukoLabel setHidden: YES]; + [_KokaLabel setHidden: YES]; + + [_WhiteWazariButton setHidden: TRUE]; + [_RedWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; +} + + +- (void) clearIpponWhite +{ + NSLog(@"Cleared Ippon White @ %d:%02d", ShiaiTime / 60, ShiaiTime % 60); + + isSoremade = NO; + + _HajimeButton.tintColor = [UIColor greenColor]; + _HajimeButton.title = @"Hajime"; + _HajimeButton.enabled = YES; + _Hajime2Button.tintColor = [UIColor greenColor]; + _Hajime2Button.title = @"Hajime"; + + _IpponRedButton.enabled = YES; + + _IpponWhiteButton.title = @"Ippon"; + + [_ResetButton setHidden: FALSE]; + + if (isInPortrait) + { + [_WazariLabel setHidden: NO]; + [_YukoLabel setHidden: NO]; + [_KokaLabel setHidden: NO]; + + [_WhiteWazariButton setHidden: FALSE]; + [_RedWazariButton setHidden: FALSE]; + [_WhiteYukoButton setHidden: FALSE]; + [_RedYukoButton setHidden: FALSE]; + [_WhiteKokaButton setHidden: FALSE]; + [_RedKokaButton setHidden: FALSE]; + } + + self.ShiaiTimerDisplay.textColor = [UIColor whiteColor]; + + self.ShiaiTimerDisplay.text = [NSString stringWithFormat:@"%d:%02d", ShiaiTime / 60, ShiaiTime % 60]; +} + + + + + +- (IBAction)ipponWhite:(UIBarButtonItem *)sender +{ + if ([_IpponWhiteButton.title isEqualToString: @"Clear"]) + { + [self clearIpponWhite]; + } + else { + [self doIpponWhite]; + } + } + + + +- (void) doIpponRed +{ + NSLog(@"Ippon Red @ %d:%02d", ShiaiTime / 60, ShiaiTime % 60); + + if (isMusicControlEnabled) + { + [_MusicPlayer pause]; + } + + _AudioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] + pathForResource:@"buzzer" ofType:@"mp3"]] error:NULL]; + [_AudioPlayer play]; + + AudioServicesPlaySystemSound(VIBRATE); + + [ShiaiTimer invalidate]; + [RedOsaekomiTimer invalidate]; + [WhiteOsaekomiTimer invalidate]; + + isSoremade = YES; + isMatte = YES; + isRedOsaekomi = NO; + isWhiteOsaekomi = NO; + + self.ShiaiTimerDisplay.textColor = [UIColor redColor]; + + self.ShiaiTimerDisplay.text = [NSString stringWithFormat:@"Ippon %d:%02d", ShiaiTime / 60, ShiaiTime % 60]; + + [_ResetButton setHidden: FALSE]; + + _HajimeButton.enabled = NO; + _HajimeButton.title = @"Matte"; + + _IpponRedButton.title = @"Clear"; + + _IpponWhiteButton.enabled = NO; + _OsaekomiRedButton.enabled = NO; + _OsaekomiWhiteButton.enabled = NO; + + [_WazariLabel setHidden: YES]; + [_YukoLabel setHidden: YES]; + [_KokaLabel setHidden: YES]; + + [_WhiteWazariButton setHidden: TRUE]; + [_RedWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; + +} + + +- (void) clearIpponRed +{ + NSLog(@"Cleared Ippon Red @ %d:%02d", ShiaiTime / 60, ShiaiTime % 60); + + isSoremade = NO; + + _HajimeButton.tintColor = [UIColor greenColor]; + _HajimeButton.title = @"Hajime"; + _HajimeButton.enabled = YES; + _Hajime2Button.tintColor = [UIColor greenColor]; + _Hajime2Button.title = @"Hajime"; + + _IpponWhiteButton.enabled = YES; + _IpponRedButton.title = @"Ippon"; + + + [_ResetButton setHidden: FALSE]; + + if (isInPortrait) + { + [_WazariLabel setHidden: NO]; + [_YukoLabel setHidden: NO]; + [_KokaLabel setHidden: NO]; + + [_WhiteWazariButton setHidden: FALSE]; + [_RedWazariButton setHidden: FALSE]; + [_WhiteYukoButton setHidden: FALSE]; + [_RedYukoButton setHidden: FALSE]; + [_WhiteKokaButton setHidden: FALSE]; + [_RedKokaButton setHidden: FALSE]; + } + + self.ShiaiTimerDisplay.textColor = [UIColor whiteColor]; + + self.ShiaiTimerDisplay.text = [NSString stringWithFormat:@"%d:%02d", ShiaiTime / 60, ShiaiTime % 60]; +} + + + + +- (IBAction)ipponRed:(UIBarButtonItem *)sender +{ + if([_IpponRedButton.title isEqualToString: @"Clear"]) + { + [self clearIpponRed]; + } + else { + [self doIpponRed]; + } +} + + + + + +- (IBAction)wazariWhite:(UIButton *)sender +{ + [self incrementWhiteScore]; + [self incrementWhiteScore]; + [self incrementWhiteScore]; + [self incrementWhiteScore]; + + NSLog(@"White score +4 is %d", WhiteScore); +} + + +- (IBAction)wazariRed:(UIButton *)sender +{ + [self incrementRedScore]; + [self incrementRedScore]; + [self incrementRedScore]; + [self incrementRedScore]; + + NSLog(@"Red score +4 is %d", RedScore); +} + + + +- (IBAction)yukoWhite:(UIButton *)sender +{ + [self incrementWhiteScore]; + [self incrementWhiteScore]; + + NSLog(@"White score +2 is %d", WhiteScore); +} + + +- (IBAction)yukoRed:(UIButton *)sender +{ + [self incrementRedScore]; + [self incrementRedScore]; + + NSLog(@"Red score +2 is %d", RedScore); +} + + + +- (IBAction)kokaWhite:(UIButton *)sender +{ + [self incrementWhiteScore]; + + NSLog(@"White score +1 is %d", WhiteScore); +} + + +- (IBAction)kokaRed:(UIButton *)sender +{ + [self incrementRedScore]; + + NSLog(@"Red score +1 is %d", RedScore); +} + + + +-(void) matte +{ + isSoremade = NO; + isMatte = YES; + + [_FSJToolbar setHidden: TRUE]; + [_ScoreboardToolbar setHidden: FALSE]; + + [_FreestyleJudoButton setUserInteractionEnabled:TRUE]; + + [_ResetButton setHidden: FALSE]; + + _IpponRedButton.enabled = NO; + _IpponWhiteButton.enabled = NO; + _OsaekomiRedButton.enabled = NO; + _OsaekomiWhiteButton.enabled = NO; + + [_WazariLabel setHidden: YES]; + [_YukoLabel setHidden: YES]; + [_KokaLabel setHidden: YES]; + + [_WhiteWazariButton setHidden: TRUE]; + [_RedWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; + + [ShiaiTimer invalidate]; + [RedOsaekomiTimer invalidate]; + [WhiteOsaekomiTimer invalidate]; + [BreakTimer invalidate]; + + + if (isMusicControlEnabled) + { + if (_MusicPlayer.playbackState == MPMusicPlaybackStatePlaying) + { + [_MusicPlayer pause]; + } + } +} + + + +-(void) hajime +{ + [_FreestyleJudoButton setUserInteractionEnabled:FALSE]; + + [_ResetButton setHidden: TRUE]; + + [_FSJToolbar setHidden: TRUE]; + [_ScoreboardToolbar setHidden: FALSE]; + + + _IpponRedButton.enabled = YES; + _IpponWhiteButton.enabled = YES; + + + if (isInPortrait) + { + [_WazariLabel setHidden: NO]; + [_YukoLabel setHidden: NO]; + [_KokaLabel setHidden: NO]; + + [_WhiteWazariButton setHidden: FALSE]; + [_RedWazariButton setHidden: FALSE]; + [_WhiteYukoButton setHidden: FALSE]; + [_RedYukoButton setHidden: FALSE]; + [_WhiteKokaButton setHidden: FALSE]; + [_RedKokaButton setHidden: FALSE]; + } + + isSoremade = NO; + isMatte = NO; + + ShiaiTimer = [NSTimer scheduledTimerWithTimeInterval: 1 target: self selector:@selector(countDown) userInfo:nil repeats:YES]; + + if (isWhiteOsaekomi) + { + WhiteOsaekomiTimer = [NSTimer scheduledTimerWithTimeInterval: 1 target: self selector:@selector(countUpWhite) userInfo:nil repeats:YES]; + + _OsaekomiRedButton.enabled = YES; + + } + else if (isRedOsaekomi) { + RedOsaekomiTimer = [NSTimer scheduledTimerWithTimeInterval: 1 target: self selector:@selector(countUpRed) userInfo:nil repeats:YES]; + + _OsaekomiWhiteButton.enabled = YES; + } + else { + _OsaekomiWhiteButton.enabled = YES; + _OsaekomiRedButton.enabled = YES; + } + + if ((RedToketaTime == 0) && (WhiteToketaTime == 0)) + { + [_RedOsaekomiTimerDisplay setHidden: !isRedOsaekomi]; + [_WhiteOsaekomiTimerDisplay setHidden: !isWhiteOsaekomi]; + } + + self.WhiteScoreDisplay.text = [NSString stringWithFormat:@"%d", WhiteScore]; + self.RedScoreDisplay.text = [NSString stringWithFormat:@"%d", RedScore]; + + + if (isMusicControlEnabled) + { + [_MusicPlayer play]; + } +} + + +- (IBAction)doHajime:(UIBarButtonItem *)sender +{ + isInPortrait = UIDeviceOrientationIsPortrait([[UIDevice currentDevice] orientation]); + isInLandscape = !isInPortrait; + + + AudioServicesPlaySystemSound(KEYPRESSED); + + if([_HajimeButton.title isEqualToString: @"Matte"]) + { + //Do your stuff; + + NSLog(@"Matte"); + + [self matte]; + + _HajimeButton.tintColor = [UIColor greenColor]; + _HajimeButton.title = @"Hajime"; + _Hajime2Button.tintColor = [UIColor greenColor]; + _Hajime2Button.title = @"Hajime"; + } + else { + //Do your stuff; + + NSLog(@"Hajime"); + + [self hajime]; + + _HajimeButton.tintColor = [UIColor blueColor]; + _HajimeButton.title = @"Matte"; + _Hajime2Button.tintColor = [UIColor blueColor]; + _Hajime2Button.title = @"Matte"; + + } +} + + + + + +-(void) stopBreak +{ + isBreakTime = NO; + + _AudioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] + pathForResource:@"single_bell" ofType:@"mp3"]] error:NULL]; + [_AudioPlayer play]; + + [BreakTimer invalidate]; + + BreakTime = InitialBreakTime; + + [_FSJToolbar setHidden: TRUE]; + [_ScoreboardToolbar setHidden: FALSE]; + + [_FreestyleJudoButton setUserInteractionEnabled:TRUE]; + + [_ResetButton setHidden: FALSE]; + + _IpponRedButton.enabled = NO; + _IpponWhiteButton.enabled = NO; + _OsaekomiRedButton.enabled = NO; + _OsaekomiWhiteButton.enabled = NO; + + [_WazariLabel setHidden: YES]; + [_YukoLabel setHidden: YES]; + [_KokaLabel setHidden: YES]; + + [_WhiteWazariButton setHidden: TRUE]; + [_RedWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; + + [BreakTimer invalidate]; + [ShiaiTimer invalidate]; + [RedOsaekomiTimer invalidate]; + [WhiteOsaekomiTimer invalidate]; + + [self reset]; + + _HajimeButton.tintColor = [UIColor blueColor]; + _HajimeButton.title = @"Matte"; + _Hajime2Button.tintColor = [UIColor blueColor]; + _Hajime2Button.title = @"Matte"; + + _HajimeButton.enabled = YES; + + + NSLog(@"Hajime!"); + + self.ShiaiTimerDisplay.text = @"Hajime"; + [self hajime]; + +} + + + +-(void) startBreak +{ + isBreakTime = YES; + + [_FreestyleJudoButton setUserInteractionEnabled:FALSE]; + + [_ResetButton setHidden: FALSE]; + + [_FSJToolbar setHidden: FALSE]; + [_ScoreboardToolbar setHidden: TRUE]; + + + isSoremade = YES; + isMatte = YES; + + [_WazariLabel setHidden: YES]; + [_YukoLabel setHidden: YES]; + [_KokaLabel setHidden: YES]; + + [_WhiteWazariButton setHidden: TRUE]; + [_RedWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; + + BreakTimer = [NSTimer scheduledTimerWithTimeInterval: 1 target: self selector:@selector(rest) userInfo:nil repeats:YES]; + + self.WhiteScoreDisplay.text = [NSString stringWithFormat:@"%d", WhiteScore]; + self.RedScoreDisplay.text = [NSString stringWithFormat:@"%d", RedScore]; + + +} + + + + +- (void) rest { + + BreakTime--; + + if (BreakTime < 0) BreakTime = 0; + + if (isMusicControlEnabled) + { + if (BreakTime == (InitialBreakTime - 2)) + { + [_MusicPlayer play]; + } + } + + NSLog(@"Ready in %d:%02d", BreakTime / 60, BreakTime % 60); + + if (BreakTime <= 5) AudioServicesPlaySystemSound(TOCK); + + _HajimeButton.tintColor = [UIColor blueColor]; + _HajimeButton.title = @"Matte"; + _Hajime2Button.tintColor = [UIColor blueColor]; + _Hajime2Button.title = @"Matte"; + _HajimeButton.enabled = YES; + + self.ShiaiTimerDisplay.text = [NSString stringWithFormat:@"Ready in :%02d", BreakTime % 60]; + + if (BreakTime <= 0) + { + NSLog(@"Ready."); + self.ShiaiTimerDisplay.text = @"Ready"; + + [self stopBreak]; + + } +} + + + + +- (void) reset { + + isSoremade = YES; + isMatte = YES; + isRedOsaekomi = NO; + isWhiteOsaekomi = NO; + isBreakTime = NO; + + [ShiaiTimer invalidate]; + ShiaiTime = InitialShiaiTime; + + [RedOsaekomiTimer invalidate]; + RedOsaekomiTime = 0; + RedToketaTime = 0; + + [WhiteOsaekomiTimer invalidate]; + WhiteOsaekomiTime = 0; + WhiteToketaTime = 0; + + [BreakTimer invalidate]; + + RedJudokaName = @"Red"; + WhiteJudokaName = @"White"; + + self.RedTextField.text = RedJudokaName; + self.WhiteTextField.text = WhiteJudokaName; + + self.ShiaiTimerDisplay.text = [NSString stringWithFormat:@"%02d:%02d", ShiaiTime / 60, ShiaiTime % 60]; + + self.WhiteOsaekomiTimerDisplay.text = [NSString stringWithFormat:@":%02d", WhiteOsaekomiTime]; + self.RedOsaekomiTimerDisplay.text = [NSString stringWithFormat:@":%02d", RedOsaekomiTime]; + + RedScore = 0; + WhiteScore = 0; + + self.RedScoreDisplay.text = @"00"; + self.WhiteScoreDisplay.text = @"00"; + + + _RedOsaekomiTimerDisplay.textColor = [UIColor grayColor]; + + [_RedOsaekomiTimerDisplay setHidden: FALSE]; + _WhiteOsaekomiTimerDisplay.textColor = [UIColor grayColor]; + + [_WhiteOsaekomiTimerDisplay setHidden: FALSE]; + + [self updateTime]; + + + _HajimeButton.tintColor = [UIColor greenColor]; + _HajimeButton.title = @"Hajime"; + _Hajime2Button.tintColor = [UIColor greenColor]; + _Hajime2Button.title = @"Hajime"; + _HajimeButton.enabled = YES; + + + _IpponWhiteButton.title = @"Ippon"; + _IpponRedButton.title = @"Ippon"; + _OsaekomiWhiteButton.title = @"Osaekomi"; + _OsaekomiRedButton.title = @"Osaekomi"; + + [_FSJToolbar setHidden: FALSE]; + [_ScoreboardToolbar setHidden: TRUE]; + + _IpponRedButton.enabled = NO; + _IpponWhiteButton.enabled = NO; + _OsaekomiRedButton.enabled = NO; + _OsaekomiWhiteButton.enabled = NO; + + [_WazariLabel setHidden: YES]; + [_YukoLabel setHidden: YES]; + [_KokaLabel setHidden: YES]; + + [_WhiteWazariButton setHidden: TRUE]; + [_RedWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; + +} + + + +- (IBAction)doReset:(UIButton *)sender { + + isInPortrait = UIDeviceOrientationIsPortrait([[UIDevice currentDevice] orientation]); + isInLandscape = !isInPortrait; + + NSLog(@"Reset"); + + [self reset]; + + if (isMusicControlEnabled) + { + if (_MusicPlayer.playbackState == MPMusicPlaybackStatePaused) + { + [_MusicPlayer skipToNextItem]; + } + } +} + + + + + + + + + + +- (void) countDown { + + ShiaiTime--; + + if (ShiaiTime < 0) ShiaiTime = 0; + + [self updateTime]; + + if (RedToketaTime) + if (ShiaiTime < (RedToketaTime - 15)) + [_RedOsaekomiTimerDisplay setHidden: TRUE]; + if (WhiteToketaTime) + if (ShiaiTime < (WhiteToketaTime - 15)) + [_WhiteOsaekomiTimerDisplay setHidden: TRUE]; + + if ((RedToketaTime == 0) && (WhiteToketaTime == 0)) + { + [_RedOsaekomiTimerDisplay setHidden: !isRedOsaekomi]; + [_WhiteOsaekomiTimerDisplay setHidden: !isWhiteOsaekomi]; + } + + + if (isMusicControlEnabled) + { + if (ShiaiTime == (InitialShiaiTime - 2)) + { + [_MusicPlayer play]; + } + } + + + if ((RedScore - SUPERIORDECISIONPOINTS) >= WhiteScore) + { + NSLog(@"Superior Decision Red @ %d:%02d", ShiaiTime / 60, ShiaiTime % 60); + + if (isMusicControlEnabled) + { + [_MusicPlayer pause]; + } + + _AudioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] + pathForResource:@"buzzer" ofType:@"mp3"]] error:NULL]; + [_AudioPlayer play]; + + + AudioServicesPlaySystemSound(VIBRATE); + + [ShiaiTimer invalidate]; + [RedOsaekomiTimer invalidate]; + [WhiteOsaekomiTimer invalidate]; + + isSoremade = YES; + isMatte = YES; + isRedOsaekomi = NO; + isWhiteOsaekomi = NO; + + self.ShiaiTimerDisplay.textColor = [UIColor redColor]; + + self.ShiaiTimerDisplay.text = [NSString stringWithFormat:@"Decision %d:%02d", ShiaiTime / 60, ShiaiTime % 60]; + + [_ResetButton setHidden: FALSE]; + + _HajimeButton.tintColor = [UIColor greenColor]; + _HajimeButton.title = @"Hajime"; + _Hajime2Button.tintColor = [UIColor greenColor]; + _Hajime2Button.title = @"Hajime"; + _HajimeButton.enabled = YES; + + _IpponWhiteButton.enabled = NO; + _OsaekomiRedButton.enabled = NO; + _OsaekomiWhiteButton.enabled = NO; + + [_WazariLabel setHidden: YES]; + [_YukoLabel setHidden: YES]; + [_KokaLabel setHidden: YES]; + + [_WhiteWazariButton setHidden: TRUE]; + [_RedWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; + } + + + + if ((WhiteScore - SUPERIORDECISIONPOINTS) >= RedScore) + { + NSLog(@"Superior Decision White @ %d:%02d", ShiaiTime / 60, ShiaiTime % 60); + + if (isMusicControlEnabled) + { + [_MusicPlayer pause]; + } + + _AudioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] + pathForResource:@"buzzer" ofType:@"mp3"]] error:NULL]; + [_AudioPlayer play]; + + AudioServicesPlaySystemSound(VIBRATE); + + [ShiaiTimer invalidate]; + [RedOsaekomiTimer invalidate]; + [WhiteOsaekomiTimer invalidate]; + + isSoremade = YES; + isMatte = YES; + isRedOsaekomi = NO; + isWhiteOsaekomi = NO; + + self.ShiaiTimerDisplay.textColor = [UIColor whiteColor]; + + self.ShiaiTimerDisplay.text = [NSString stringWithFormat:@"Decision %d:%02d", ShiaiTime / 60, ShiaiTime % 60]; + + [_ResetButton setHidden: FALSE]; + + + _HajimeButton.tintColor = [UIColor greenColor]; + _HajimeButton.title = @"Hajime"; + _Hajime2Button.tintColor = [UIColor greenColor]; + _Hajime2Button.title = @"Hajime"; + _HajimeButton.enabled = YES; + + _IpponRedButton.enabled = NO; + _OsaekomiRedButton.enabled = NO; + _OsaekomiWhiteButton.enabled = NO; + + [_WazariLabel setHidden: YES]; + [_YukoLabel setHidden: YES]; + [_KokaLabel setHidden: YES]; + + [_WhiteWazariButton setHidden: TRUE]; + [_RedWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; + } + + + if (ShiaiTime <= 10) AudioServicesPlaySystemSound(TOCK); + + + + if (ShiaiTime <= 0) + { + NSLog(@"Soremade"); + + _AudioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] + pathForResource:@"buzzer" ofType:@"mp3"]] error:NULL]; + [_AudioPlayer play]; + + isSoremade = YES; + isMatte = YES; + + [ShiaiTimer invalidate]; + + isRedOsaekomi = NO; + [RedOsaekomiTimer invalidate]; + RedOsaekomiTime = 0; + + isWhiteOsaekomi = NO; + [WhiteOsaekomiTimer invalidate]; + WhiteOsaekomiTime = 0; + + self.ShiaiTimerDisplay.text = @"Soremade"; + + [_ResetButton setHidden: FALSE]; + + + _IpponRedButton.enabled = NO; + _IpponWhiteButton.enabled = NO; + _OsaekomiRedButton.enabled = NO; + _OsaekomiWhiteButton.enabled = NO; + + [_WazariLabel setHidden: YES]; + [_YukoLabel setHidden: YES]; + [_KokaLabel setHidden: YES]; + + [_WhiteWazariButton setHidden: TRUE]; + [_RedWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; + + + if (isIntervalTimerEnabled) + { + isSoremade = YES; + isMatte = YES; + isRedOsaekomi = NO; + isWhiteOsaekomi = NO; + + _HajimeButton.tintColor = [UIColor blueColor]; + _HajimeButton.title = @"Matte"; + _Hajime2Button.tintColor = [UIColor blueColor]; + _Hajime2Button.title = @"Matte"; + _HajimeButton.enabled = YES; + + NSLog(@"Next Round"); + self.ShiaiTimerDisplay.text = @"Next Round"; + + [self startBreak]; + } + else { + + _HajimeButton.tintColor = [UIColor greenColor]; + _HajimeButton.title = @"Hajime"; + _Hajime2Button.tintColor = [UIColor greenColor]; + _Hajime2Button.title = @"Hajime"; + _HajimeButton.enabled = YES; + + if (isMusicControlEnabled) + { + if (_MusicPlayer.playbackState == MPMusicPlaybackStatePlaying) + { + [_MusicPlayer pause]; + } + } + + } + } +} + + + +- (void) countUpRed +{ + RedOsaekomiTime++; + + if (RedOsaekomiTime > 30) RedOsaekomiTime = 30; + + self.RedOsaekomiTimerDisplay.text = [NSString stringWithFormat:@"Osaekomi :%02d", RedOsaekomiTime]; + + NSLog(@"Red OsaekomiTime = :%02d", RedOsaekomiTime); + + if (RedOsaekomiTime == ONEPOINT) + { + if (isAutoScoreOsaekomiEnabled) [self incrementRedScore]; // Add one. + + self.RedOsaekomiTimerDisplay.textColor = [UIColor redColor]; + AudioServicesPlaySystemSound(TINK1); + } + + if (RedOsaekomiTime == TWOPOINTS) + { + if (isAutoScoreOsaekomiEnabled) + { + // Add another one. Total is two. + [self incrementRedScore]; + } + + AudioServicesPlaySystemSound(TINK1); + } + + if (RedOsaekomiTime == FOURPOINTS) + { + if (isAutoScoreOsaekomiEnabled) + { + // Add two more. Total is four. + [self incrementRedScore]; + [self incrementRedScore]; + } + + AudioServicesPlaySystemSound(TINK1); + sleepms(100); + AudioServicesPlaySystemSound(TINK1); + } + + if (RedOsaekomiTime == IPPONTIME) + { + AudioServicesPlaySystemSound(TINK1); + sleepms(100); + AudioServicesPlaySystemSound(TINK1); + sleepms(100); + AudioServicesPlaySystemSound(TINK1); + + if (isIpponForOsaekomiEnabled) [self doIpponRed]; + } + + + if (RedOsaekomiTime >= 30) + { + [RedOsaekomiTimer invalidate]; + + RedToketaTime = ShiaiTime; + isRedOsaekomi = NO; + + _OsaekomiWhiteButton.title = @"Osaekomi"; + _OsaekomiRedButton.title = @"Osaekomi"; + + _OsaekomiWhiteButton.enabled = YES; + _OsaekomiRedButton.enabled = YES; + + _IpponWhiteButton.enabled = YES; + + if (isInPortrait) + { + [_WhiteWazariButton setHidden: FALSE]; + [_WhiteYukoButton setHidden: FALSE]; + [_WhiteKokaButton setHidden: FALSE]; + } + } +} + + +- (void) countUpWhite +{ + WhiteOsaekomiTime++; + + if (WhiteOsaekomiTime > 30) WhiteOsaekomiTime = 30; + + self.WhiteOsaekomiTimerDisplay.text = [NSString stringWithFormat:@"Osaekomi :%02d", WhiteOsaekomiTime]; + + NSLog(@"White OsaekomiTime = :%02d", WhiteOsaekomiTime); + + if (WhiteOsaekomiTime == ONEPOINT) + { + if (isAutoScoreOsaekomiEnabled) [self incrementWhiteScore]; // Add one. + + self.WhiteOsaekomiTimerDisplay.textColor = [UIColor whiteColor]; + AudioServicesPlaySystemSound(TINK1); + } + + if (WhiteOsaekomiTime == TWOPOINTS) + { + if (isAutoScoreOsaekomiEnabled) + { + // Add another one. Total is two. + [self incrementWhiteScore]; + } + + AudioServicesPlaySystemSound(TINK1); + } + + if (WhiteOsaekomiTime == FOURPOINTS) + { + if (isAutoScoreOsaekomiEnabled) + { + // Add two more. Total is four. + [self incrementWhiteScore]; + [self incrementWhiteScore]; + } + + AudioServicesPlaySystemSound(TINK1); + sleepms(100); + AudioServicesPlaySystemSound(TINK1); + } + + if (WhiteOsaekomiTime == IPPONTIME) + { + AudioServicesPlaySystemSound(TINK1); + sleepms(100); + AudioServicesPlaySystemSound(TINK1); + sleepms(100); + AudioServicesPlaySystemSound(TINK1); + + if (isIpponForOsaekomiEnabled) [self doIpponWhite]; + } + + + if (WhiteOsaekomiTime >= 30) + { + [WhiteOsaekomiTimer invalidate]; + + WhiteToketaTime = ShiaiTime; + isWhiteOsaekomi = NO; + + _OsaekomiWhiteButton.title = @"Osaekomi"; + _OsaekomiRedButton.title = @"Osaekomi"; + + _OsaekomiWhiteButton.enabled = YES; + _OsaekomiRedButton.enabled = YES; + + _IpponRedButton.enabled = YES; + + if (isInPortrait) + { + [_RedWazariButton setHidden: FALSE]; + [_RedYukoButton setHidden: FALSE]; + [_RedKokaButton setHidden: FALSE]; + } + } +} + + +- (IBAction)doWhiteOsaekomi:(UIBarButtonItem *)sender +{ + // Caution, this logic is BASS-ACKWARDS on purpose!!! + + if ([_OsaekomiWhiteButton.title isEqualToString: @"Toketa"]) + { + //Do your stuff; + + NSLog(@"Toketa Red"); + + self.RedOsaekomiTimerDisplay.text = [NSString stringWithFormat:@"Toketa :%02d", RedOsaekomiTime]; + + isRedOsaekomi = FALSE; + [RedOsaekomiTimer invalidate]; + RedOsaekomiTime = 0; + RedToketaTime = ShiaiTime; + + _OsaekomiRedButton.enabled = YES; + _OsaekomiWhiteButton.enabled = YES; + + _IpponWhiteButton.enabled = YES; + + if (isInPortrait) + { + [_WhiteWazariButton setHidden: FALSE]; + [_WhiteYukoButton setHidden: FALSE]; + [_WhiteKokaButton setHidden: FALSE]; + } + + _OsaekomiWhiteButton.title = @"Osaekomi"; + _OsaekomiRedButton.title = @"Osaekomi"; + } + else { + //Do your stuff; + + NSLog(@"Osaekomi White"); + + isWhiteOsaekomi = TRUE; + [RedOsaekomiTimer invalidate]; + WhiteOsaekomiTime = 0; + WhiteToketaTime = 0; + + WhiteOsaekomiTimer = [NSTimer scheduledTimerWithTimeInterval: 1 target: self selector:@selector(countUpWhite) userInfo:nil repeats:YES]; + + _OsaekomiRedButton.enabled = YES; + _OsaekomiWhiteButton.enabled = NO; + + _IpponRedButton.enabled = YES; + + + [_RedWazariButton setHidden: TRUE]; + [_RedYukoButton setHidden: TRUE]; + [_RedKokaButton setHidden: TRUE]; + + + self.WhiteOsaekomiTimerDisplay.textColor = [UIColor grayColor]; + self.WhiteOsaekomiTimerDisplay.text = [NSString stringWithFormat:@"Osaekomi :%02d", WhiteOsaekomiTime]; + [_WhiteOsaekomiTimerDisplay setHidden: !isWhiteOsaekomi]; + + _OsaekomiWhiteButton.title = @"Toketa"; + _OsaekomiRedButton.title = @"Toketa"; + } + +} + + +- (IBAction)doRedOsaekomi:(UIBarButtonItem *)sender +{ + // Caution, this logic is BASS-ACKWARDS on purpose!!! + + if ([_OsaekomiRedButton.title isEqualToString: @"Toketa"]) + { + //Do your stuff; + + NSLog(@"Toketa White"); + + self.WhiteOsaekomiTimerDisplay.text = [NSString stringWithFormat:@"Toketa :%02d", WhiteOsaekomiTime]; + + isWhiteOsaekomi = FALSE; + [WhiteOsaekomiTimer invalidate]; + WhiteOsaekomiTime = 0; + WhiteToketaTime = ShiaiTime; + + _OsaekomiRedButton.enabled = YES; + _OsaekomiWhiteButton.enabled = YES; + + _IpponRedButton.enabled = YES; + + if (isInPortrait) + { + [_RedWazariButton setHidden: FALSE]; + [_RedYukoButton setHidden: FALSE]; + [_RedKokaButton setHidden: FALSE]; + } + + _OsaekomiRedButton.title = @"Osaekomi"; + _OsaekomiWhiteButton.title = @"Osaekomi"; + } + else { + //Do your stuff; + + NSLog(@"Osaekomi Red"); + + isRedOsaekomi = TRUE; + [WhiteOsaekomiTimer invalidate]; + RedOsaekomiTime = 0; + RedToketaTime = 0; + + RedOsaekomiTimer = [NSTimer scheduledTimerWithTimeInterval: 1 target: self selector:@selector(countUpRed) userInfo:nil repeats:YES]; + + _OsaekomiWhiteButton.enabled = YES; + _OsaekomiRedButton.enabled = NO; + + _IpponWhiteButton.enabled = YES; + + [_WhiteWazariButton setHidden: TRUE]; + [_WhiteYukoButton setHidden: TRUE]; + [_WhiteKokaButton setHidden: TRUE]; + + self.RedOsaekomiTimerDisplay.textColor = [UIColor grayColor]; + self.RedOsaekomiTimerDisplay.text = [NSString stringWithFormat:@"Osaekomi :%02d", RedOsaekomiTime]; + [_RedOsaekomiTimerDisplay setHidden: !isRedOsaekomi]; + + _OsaekomiRedButton.title = @"Toketa"; + _OsaekomiWhiteButton.title = @"Toketa"; + } +} + + + +- (void) textFieldDidEndEditing:(UITextField *) textField +{ + [textField resignFirstResponder]; +} + + + +- (BOOL) textFieldShouldReturn:(UITextField *)textField +{ + [textField resignFirstResponder]; + return YES; +} + + + +@end + + diff --git a/Freestyle Judo/FSJWebViewController.h b/Freestyle Judo/FSJWebViewController.h new file mode 100644 index 0000000..cf51625 --- /dev/null +++ b/Freestyle Judo/FSJWebViewController.h @@ -0,0 +1,17 @@ +// +// FSJWebViewController.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + +@interface FSJWebViewController : UIViewController +@property (weak, nonatomic) IBOutlet UIWebView *webView; + +@property (weak, nonatomic) IBOutlet UIToolbar *FSJWebToolbar; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; + +@end diff --git a/Freestyle Judo/FSJWebViewController.m b/Freestyle Judo/FSJWebViewController.m new file mode 100644 index 0000000..c1a0364 --- /dev/null +++ b/Freestyle Judo/FSJWebViewController.m @@ -0,0 +1,85 @@ +// +// FSJWebViewController.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "FSJWebViewController.h" + + +@implementation FSJWebViewController + +@synthesize webView = _webView; + +@synthesize FSJWebToolbar = _FSJWebToolbar; +@synthesize DoneButton = _DoneButton; + + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + self.webView.scalesPageToFit = YES; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.freestylejudo.org"]]]; +} + + +- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation +{ + return YES; +} + + +- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request + navigationType:(UIWebViewNavigationType)navigationType { + if (request.URL == [NSURL URLWithString:@"http://www.freestylejudo.org"]) { + //do close window magic here!! + return NO; + } + return YES; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. + +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + + +- (IBAction)done:(UIBarButtonItem *)sender { + [self dismissViewControllerAnimated:YES completion:nil]; +} + +//@implementation FSJWebViewController +// +//- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +//{ +// self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; +// if (self) { +// // Custom initialization +// } +// return self; +//} +// +//- (void)viewDidLoad +//{ +// [super viewDidLoad]; +// // Do any additional setup after loading the view. +//} +// +//- (void)didReceiveMemoryWarning +//{ +// [super didReceiveMemoryWarning]; +// // Dispose of any resources that can be recreated. +//} + +@end diff --git a/Freestyle Judo/Freestyle Judo-Info.plist b/Freestyle Judo/Freestyle Judo-Info.plist new file mode 100644 index 0000000..66eda4f --- /dev/null +++ b/Freestyle Judo/Freestyle Judo-Info.plist @@ -0,0 +1,56 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIcons + + CFBundleIcons~ipad + + CFBundleIdentifier + com.binary-systems.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + MainStoryboard_iPhone + UIMainStoryboardFile~ipad + MainStoryboard_iPad + UIRequiredDeviceCapabilities + + armv7 + + UIStatusBarStyle + UIStatusBarStyleDefault + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Freestyle Judo/Freestyle Judo-Prefix.pch b/Freestyle Judo/Freestyle Judo-Prefix.pch new file mode 100644 index 0000000..3326109 --- /dev/null +++ b/Freestyle Judo/Freestyle Judo-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'Freestyle Judo' target in the 'Freestyle Judo' project +// + +#import + +#ifndef __IPHONE_5_0 +#warning "This project uses features only available in iOS SDK 5.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/Freestyle Judo/Freestyle-Judo-Logo B&W.jpg b/Freestyle Judo/Freestyle-Judo-Logo B&W.jpg new file mode 100644 index 0000000..b830681 Binary files /dev/null and b/Freestyle Judo/Freestyle-Judo-Logo B&W.jpg differ diff --git a/Freestyle Judo/Images.xcassets/.DS_Store b/Freestyle Judo/Images.xcassets/.DS_Store new file mode 100644 index 0000000..c2e322c Binary files /dev/null and b/Freestyle Judo/Images.xcassets/.DS_Store differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/Contents.json b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..adf86b3 --- /dev/null +++ b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,104 @@ +{ + "images" : [ + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "FSJ Icon 29pt 1x-1.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "FSJ Icon 29pt 2x-1.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "FSJ Icon 40pt 2x.png", + "scale" : "2x" + }, + { + "size" : "57x57", + "idiom" : "iphone", + "filename" : "FSJ Icon 57pt 1x.png", + "scale" : "1x" + }, + { + "size" : "57x57", + "idiom" : "iphone", + "filename" : "FSJ Icon 57pt x2.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "FSJ Icon 60pt x2.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "FSJ Icon 29pt 1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "FSJ Icon 29pt 2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "FSJ Icon 40pt 1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "FSJ Icon 40pt 2x-1.png", + "scale" : "2x" + }, + { + "size" : "50x50", + "idiom" : "ipad", + "filename" : "FSJ Icon 50pt 1x.png", + "scale" : "1x" + }, + { + "size" : "50x50", + "idiom" : "ipad", + "filename" : "FSJ Icon 50pt x2.png", + "scale" : "2x" + }, + { + "size" : "72x72", + "idiom" : "ipad", + "filename" : "FSJ Icon 72pt 1x.png", + "scale" : "1x" + }, + { + "size" : "72x72", + "idiom" : "ipad", + "filename" : "FSJ Icon 72pt x2.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "FSJ Icon 76pt 1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "FSJ Icon 76pt x2.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 1x-1.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 1x-1.png new file mode 100644 index 0000000..99e89f4 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 1x-1.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 1x.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 1x.png new file mode 100644 index 0000000..99e89f4 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 1x.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 2x-1.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 2x-1.png new file mode 100644 index 0000000..3b3cedc Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 2x-1.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 2x.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 2x.png new file mode 100644 index 0000000..3b3cedc Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 29pt 2x.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 40pt 1x.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 40pt 1x.png new file mode 100644 index 0000000..c86925e Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 40pt 1x.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 40pt 2x-1.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 40pt 2x-1.png new file mode 100644 index 0000000..ab9f7b1 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 40pt 2x-1.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 40pt 2x.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 40pt 2x.png new file mode 100644 index 0000000..ab9f7b1 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 40pt 2x.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 50pt 1x.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 50pt 1x.png new file mode 100644 index 0000000..f1254cb Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 50pt 1x.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 50pt x2.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 50pt x2.png new file mode 100644 index 0000000..316d4ac Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 50pt x2.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 57pt 1x.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 57pt 1x.png new file mode 100644 index 0000000..e12584b Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 57pt 1x.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 57pt x2.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 57pt x2.png new file mode 100644 index 0000000..d39ed20 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 57pt x2.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 60pt x2.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 60pt x2.png new file mode 100644 index 0000000..eaf7609 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 60pt x2.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 72pt 1x.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 72pt 1x.png new file mode 100644 index 0000000..0fe4596 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 72pt 1x.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 72pt x2.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 72pt x2.png new file mode 100644 index 0000000..db5a385 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 72pt x2.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 76pt 1x.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 76pt 1x.png new file mode 100644 index 0000000..50eb35d Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 76pt 1x.png differ diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 76pt x2.png b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 76pt x2.png new file mode 100644 index 0000000..5f9b359 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/FSJ Icon 76pt x2.png differ diff --git a/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Contents.json b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..bb1842e --- /dev/null +++ b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,103 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Legrand Seoi Nage - Freestyle Judo - 640 x 960-1.png", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "retina4", + "filename" : "Legrand Seoi Nage - Freestyle Judo - 640 x 1136.png", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Legrand Seoi Nage - Freestyle Judo - 768 x 1024.png", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Legrand Tomoe Nage - Freestyle Judo - 1024 x 768.png", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Legrand Seoi Nage - Freestyle Judo - 1536 x 2048.png", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Legrand Tomoe Nage - Freestyle Judo - 2048 x 1536.png", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "filename" : "Legrand Seoi Nage - Freestyle Judo - 320 x 480.png", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "filename" : "Legrand Seoi Nage - Freestyle Judo - 640 x 960.png", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "filename" : "Legrand Seoi Nage - Freestyle Judo - 640 x 1136-1.png", + "subtype" : "retina4", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 1536 x 2048.png b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 1536 x 2048.png new file mode 100644 index 0000000..c31f3e5 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 1536 x 2048.png differ diff --git a/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 320 x 480.png b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 320 x 480.png new file mode 100644 index 0000000..fb98200 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 320 x 480.png differ diff --git a/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 1136-1.png b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 1136-1.png new file mode 100644 index 0000000..8b5db18 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 1136-1.png differ diff --git a/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 1136.png b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 1136.png new file mode 100644 index 0000000..8b5db18 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 1136.png differ diff --git a/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 960-1.png b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 960-1.png new file mode 100644 index 0000000..0b3daa7 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 960-1.png differ diff --git a/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 960.png b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 960.png new file mode 100644 index 0000000..0b3daa7 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 640 x 960.png differ diff --git a/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 768 x 1024.png b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 768 x 1024.png new file mode 100644 index 0000000..ea653dd Binary files /dev/null and b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Seoi Nage - Freestyle Judo - 768 x 1024.png differ diff --git a/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Tomoe Nage - Freestyle Judo - 1024 x 768.png b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Tomoe Nage - Freestyle Judo - 1024 x 768.png new file mode 100644 index 0000000..dfc3a44 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Tomoe Nage - Freestyle Judo - 1024 x 768.png differ diff --git a/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Tomoe Nage - Freestyle Judo - 2048 x 1536.png b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Tomoe Nage - Freestyle Judo - 2048 x 1536.png new file mode 100644 index 0000000..687ca26 Binary files /dev/null and b/Freestyle Judo/Images.xcassets/LaunchImage.launchimage/Legrand Tomoe Nage - Freestyle Judo - 2048 x 1536.png differ diff --git a/Freestyle Judo/RulesWebViewController.h b/Freestyle Judo/RulesWebViewController.h new file mode 100644 index 0000000..df42fd4 --- /dev/null +++ b/Freestyle Judo/RulesWebViewController.h @@ -0,0 +1,15 @@ +// +// RulesWebViewController.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + +@interface RulesWebViewController : UIViewController +@property (weak, nonatomic) IBOutlet UIWebView *webView; +@property (weak, nonatomic) IBOutlet UIToolbar *HelpToolbar; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; +@end diff --git a/Freestyle Judo/RulesWebViewController.m b/Freestyle Judo/RulesWebViewController.m new file mode 100644 index 0000000..c1e0dae --- /dev/null +++ b/Freestyle Judo/RulesWebViewController.m @@ -0,0 +1,59 @@ +// +// RulesWebViewController.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "RulesWebViewController.h" + + +@implementation RulesWebViewController + +@synthesize webView = _webView; +@synthesize HelpToolbar = _HelpToolbar; +@synthesize DoneButton = _DoneButton; + + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + self.webView.scalesPageToFit = YES; + + NSString *path = [[NSBundle mainBundle] pathForResource:@"FREESTYLE_JUDO_HANDBOOK" ofType:@"pdf"]; + NSURL *targetURL = [NSURL fileURLWithPath:path]; + NSURLRequest *request = [NSURLRequest requestWithURL:targetURL]; + + [_webView loadRequest:request]; + + [self.view addSubview:_webView]; +} + + +- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation +{ + return YES; +} + + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. + +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +- (IBAction)goBack:(UIBarButtonItem *)sender { + [self dismissViewControllerAnimated:YES completion:nil]; +} + + +@end diff --git a/Freestyle Judo/Settings.cpp b/Freestyle Judo/Settings.cpp new file mode 100644 index 0000000..bdc6f55 --- /dev/null +++ b/Freestyle Judo/Settings.cpp @@ -0,0 +1,16 @@ +// +// Settings.cpp +// +// Created by Vincente D'Ingianni on 10/7/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#include "Settings.h" + +bool isMusicControlEnabled = false; + +bool isIntervalTimerEnabled = false; + +bool isAutoScoreOsaekomiEnabled = true; + +bool isIpponForOsaekomiEnabled = false; diff --git a/Freestyle Judo/Settings.h b/Freestyle Judo/Settings.h new file mode 100644 index 0000000..9d59812 --- /dev/null +++ b/Freestyle Judo/Settings.h @@ -0,0 +1,16 @@ +// +// Settings.h +// +// Created by Vincente D'Ingianni on 10/7/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#ifndef __Settings__ +#define __Settings__ + +extern bool isMusicControlEnabled; +extern bool isIntervalTimerEnabled; +extern bool isAutoScoreOsaekomiEnabled; +extern bool isIpponForOsaekomiEnabled; + +#endif /* defined(__Settings__) */ diff --git a/Freestyle Judo/The Judokai - Gi Patch (Black Background).png b/Freestyle Judo/The Judokai - Gi Patch (Black Background).png new file mode 100644 index 0000000..b8e4434 Binary files /dev/null and b/Freestyle Judo/The Judokai - Gi Patch (Black Background).png differ diff --git a/Freestyle Judo/TheJudokaiChannelWebViewController.h b/Freestyle Judo/TheJudokaiChannelWebViewController.h new file mode 100644 index 0000000..9046edf --- /dev/null +++ b/Freestyle Judo/TheJudokaiChannelWebViewController.h @@ -0,0 +1,15 @@ +// +// TheJudokaiChannelWebViewController.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + +@interface TheJudokaiChannelWebViewController : UIViewController +@property (weak, nonatomic) IBOutlet UIWebView *webView; +@property (weak, nonatomic) IBOutlet UIToolbar *Toolbar; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *BackButton; +@end diff --git a/Freestyle Judo/TheJudokaiChannelWebViewController.m b/Freestyle Judo/TheJudokaiChannelWebViewController.m new file mode 100644 index 0000000..823745b --- /dev/null +++ b/Freestyle Judo/TheJudokaiChannelWebViewController.m @@ -0,0 +1,53 @@ +// +// TheJudokaiChannelWebViewController.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "TheJudokaiChannelWebViewController.h" + + +@implementation TheJudokaiChannelWebViewController + +@synthesize webView = _webView; +@synthesize Toolbar = _Toolbar; +@synthesize BackButton = _BackButton; + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + self.webView.scalesPageToFit = YES; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/user/TheJudokaiNetwork"]]]; +} + + +- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation +{ + return YES; +} + + + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. + +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +- (IBAction)goBack:(UIBarButtonItem *)sender { + + [self dismissViewControllerAnimated:YES completion:nil]; +} + + +@end diff --git a/Freestyle Judo/TheJudokaiWebViewController.h b/Freestyle Judo/TheJudokaiWebViewController.h new file mode 100644 index 0000000..ab23d8f --- /dev/null +++ b/Freestyle Judo/TheJudokaiWebViewController.h @@ -0,0 +1,17 @@ +// +// TheJudokaiWebViewController.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + +@interface TheJudokaiWebViewController : UIViewController +@property (weak, nonatomic) IBOutlet UIWebView *webView; + +@property (weak, nonatomic) IBOutlet UIToolbar *TheJudokaiWebToolbar; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; + +@end diff --git a/Freestyle Judo/TheJudokaiWebViewController.m b/Freestyle Judo/TheJudokaiWebViewController.m new file mode 100644 index 0000000..08dab4d --- /dev/null +++ b/Freestyle Judo/TheJudokaiWebViewController.m @@ -0,0 +1,53 @@ +// +// TheJudokaiWebViewController.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "TheJudokaiWebViewController.h" + + +@implementation TheJudokaiWebViewController + +@synthesize webView = _webView; +@synthesize TheJudokaiWebToolbar = _TheJudokaiWebToolbar; +@synthesize DoneButton = _DoneButton; + + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + self.webView.scalesPageToFit = YES; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.judokai.net"]]]; +} + + +- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation +{ + return YES; +} + + + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. + +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +- (IBAction)done:(UIBarButtonItem *)sender { + [self dismissViewControllerAnimated:YES completion:nil]; +} + + +@end diff --git a/Freestyle Judo/WelcomeMatChannelWebViewController.h b/Freestyle Judo/WelcomeMatChannelWebViewController.h new file mode 100644 index 0000000..92ecdcf --- /dev/null +++ b/Freestyle Judo/WelcomeMatChannelWebViewController.h @@ -0,0 +1,15 @@ +// +// WelcomeMatChannelWebViewController.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + +@interface WelcomeMatChannelWebViewController : UIViewController +@property (weak, nonatomic) IBOutlet UIWebView *webView; +@property (weak, nonatomic) IBOutlet UIToolbar *Toolbar; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *BackButton; +@end diff --git a/Freestyle Judo/WelcomeMatChannelWebViewController.m b/Freestyle Judo/WelcomeMatChannelWebViewController.m new file mode 100644 index 0000000..28833d1 --- /dev/null +++ b/Freestyle Judo/WelcomeMatChannelWebViewController.m @@ -0,0 +1,75 @@ +// +// WelcomeMatChannelWebViewController.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "WelcomeMatChannelWebViewController.h" + + +@implementation WelcomeMatChannelWebViewController + +@synthesize webView = _webView; +@synthesize Toolbar = _Toolbar; +@synthesize BackButton = _BackButton; + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + self.webView.scalesPageToFit = YES; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/user/welcomematstevescott"]]]; +} + + +- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation +{ + return YES; +} + + + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. + +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +- (IBAction)goBack:(UIBarButtonItem *)sender { + + [self dismissViewControllerAnimated:YES completion:nil]; +} + +//@implementation FSJWebViewController +// +//- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +//{ +// self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; +// if (self) { +// // Custom initialization +// } +// return self; +//} +// +//- (void)viewDidLoad +//{ +// [super viewDidLoad]; +// // Do any additional setup after loading the view. +//} +// +//- (void)didReceiveMemoryWarning +//{ +// [super didReceiveMemoryWarning]; +// // Dispose of any resources that can be recreated. +//} + +@end diff --git a/Freestyle Judo/WelcomeMatWebViewController.h b/Freestyle Judo/WelcomeMatWebViewController.h new file mode 100644 index 0000000..dfcd3f1 --- /dev/null +++ b/Freestyle Judo/WelcomeMatWebViewController.h @@ -0,0 +1,16 @@ +// +// WelcomenMatWebViewController.h +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + +@interface WelcomeMatWebViewController : UIViewController +@property (weak, nonatomic) IBOutlet UIWebView *webView; +@property (weak, nonatomic) IBOutlet UIToolbar *WelcomeMatWebToolbar; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; + +@end diff --git a/Freestyle Judo/WelcomeMatWebViewController.m b/Freestyle Judo/WelcomeMatWebViewController.m new file mode 100644 index 0000000..35d3551 --- /dev/null +++ b/Freestyle Judo/WelcomeMatWebViewController.m @@ -0,0 +1,77 @@ +// +// WelcomeMatWebViewController.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 10/6/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "WelcomeMatWebViewController.h" + + +@implementation WelcomeMatWebViewController + +@synthesize webView = _webView; +@synthesize WelcomeMatWebToolbar = _WelcomeMatWebToolbar; +@synthesize DoneButton = _DoneButton; + + + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + self.webView.scalesPageToFit = YES; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.welcomematjudoclub.com"]]]; +} + + +- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation +{ + return YES; +} + + + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. + +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + + +- (IBAction)done:(UIBarButtonItem *)sender { + [self dismissViewControllerAnimated:YES completion:nil]; +} + +//@implementation FSJWebViewController +// +//- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +//{ +// self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; +// if (self) { +// // Custom initialization +// } +// return self; +//} +// +//- (void)viewDidLoad +//{ +// [super viewDidLoad]; +// // Do any additional setup after loading the view. +//} +// +//- (void)didReceiveMemoryWarning +//{ +// [super didReceiveMemoryWarning]; +// // Dispose of any resources that can be recreated. +//} + +@end diff --git a/Freestyle Judo/Welcome_Mat_Black_Gold_Logo.jpg b/Freestyle Judo/Welcome_Mat_Black_Gold_Logo.jpg new file mode 100644 index 0000000..cac4cc4 Binary files /dev/null and b/Freestyle Judo/Welcome_Mat_Black_Gold_Logo.jpg differ diff --git a/Freestyle Judo/YouTube-Logo-black-background.png b/Freestyle Judo/YouTube-Logo-black-background.png new file mode 100644 index 0000000..4c98271 Binary files /dev/null and b/Freestyle Judo/YouTube-Logo-black-background.png differ diff --git a/Freestyle Judo/boxing_bell.mp3 b/Freestyle Judo/boxing_bell.mp3 new file mode 100644 index 0000000..a498427 Binary files /dev/null and b/Freestyle Judo/boxing_bell.mp3 differ diff --git a/Freestyle Judo/buzzer.mp3 b/Freestyle Judo/buzzer.mp3 new file mode 100644 index 0000000..754f143 Binary files /dev/null and b/Freestyle Judo/buzzer.mp3 differ diff --git a/Freestyle Judo/en.lproj/InfoPlist.strings b/Freestyle Judo/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Freestyle Judo/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Freestyle Judo/en.lproj/MainStoryboard_iPad.storyboard b/Freestyle Judo/en.lproj/MainStoryboard_iPad.storyboard new file mode 100644 index 0000000..2f84a88 --- /dev/null +++ b/Freestyle Judo/en.lproj/MainStoryboard_iPad.storyboard @@ -0,0 +1,1070 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Freestyle Judo/en.lproj/MainStoryboard_iPhone.storyboard b/Freestyle Judo/en.lproj/MainStoryboard_iPhone.storyboard new file mode 100644 index 0000000..cfe3539 --- /dev/null +++ b/Freestyle Judo/en.lproj/MainStoryboard_iPhone.storyboard @@ -0,0 +1,890 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Freestyle Judo/main.m b/Freestyle Judo/main.m new file mode 100644 index 0000000..bdafaca --- /dev/null +++ b/Freestyle Judo/main.m @@ -0,0 +1,18 @@ +// +// main.m +// Freestyle Judo +// +// Created by Vincente D'Ingianni on 8/11/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + +#import "FSJAppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([FSJAppDelegate class])); + } +} diff --git a/Freestyle Judo/single_bell.mp3 b/Freestyle Judo/single_bell.mp3 new file mode 100644 index 0000000..332cb4b Binary files /dev/null and b/Freestyle Judo/single_bell.mp3 differ diff --git a/Freestyle JudoTests/.DS_Store b/Freestyle JudoTests/.DS_Store new file mode 100644 index 0000000..d5a14b1 Binary files /dev/null and b/Freestyle JudoTests/.DS_Store differ diff --git a/Freestyle JudoTests/Freestyle JudoTests-Info.plist b/Freestyle JudoTests/Freestyle JudoTests-Info.plist new file mode 100644 index 0000000..11eade7 --- /dev/null +++ b/Freestyle JudoTests/Freestyle JudoTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.binary-systems.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Freestyle JudoTests/Freestyle_JudoTests.h b/Freestyle JudoTests/Freestyle_JudoTests.h new file mode 100644 index 0000000..fd3e4f6 --- /dev/null +++ b/Freestyle JudoTests/Freestyle_JudoTests.h @@ -0,0 +1,13 @@ +// +// Freestyle_JudoTests.h +// Freestyle JudoTests +// +// Created by Vincente D'Ingianni on 8/11/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import + +@interface Freestyle_JudoTests : SenTestCase + +@end diff --git a/Freestyle JudoTests/Freestyle_JudoTests.m b/Freestyle JudoTests/Freestyle_JudoTests.m new file mode 100644 index 0000000..569f3e3 --- /dev/null +++ b/Freestyle JudoTests/Freestyle_JudoTests.m @@ -0,0 +1,32 @@ +// +// Freestyle_JudoTests.m +// Freestyle JudoTests +// +// Created by Vincente D'Ingianni on 8/11/13. +// Copyright (c) 2013 Binary Systems, Inc. All rights reserved. +// + +#import "Freestyle_JudoTests.h" + +@implementation Freestyle_JudoTests + +- (void)setUp +{ + [super setUp]; + + // Set-up code here. +} + +- (void)tearDown +{ + // Tear-down code here. + + [super tearDown]; +} + +- (void)testExample +{ + STFail(@"Unit tests are not implemented yet in Freestyle JudoTests"); +} + +@end diff --git a/Freestyle JudoTests/en.lproj/InfoPlist.strings b/Freestyle JudoTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Freestyle JudoTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Freestyle_Judo_Distribution.mobileprovision b/Freestyle_Judo_Distribution.mobileprovision new file mode 100644 index 0000000..e057842 Binary files /dev/null and b/Freestyle_Judo_Distribution.mobileprovision differ