diff --git a/build.gradle b/build.gradle index e6081eb..d54bcd4 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,6 @@ buildscript { + + repositories { mavenLocal() mavenCentral() @@ -6,8 +8,12 @@ buildscript { maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } google() } - dependencies { + classpath 'org.wisepersist:gwt-gradle-plugin:1.0.13' + classpath 'org.gretty:gretty:3.0.2' + classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.12' + + } } @@ -16,8 +22,8 @@ allprojects { version = '1.0' ext { - appName = "ShipsAndGiggles" - gdxVersion = '1.9.14' + appName = "ENG1" + gdxVersion = '1.10.0' roboVMVersion = '2.3.12' box2DLightsVersion = '1.5' ashleyVersion = '1.7.3' @@ -35,25 +41,79 @@ allprojects { } } -project(":core") { +project(":desktop") { apply plugin: "java-library" + dependencies { - api "com.badlogicgames.gdx:gdx:$gdxVersion" - api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion" - api "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion" - api "com.badlogicgames.gdx:gdx-ai:$aiVersion" + implementation project(":core") + api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion" + api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop" + api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop" + api "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-desktop" + api "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop" + api "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion" + api "com.badlogicgames.gdx:gdx-tools:$gdxVersion" + } } -project(":desktop") { +project(":ios") { apply plugin: "java-library" + apply plugin: "robovm" + dependencies { implementation project(":core") - api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion" - api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop" - api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop" - api "com.badlogicgames.gdx:gdx-tools:$gdxVersion" + api "com.mobidevelop.robovm:robovm-rt:$roboVMVersion" + api "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion" + api "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion" + api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios" + api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-ios" + api "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-ios" + api "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios" + api "com.badlogicgames.gdx-controllers:gdx-controllers-ios:$gdxControllersVersion" + } -} \ No newline at end of file +} + +project(":html") { + apply plugin: "java-library" + apply plugin: "gwt" + apply plugin: "war" + apply plugin: "org.gretty" + + + dependencies { + implementation project(":core") + api "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion" + api "com.badlogicgames.gdx:gdx:$gdxVersion:sources" + api "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources" + api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion:sources" + api "com.badlogicgames.gdx:gdx-box2d-gwt:$gdxVersion:sources" + api "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion:sources" + api "com.badlogicgames.ashley:ashley:$ashleyVersion:sources" + api "com.badlogicgames.gdx:gdx-ai:$aiVersion:sources" + api "com.badlogicgames.gdx-controllers:gdx-controllers-core:$gdxControllersVersion:sources" + api "com.badlogicgames.gdx-controllers:gdx-controllers-gwt:$gdxControllersVersion" + api "com.badlogicgames.gdx-controllers:gdx-controllers-gwt:$gdxControllersVersion:sources" + + } +} + +project(":core") { + apply plugin: "java-library" + + + dependencies { + api "com.badlogicgames.gdx:gdx:$gdxVersion" + api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion" + api "com.badlogicgames.gdx:gdx-bullet:$gdxVersion" + api "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion" + api "com.badlogicgames.ashley:ashley:$ashleyVersion" + api "com.badlogicgames.gdx:gdx-freetype:$gdxVersion" + api "com.badlogicgames.gdx:gdx-ai:$aiVersion" + api "com.badlogicgames.gdx-controllers:gdx-controllers-core:$gdxControllersVersion" + + } +} diff --git a/core/assets/models/Black_Flag.png b/core/assets/models/Black_Flag.png new file mode 100644 index 0000000..bf2c5b4 Binary files /dev/null and b/core/assets/models/Black_Flag.png differ diff --git a/core/assets/models/Explosion og.png b/core/assets/models/Explosion og.png new file mode 100644 index 0000000..e10a93e Binary files /dev/null and b/core/assets/models/Explosion og.png differ diff --git a/core/assets/models/Explosion.png b/core/assets/models/Explosion.png new file mode 100644 index 0000000..3f36e42 Binary files /dev/null and b/core/assets/models/Explosion.png differ diff --git a/core/assets/models/attack_icon og.png b/core/assets/models/attack_icon og.png new file mode 100644 index 0000000..927b44f Binary files /dev/null and b/core/assets/models/attack_icon og.png differ diff --git a/core/assets/models/attack_icon.png b/core/assets/models/attack_icon.png new file mode 100644 index 0000000..54a3654 Binary files /dev/null and b/core/assets/models/attack_icon.png differ diff --git a/core/assets/models/background.PNG b/core/assets/models/background.PNG new file mode 100644 index 0000000..4224686 Binary files /dev/null and b/core/assets/models/background.PNG differ diff --git a/core/assets/models/bar.png b/core/assets/models/bar.png new file mode 100644 index 0000000..8733e6b Binary files /dev/null and b/core/assets/models/bar.png differ diff --git a/core/assets/models/burst_icon og.png b/core/assets/models/burst_icon og.png new file mode 100644 index 0000000..1dc4395 Binary files /dev/null and b/core/assets/models/burst_icon og.png differ diff --git a/core/assets/models/burst_icon.png b/core/assets/models/burst_icon.png new file mode 100644 index 0000000..a76610d Binary files /dev/null and b/core/assets/models/burst_icon.png differ diff --git a/core/assets/models/burst_onCoolDown.png b/core/assets/models/burst_onCoolDown.png new file mode 100644 index 0000000..998a892 Binary files /dev/null and b/core/assets/models/burst_onCoolDown.png differ diff --git a/core/assets/models/buttonPress.mp3 b/core/assets/models/buttonPress.mp3 new file mode 100644 index 0000000..6b49dde Binary files /dev/null and b/core/assets/models/buttonPress.mp3 differ diff --git a/core/assets/models/cannonBall.png b/core/assets/models/cannonBall.png new file mode 100644 index 0000000..68bd9f8 Binary files /dev/null and b/core/assets/models/cannonBall.png differ diff --git a/core/assets/models/cannonShot.mp3 b/core/assets/models/cannonShot.mp3 new file mode 100644 index 0000000..ae2c1ca Binary files /dev/null and b/core/assets/models/cannonShot.mp3 differ diff --git a/core/assets/models/castle.png b/core/assets/models/castle.png new file mode 100644 index 0000000..a67ffde Binary files /dev/null and b/core/assets/models/castle.png differ diff --git a/desktop/out/production/resources/models/ship2.png b/core/assets/models/dd.png similarity index 100% rename from desktop/out/production/resources/models/ship2.png rename to core/assets/models/dd.png diff --git a/core/assets/models/download.png b/core/assets/models/download.png deleted file mode 100644 index c042ad4..0000000 Binary files a/core/assets/models/download.png and /dev/null differ diff --git a/core/assets/models/download.tsx b/core/assets/models/download.tsx deleted file mode 100644 index 4522f4c..0000000 --- a/core/assets/models/download.tsx +++ /dev/null @@ -1,18 +0,0 @@ - -< -tileset -version = "1.5" -tiledversion = "1.7.2" -name = "download" -tilewidth = "32" -tileheight = "32" -tilecount = "48" -columns = "8" > - < image -source = "download.png" -width = "256" -height = "192" / > - < /tileset> diff --git a/core/assets/models/explosion.mp3 b/core/assets/models/explosion.mp3 new file mode 100644 index 0000000..caf8bed Binary files /dev/null and b/core/assets/models/explosion.mp3 differ diff --git a/core/assets/models/finalset.tsx b/core/assets/models/finalset.tsx new file mode 100644 index 0000000..fb2fad0 --- /dev/null +++ b/core/assets/models/finalset.tsx @@ -0,0 +1,4 @@ + + + + diff --git a/core/assets/models/gold_coin.png b/core/assets/models/gold_coin.png new file mode 100644 index 0000000..a883a4e Binary files /dev/null and b/core/assets/models/gold_coin.png differ diff --git a/core/assets/models/island1.png b/core/assets/models/island1.png deleted file mode 100644 index e783f8c..0000000 Binary files a/core/assets/models/island1.png and /dev/null differ diff --git a/core/assets/models/map.tmx b/core/assets/models/map.tmx index f99cbc9..79717be 100644 --- a/core/assets/models/map.tmx +++ b/core/assets/models/map.tmx @@ -1,65 +1,47 @@ - - + + -29,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,23,37,37,13, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,37,37,38, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,38,38,15, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,4,5,5,5,6,13,39,15, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,12,12,13,12,15,46,46,46, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,12,13,12,12,15,46,15,46, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,20,21,22,20,23,46,13,15, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,22,22,23, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,5,5,5,5,5,5,5,5,5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,5,16,5,5,5,5,5,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,6,12,12,12,12,15,15,12,12,12,12,29,1,1,1,1,1,1,1,1,1,1,1,1,1,11,13,24,12,12,14,12,12,29,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,18,37,38,39,33,27,27,27,27,34,12,8,1,1,1,1,1,1,1,1,1,1,1,1,1,11,12,32,14,35,36,14,12,29,1,1,1,1,1,1,11, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,25,27,27,27,42,12,35,36,12,28,15,29,1,1,1,1,1,1,1,1,1,1,1,1,8,11,13,40,12,43,44,12,14,31,8,1,1,1,1,1,19, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,23,37,38,39,12,12,43,44,12,28,12,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,12,12,12,46,46,12,12,12,18,18,18,18,18,18,18, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,12,12,12,7,12,46,33,27,27,27,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,34,12,33,27,27,27,27,27,26,26,26,26,26,26,26, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,6,12,7,14,7,12,12,28,12,12,14,29,1,2,1,1,1,1,2,1,1,1,1,2,8,11,28,12,28,12,12,13,12,31,8,1,1,2,1,1,3, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,18,12,12,12,14,12,12,28,14,12,12,29,1,1,1,1,1,1,1,1,1,1,1,1,1,11,28,12,28,13,15,35,36,29,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,25,27,27,27,27,27,27,42,30,29,31,29,1,1,1,1,1,1,1,1,1,1,1,1,1,11,28,12,28,12,12,43,44,29,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,23,29,30,31,29,29,30,30,31,30,29,8,1,1,1,1,1,1,1,1,1,1,1,1,1,11,41,27,42,45,45,45,45,29,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,30,30,29,31,31,29,29,29,30,29,29,1,1,1,1,1,1,1,1,1,1,1,1,1,19,22,21,20,21,22,21,20,29,1,1,1,1,1,1,11, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,21,22,22,22,21,22,21,21,22,21,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6 +298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298,298, +10,42,42,42,42,42,42,42,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,75,105,105,105,105,105,105,105,298, +10,42,42,42,42,42,42,42,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,75,42,42,42,42,42,42,105,298, +10,42,42,42,42,42,42,42,82,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,75,42,42,42,42,42,42,105,298, +10,42,42,42,42,42,42,42,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,107,42,42,42,42,42,42,105,298, +10,42,42,42,42,42,42,42,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139,42,42,42,42,42,42,105,298, +10,42,42,42,42,42,42,42,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,171,42,42,42,42,42,42,105,298, +10,42,42,42,42,42,42,42,210,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,42,42,42,42,42,42,105,298, +10,237,237,237,238,239,240,241,242,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,236,237,238,239,240,239,239,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,298, +42,14,14,14,14,15,16,17,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,12,13,14,15,16,14,14,298, +10,42,42,42,42,42,42,42,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,42,42,42,42,42,42,105,298, +10,42,42,42,42,42,42,42,82,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,75,42,42,42,42,42,42,105,298, +10,42,42,42,42,42,42,42,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,107,42,42,42,42,42,42,105,298, +10,42,42,42,42,42,42,42,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139,42,42,42,42,42,42,105,298, +10,42,42,42,42,42,42,42,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,171,42,42,42,42,42,42,105,298, +10,42,42,42,42,42,42,42,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,171,42,42,42,42,42,42,105,298, +10,42,42,42,42,42,42,42,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,171,105,105,105,105,105,105,105,298, +10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,105,105,298,298,298,298,298,298 - - - - - - - - - - - - - - - - - - - - + + diff --git a/core/assets/models/music.mp3 b/core/assets/models/music.mp3 new file mode 100644 index 0000000..6eeb478 Binary files /dev/null and b/core/assets/models/music.mp3 differ diff --git a/core/assets/models/old cannonball.png b/core/assets/models/old cannonball.png new file mode 100644 index 0000000..79d0469 Binary files /dev/null and b/core/assets/models/old cannonball.png differ diff --git a/core/assets/models/seaSounds.mp3 b/core/assets/models/seaSounds.mp3 new file mode 100644 index 0000000..a6f6d77 Binary files /dev/null and b/core/assets/models/seaSounds.mp3 differ diff --git a/core/assets/models/ship2.png b/core/assets/models/ship2.png index cb40454..9d89dfb 100644 Binary files a/core/assets/models/ship2.png and b/core/assets/models/ship2.png differ diff --git a/core/assets/models/tiles_sheet.png b/core/assets/models/tiles_sheet.png new file mode 100644 index 0000000..b244b93 Binary files /dev/null and b/core/assets/models/tiles_sheet.png differ diff --git a/core/assets/models/water.jpg b/core/assets/models/water.jpg new file mode 100644 index 0000000..5286f5c Binary files /dev/null and b/core/assets/models/water.jpg differ diff --git a/core/src/net/shipsandgiggles/pirate/CameraManager.java b/core/src/net/shipsandgiggles/pirate/CameraManager.java index 5041886..962e2d5 100644 --- a/core/src/net/shipsandgiggles/pirate/CameraManager.java +++ b/core/src/net/shipsandgiggles/pirate/CameraManager.java @@ -8,6 +8,10 @@ public class CameraManager { + + /** manages the camera*/ + + /** to lock on to something with no smoothing*/ public static void lockOn(Camera camera, Vector2 target) { Vector3 cameraPosition = camera.position; cameraPosition.x = target.x * PIXEL_PER_METER; @@ -16,6 +20,7 @@ public static void lockOn(Camera camera, Vector2 target) { camera.update(); } + /** applies smoothing to camera "lerping" */ public static void lerpOn(Camera camera, Vector2 target, float lerpValue) { Vector3 cameraPosition = camera.position; cameraPosition.x = cameraPosition.x + (target.x - cameraPosition.x) * lerpValue * PIXEL_PER_METER; diff --git a/core/src/net/shipsandgiggles/pirate/ExplosionController.java b/core/src/net/shipsandgiggles/pirate/ExplosionController.java new file mode 100644 index 0000000..3ad4e7e --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/ExplosionController.java @@ -0,0 +1,42 @@ +package net.shipsandgiggles.pirate; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.*; +import com.badlogic.gdx.math.Vector2; + +public class ExplosionController { + + /** controller for all explosion and creation of them*/ + + public static final float FRAME_LENGTH = 0.1f; + public static final int OFFSIZE = 2; + public static final int SIZE = 20; + + private static Animation anim = null; + Vector2 position; + float stateTime; + + public boolean remove = false; + + /** constructor of explosion */ + public ExplosionController(Vector2 position){ + this.position = new Vector2(position.x - OFFSIZE, position.y - OFFSIZE); /** setting position */ + stateTime = 0; + + if(anim == null) anim = new Animation(FRAME_LENGTH, TextureRegion.split(new Texture("models/Explosion.png"), SIZE, SIZE)[0]); /** setting textures */ + } + + public void update(){ + /** updates explosion */ + stateTime += Gdx.graphics.getDeltaTime(); + if(anim.isAnimationFinished(stateTime)) remove = true; + } + + /** draws explosion */ + public void draw(Batch batch){ + batch.begin(); + batch.draw((TextureRegion) anim.getKeyFrame(stateTime), position.x, position.y); + batch.end(); + } +} diff --git a/core/src/net/shipsandgiggles/pirate/HUDmanager.java b/core/src/net/shipsandgiggles/pirate/HUDmanager.java new file mode 100644 index 0000000..7ac9eb4 --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/HUDmanager.java @@ -0,0 +1,166 @@ +package net.shipsandgiggles.pirate; + +import com.badlogic.gdx.Game; +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.OrthographicCamera; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.Batch; +import com.badlogic.gdx.graphics.Color; +import com.badlogic.gdx.graphics.g2d.SpriteBatch; +import com.badlogic.gdx.scenes.scene2d.Stage; +import com.badlogic.gdx.scenes.scene2d.ui.Image; +import com.badlogic.gdx.scenes.scene2d.ui.Label; +import com.badlogic.gdx.scenes.scene2d.ui.Stack; +import com.badlogic.gdx.scenes.scene2d.ui.Table; +import com.badlogic.gdx.utils.viewport.FitViewport; +import com.badlogic.gdx.utils.viewport.Viewport; +import net.shipsandgiggles.pirate.conf.Configuration; +import net.shipsandgiggles.pirate.currency.Currency; +import net.shipsandgiggles.pirate.entity.Ship; +import net.shipsandgiggles.pirate.screen.impl.GameScreen; + +import java.awt.*; + +public class HUDmanager { + + /** a manager for the HUD */ + + public Stage stage; + private Viewport viewport; + + public static int score; + public static int gold; + + public float fontScale = 1.5f; + public float timeCounter = 0; + public float coolDownTimerTime; + + public Texture healthBar = new Texture("models/bar.png"); /** gets helthbar textures*/ + + /** setting labels and getting other textures*/ + Label scoreLabelCounter; + Label goldLabel; + Label scoreLabel; + Label cooldownTimer; + Label health; + Label healthLabel; + Image goldCoin = new Image(new Texture("models/gold_coin.png")); + Image burstLogo = new Image(new Texture("models/burst_icon.png")); + Image shootLogo = new Image(new Texture("models/attack_icon.png")); + Image burstCooldownLogo = new Image(new Texture("models/burst_onCoolDown.png")); + Stack cooldown = new Stack(); + Table abalities = new Table(); + Table bottomLeftTable = new Table(); + + + public HUDmanager(SpriteBatch batch){ + /** setting the score*/ + score = Currency.get().balance(Currency.Type.POINTS); + gold = Currency.get().balance(Currency.Type.GOLD); + + /** setting a view port and stage for the camera to paste it on the screen and not map*/ + viewport = new FitViewport(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), new OrthographicCamera()); + stage = new Stage(viewport, batch); + + /**creation of the top left bit of the screen */ + Table topLeftTable = new Table(); + + topLeftTable.setSize(200,Gdx.graphics.getHeight()); + topLeftTable.top().left(); + + scoreLabelCounter = new Label(String.format("%06d", score), Configuration.SKIN, "big"); + goldLabel = new Label(String.format("%06d", gold), Configuration.SKIN, "big"); + cooldownTimer = new Label("" + coolDownTimerTime, Configuration.SKIN, "big"); + scoreLabel = new Label("Score: ", Configuration.SKIN, "big"); + + /** order of adding the UI*/ + + topLeftTable.add(goldCoin); + topLeftTable.add(goldLabel); + + topLeftTable.row(); + topLeftTable.add(scoreLabel); + topLeftTable.add(scoreLabelCounter); + + stage.addActor(topLeftTable); + + + /** creation of bottom left of the screen*/ + abalities.setSize(Gdx.graphics.getWidth(),200); + abalities.top().left(); + + cooldown.add(burstLogo); + + + abalities.add(shootLogo); + abalities.add(cooldown); + + abalities.setPosition(0, -70); + + stage.addActor(abalities); + + healthLabel = new Label("Health: ", Configuration.SKIN, "big"); + health = new Label("" + Ship.health + " / " + Ship.maxHealth, Configuration.SKIN, "big"); + /** adds order */ + bottomLeftTable.add(healthLabel); + bottomLeftTable.add(health); + bottomLeftTable.setPosition(150, 200); + bottomLeftTable.row(); + stage.addActor(bottomLeftTable); + } + /** updates all the variables on screen*/ + public void updateLabels(Batch batch){ + coolDownTimerTime = Ship.burstTimer; + String healthText = " " + Ship.health; + + /** change colour of healthbar based on health percentage*/ + if(Ship.health > (Ship.maxHealth * 0.49)){ + batch.setColor(Color.GREEN); + health.setText("" + healthText.substring(0,6) + " / " + Ship.maxHealth); + } + else if(Ship.health > (Ship.maxHealth * 0.25)){ + batch.setColor(Color.ORANGE); + health.setText("" + healthText.substring(0,5) + " / " + Ship.maxHealth); + } + else{ + batch.setColor(Color.RED); + health.setText("" + healthText.substring(0,5) + " / " + Ship.maxHealth); + } + + /** draw health bar*/ + batch.begin(); + batch.draw(healthBar, 0,140,Gdx.graphics.getWidth()/5 * (Ship.health/Ship.maxHealth), 30); + batch.end(); + + batch.setColor(Color.WHITE); + /** update variables and give points to player every 2 seconds*/ + timeCounter += Gdx.graphics.getDeltaTime(); + if(timeCounter >= 2){ + Currency.get().give(Currency.Type.POINTS, 1); + timeCounter = 0; + } + if(coolDownTimerTime > 0){ + cooldown.removeActor(burstLogo); + cooldown.add(burstCooldownLogo); + String coolDownText = "" + coolDownTimerTime; + cooldownTimer.setText(" " + coolDownText.substring(0,3)); + cooldownTimer.setFontScale(1.2f); + cooldown.add(cooldownTimer); + } + else{ + cooldown.removeActor(burstCooldownLogo); + cooldown.removeActor(cooldownTimer); + cooldown.add(burstLogo); + } + + + + + + gold = Currency.get().balance(Currency.Type.GOLD); + score = Currency.get().balance(Currency.Type.POINTS); + + scoreLabelCounter.setText(String.format("%06d", score)); + goldLabel.setText(String.format("%06d", gold)); + } +} \ No newline at end of file diff --git a/core/src/net/shipsandgiggles/pirate/PirateGame.java b/core/src/net/shipsandgiggles/pirate/PirateGame.java index d6d4742..a8062b6 100644 --- a/core/src/net/shipsandgiggles/pirate/PirateGame.java +++ b/core/src/net/shipsandgiggles/pirate/PirateGame.java @@ -6,6 +6,8 @@ public class PirateGame extends Game { + /** creation of an instance of the game*/ + private static PirateGame INSTANCE; public static PirateGame get() { diff --git a/core/src/net/shipsandgiggles/pirate/SoundController.java b/core/src/net/shipsandgiggles/pirate/SoundController.java new file mode 100644 index 0000000..3d878c0 --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/SoundController.java @@ -0,0 +1,101 @@ +package net.shipsandgiggles.pirate; + +import com.badlogic.gdx.Game; +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.audio.Music; +import com.badlogic.gdx.audio.Sound; +import net.shipsandgiggles.pirate.pref.GamePreferences; + +public class SoundController{ + + /** sound controller to control all the sound effeccts and music*/ + + public Music music; + public Sound buttonPress; + public Sound Explosion; + public Sound cannonShot; + public Music seaNoises; + public float volume = 0; + public float musicVolume = 0; + + public SoundController(){ + + /** construction of the controller*/ + + /** returns if already set*/ + if(music != null){if(music.isPlaying())return;} + if(seaNoises!= null) if(seaNoises.isPlaying())return; + + + + /** setting the music and sound effects*/ + music = Gdx.audio.newMusic(Gdx.files.internal("models/music.mp3")); + seaNoises = Gdx.audio.newMusic(Gdx.files.internal("models/seaSounds.mp3")); + cannonShot = Gdx.audio.newSound(Gdx.files.internal("models/cannonShot.mp3")); + buttonPress = Gdx.audio.newSound(Gdx.files.internal("models/buttonPress.mp3")); + Explosion = Gdx.audio.newSound(Gdx.files.internal("models/explosion.mp3")); + + /** checks according to preferences and updates based on them*/ + if(GamePreferences.get().isMusicEnabled() && !music.isPlaying()){ + music.setVolume(GamePreferences.get().getVolumeLevel()); + music.setLooping(true); + } + if(GamePreferences.get().isVolumeEnabled() && !seaNoises.isPlaying()){ + seaNoises.setVolume(GamePreferences.get().getVolumeLevel()); + seaNoises.setLooping(true); + } + + } + public void update(){ + + /** update for all preferences*/ + if(!GamePreferences.get().isMusicEnabled()) music.stop(); + if(!GamePreferences.get().isVolumeEnabled()) seaNoises.stop(); + if(GamePreferences.get().isVolumeEnabled() && !music.isPlaying()){ + music.play(); + } + if(GamePreferences.get().isVolumeEnabled() && !seaNoises.isPlaying()){ + seaNoises.play(); + } + if(musicVolume != music.getVolume()) { + music.setVolume(GamePreferences.get().getVolumeLevel()); + return; + } + + if(volume != seaNoises.getVolume()) { + seaNoises.setVolume(GamePreferences.get().getVolumeLevel()); + return; + } + + } + + public void playExplosion(){ + /** play explosion noise*/ + if(!GamePreferences.get().isVolumeEnabled()) return; + long id = Explosion.play(GamePreferences.get().getVolumeLevel()); + Explosion.setPitch(id, 2); + Explosion.setLooping(id,false); + } + public void playButtonPress(){ + /** play button press noise*/ + if(!GamePreferences.get().isVolumeEnabled()) return; + long id = buttonPress.play(GamePreferences.get().getVolumeLevel()); + buttonPress.setPitch(id, 2); + buttonPress.setLooping(id,false); + } + public void playCannonShot(){ + /** play cannon shot noise*/ + if(!GamePreferences.get().isVolumeEnabled()) return; + long id = cannonShot.play(GamePreferences.get().getVolumeLevel()); + cannonShot.setPitch(id, 2); + cannonShot.setLooping(id,false); + } + + public void pauseAll() { + /** pauses all noises */ + music.pause(); + seaNoises.pause(); + music.dispose(); + seaNoises.dispose(); + } +} diff --git a/core/src/net/shipsandgiggles/pirate/TiledObjectUtil.java b/core/src/net/shipsandgiggles/pirate/TiledObjectUtil.java index 00054d7..3e9965e 100644 --- a/core/src/net/shipsandgiggles/pirate/TiledObjectUtil.java +++ b/core/src/net/shipsandgiggles/pirate/TiledObjectUtil.java @@ -11,30 +11,40 @@ public class TiledObjectUtil { public static void parseTiledObjectLayer(World world, MapObjects objects) { + /** dynamic body creation of the map to create colliders that the player interacts with so the player doesnt drive out side of the map*/ + + + /** checks for map object*/ for (MapObject object : objects) { if (!(object instanceof PolylineMapObject)) { continue; } + /** creation of the body */ Shape shape = createPolyLine((PolylineMapObject) object); BodyDef def = new BodyDef(); def.type = BodyDef.BodyType.StaticBody; Body body = world.createBody(def); - body.createFixture(shape, 1); + FixtureDef fixtureDef = new FixtureDef(); + fixtureDef.shape = shape; + fixtureDef. density = 1f; + fixtureDef.filter.categoryBits = Configuration.Cat_walls; + body.createFixture(fixtureDef); shape.dispose(); } } private static ChainShape createPolyLine(PolylineMapObject polyline) { - float[] vertices = polyline.getPolyline().getTransformedVertices(); - Vector2[] worldVertices = new Vector2[vertices.length / 2]; + /** creates the lines that are used in the Tiled application*/ + float[] vertices = polyline.getPolyline().getTransformedVertices(); /** gets the corners of each line*/ + Vector2[] worldVertices = new Vector2[vertices.length / 2];/** gets the length of those lines*/ - for (int i = 0; i < worldVertices.length; i++) { + for (int i = 0; i < worldVertices.length; i++) { /** adds the body to the line*/ worldVertices[i] = new Vector2(vertices[i * 2] / Configuration.PIXEL_PER_METER, vertices[i * 2 + 1] / Configuration.PIXEL_PER_METER); } - ChainShape cs = new ChainShape(); + ChainShape cs = new ChainShape(); /** creates the chainshape and returns it */ cs.createChain(worldVertices); return cs; } diff --git a/core/src/net/shipsandgiggles/pirate/conf/Configuration.java b/core/src/net/shipsandgiggles/pirate/conf/Configuration.java index 533e2c4..a02061c 100644 --- a/core/src/net/shipsandgiggles/pirate/conf/Configuration.java +++ b/core/src/net/shipsandgiggles/pirate/conf/Configuration.java @@ -1,14 +1,24 @@ package net.shipsandgiggles.pirate.conf; +import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.physics.box2d.World; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.badlogic.gdx.scenes.scene2d.ui.Skin; +import net.shipsandgiggles.pirate.entity.Ship; +import net.shipsandgiggles.pirate.screen.impl.GameScreen; public class Configuration { - public static final Skin SKIN = new Skin(Gdx.files.internal("skin/comic-ui.json")); - public static final float PIXEL_PER_METER = 1f; + /**global configs for variables commonly used */ + public static final Skin SKIN = new Skin(Gdx.files.internal("skin/comic-ui.json")); + public static final float PIXEL_PER_METER = 1f; /** ppi to scale down the world*/ + public static final short Cat_Player = 1; /**cats are just categories to tell the bodies what to interact with */ + public static final short Cat_walls = 2; + public static final short Cat_Enemy = 4; + public static final short Cat_College = 8; + public static final World world = GameScreen.world; /** the world*/ public static final Label SPACER_LABEL = new Label(" ", Configuration.SKIN); } \ No newline at end of file diff --git a/core/src/net/shipsandgiggles/pirate/entity/BallsManager.java b/core/src/net/shipsandgiggles/pirate/entity/BallsManager.java new file mode 100644 index 0000000..b6f6e2d --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/entity/BallsManager.java @@ -0,0 +1,38 @@ +package net.shipsandgiggles.pirate.entity; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.Batch; +import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.math.Vector2; +import com.badlogic.gdx.physics.box2d.World; + +import java.util.ArrayList; + +public class BallsManager { + + /** this is the class to manage all the balls combined */ + + public static int i = 0; + + public static void removeNext(){i++;} + + static ArrayList listOfBalls = new ArrayList(); + public static void createBall(World world, Vector2 position, Vector2 target, Sprite cannonBallSprite , short categoryBits, short maskBit, short groupIndex){ /** this one is to create a cannonball at an angle towards the target*/ + cannonBallSprite = new Sprite(new Texture(Gdx.files.internal("models/cannonBall.png"))); /** gets the texture of the cannon ball*/ + CannonBall ball = new CannonBall(world, cannonBallSprite, (int) cannonBallSprite.getWidth(), (int) cannonBallSprite.getHeight(), position, target, categoryBits, maskBit, groupIndex); /**creates a new cannonball class */ + listOfBalls.add(ball); /** adds the cannonball to the array of cannonballs to mamange them*/ + } + public static void createBallAtAngle(World world, Vector2 position, float angle, Sprite cannonBallSprite , short categoryBits, short maskBit, short groupIndex){ /** this one creates cannon ball at a given angle*/ + CannonBall ball = new CannonBall(world, cannonBallSprite, (int) cannonBallSprite.getWidth(), (int) cannonBallSprite.getHeight(), position, angle, categoryBits, maskBit, groupIndex); + listOfBalls.add(ball); + } + + public static void updateBalls(Batch batch){ /**updates each ball */ + listOfBalls.forEach((balls) -> balls.update(batch)); + for (int d = i; d > 0; d--){ /** checks if the ball has reached its maximum range and removes it*/ + listOfBalls.remove(0); + } + i = 0; + } +} diff --git a/core/src/net/shipsandgiggles/pirate/entity/CannonBall.java b/core/src/net/shipsandgiggles/pirate/entity/CannonBall.java new file mode 100644 index 0000000..b0b6ea9 --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/entity/CannonBall.java @@ -0,0 +1,142 @@ +package net.shipsandgiggles.pirate.entity; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.g2d.Batch; +import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.math.Vector2; +import com.badlogic.gdx.physics.box2d.*; +import net.shipsandgiggles.pirate.screen.impl.GameScreen; +import net.shipsandgiggles.pirate.screen.impl.LoadingScreen; + +import static net.shipsandgiggles.pirate.conf.Configuration.PIXEL_PER_METER; + + +public class CannonBall { + + /** this is the creation and update for each individual ball*/ + + public float timer = 0.8f; + public World world; + public Body body; + public boolean isDestroyed = false; + public Vector2 target; + public boolean setAngle = false; + public float angle; + public Sprite cannonBall; + public float speed = 1.1f; + public float damageDelt = 50f; + public boolean teleported = false; + public float finalX = 0; + public float finalY = 0; + + CannonBall(World world, Sprite cannonBall, int width, int height, Vector2 position, Vector2 target, short categoryBits, short maskBit, short groupIndex){ //constructor + LoadingScreen.soundController.playCannonShot(); /**plays shound of shooting */ + this.world = world; + Body body; + BodyDef def = new BodyDef(); + this.target = target; + this.cannonBall = cannonBall; + + def.bullet = true; + def.type = BodyDef.BodyType.DynamicBody; + + def.position.set(position.x, position.y); + + /**creation of the body */ + body = world.createBody(def); + PolygonShape shape = new PolygonShape(); + shape.setAsBox((width / 2f) / PIXEL_PER_METER, (height * 1.5f) / PIXEL_PER_METER); + FixtureDef fixtureDef = new FixtureDef(); + fixtureDef.shape = shape; + fixtureDef. density = 1f; + fixtureDef.filter.categoryBits = categoryBits;/** telling it what it is*/ + fixtureDef.filter.maskBits = (short) (maskBit); /**telling it what it can hit */ + fixtureDef.filter.groupIndex = groupIndex; + body.createFixture(fixtureDef).setUserData(this); + shape.dispose(); + this.body = body; + + } + CannonBall(World world, Sprite cannonBall, int width, int height, Vector2 position, float target, short categoryBits, short maskBit, short groupIndex){ // constructor + LoadingScreen.soundController.playCannonShot(); + this.world = world; + Body body; + BodyDef def = new BodyDef(); + this.angle = target; + this.cannonBall = cannonBall; + + + def.bullet = true; + def.type = BodyDef.BodyType.DynamicBody; + + def.position.set(position.x, position.y); + + /**body creation */ + body = world.createBody(def); + PolygonShape shape = new PolygonShape(); + shape.setAsBox((width / 2f) / PIXEL_PER_METER, (height * 1.5f) / PIXEL_PER_METER); + FixtureDef fixtureDef = new FixtureDef(); + fixtureDef.shape = shape; + fixtureDef. density = 1f; + fixtureDef.filter.categoryBits = categoryBits; /** telling it what it is*/ + fixtureDef.filter.maskBits = (short) (maskBit); /** telling it what it can hit*/ + fixtureDef.filter.groupIndex = groupIndex; + body.createFixture(fixtureDef).setUserData(this); + shape.dispose(); + this.body = body; + this.body.setTransform(this.body.getPosition().x, this.body.getPosition().y, angle); //sets the angle + this.setAngle = true; + + } + + + public void update(Batch batch) { + timer -= Gdx.graphics.getDeltaTime(); /**checks if the ball has reached the maximum time it can be alive */ + if(timer <= 0 && !this.isDestroyed){ + LoadingScreen.soundController.playExplosion();/** // plays explosion noise*/ + finalX = this.body.getPosition().x; + finalY = this.body.getPosition().y; + GameScreen.add(new Vector2(finalX, finalY)); /** adds explosion animation*/ + this.world.destroyBody(this.body); /** destroies the ball*/ + this.isDestroyed = true; + BallsManager.removeNext();/** removes it from the array*/ + } + if(!setAngle){ /** check if it has an angle or a target if it doesnt have an angle creates one towards the target*/ + this.body.setTransform(this.body.getPosition().x, this.body.getPosition().y, (float)Math.atan2( this.body.getPosition().x-this.target.x,this.target.y- this.body.getPosition().y )); // setting the angle towards the target + this.setAngle = true; + this.angle = this.body.getAngle();//getting the angle + } + if(this.body.getAngle() != this.angle | this.body.getPosition().x < 0 | this.body.getPosition().x > 1920 | this.body.getPosition().y < 0 | this.body.getPosition().y > 1080){ // checks ifthe ball left the play area or has changes in its angle (if collided) + teleportBall(); + } + + this.body.applyForceToCenter(this.body.getWorldVector(new Vector2(0, 200079f)), true); /**applies force to the ball*/ + Vector2 direction = new Vector2(this.body.getWorldPoint(new Vector2(0,this.cannonBall.getHeight()))); /**gets the direction the ball is going towards*/ + Vector2 position = this.body.getPosition(); + position.x = position.x + (direction.x - position.x) * speed * PIXEL_PER_METER; /** changes the direction and slightly teleports the ball so it can travel way faster**/ + position.y = position.y + (direction.y - position.y) * speed * PIXEL_PER_METER; + this.body.setTransform(position, this.body.getAngle()); /**moves ball forward**/ + this.cannonBall.setPosition(this.body.getPosition().x * PIXEL_PER_METER - (this.cannonBall.getWidth() / 2f), this.body.getPosition().y * PIXEL_PER_METER - (this.cannonBall.getHeight() / 2f)); + this.cannonBall.setRotation((float) Math.toDegrees(this.body.getAngle())); + + + + batch.begin(); + this.cannonBall.draw(batch); + batch.end(); + } + + public float getDamageDelt() { + return this.damageDelt; + } + + public void teleportBall(){ + if(teleported) return; + LoadingScreen.soundController.playExplosion(); + finalX = this.body.getPosition().x; + finalY = this.body.getPosition().y; + GameScreen.add(new Vector2(finalX, finalY)); + this.body.setTransform(10000,10000,0); + this.teleported = true; + } +} diff --git a/core/src/net/shipsandgiggles/pirate/entity/Entity.java b/core/src/net/shipsandgiggles/pirate/entity/Entity.java index bf77162..012b6fb 100644 --- a/core/src/net/shipsandgiggles/pirate/entity/Entity.java +++ b/core/src/net/shipsandgiggles/pirate/entity/Entity.java @@ -1,8 +1,8 @@ package net.shipsandgiggles.pirate.entity; +import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.Sprite; -import com.badlogic.gdx.physics.box2d.Body; import java.util.UUID; @@ -21,8 +21,8 @@ public abstract class Entity { private final float height; private final float width; - private float health; - private Body body; + public float health; + public Entity(UUID uuid, Sprite texture, Location location, EntityType entityType, float maximumHealth, float height, float width) { this.uuid = uuid; @@ -54,14 +54,6 @@ public Sprite getSkin() { return this.texture; } - public Body getBody() { - return this.body; - } - - protected Body setBody(Body body) { - return this.body = body; - } - /** * Current location of the entity. * @@ -109,6 +101,10 @@ public double getMaximumHealth() { * @return Current health after damage (i.e. {@link #getHealth() - damage} */ public float damage(float damage) { + if(this.health == 1){ + this.death(); + return 0f; + } if ((this.health = (this.health - damage)) <= 0f) { this.death(); return 0f; @@ -121,6 +117,7 @@ public float damage(float damage) { * Draw the entity onto the batch. */ public abstract void draw(Batch batch); + public abstract void shootPlayer(Ship player); public abstract void death(); diff --git a/core/src/net/shipsandgiggles/pirate/entity/EntityAi.java b/core/src/net/shipsandgiggles/pirate/entity/EntityAi.java new file mode 100644 index 0000000..5fce7f2 --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/entity/EntityAi.java @@ -0,0 +1,319 @@ +package net.shipsandgiggles.pirate.entity; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.ai.steer.Steerable; +import com.badlogic.gdx.ai.steer.SteeringAcceleration; +import com.badlogic.gdx.ai.steer.SteeringBehavior; +import com.badlogic.gdx.ai.utils.Location; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.Batch; +import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.graphics.g2d.SpriteBatch; +import com.badlogic.gdx.math.Vector2; +import com.badlogic.gdx.physics.box2d.Body; +import com.badlogic.gdx.physics.box2d.MassData; + +import static net.shipsandgiggles.pirate.conf.Configuration.PIXEL_PER_METER; + +public class EntityAi implements Steerable { + /** the creation and AI of the enemy boat*/ + Body body; + boolean tagged; + float maxLinearSpeed, maxLinearAcceleration, maxAngularSpeed, maxAngularAcceleration, boundingRadius, zeroLinearSpeedThreshold, speedMultiplier, turnMultiplier; + Sprite texture; + boolean isPlayer; + Body target; + float amountOfRotations = 0; + private boolean independentFacing = false; /**defines if the entity can move in a direction other than the way it faces) */ + float angleToTarget = 0; + + SteeringBehavior behavior; + SteeringAcceleration steeringOutput; + + + public EntityAi(Body body, float boundingRadius, Sprite texture){ + /** creation of the Ai of the enemy */ + this.body = body; + this.boundingRadius = boundingRadius; + this.texture = texture; + + this.isPlayer = false; + this.maxLinearSpeed = 5000; + this.maxLinearAcceleration = 5000; + this.maxAngularSpeed = 90; + this.maxAngularAcceleration = 30; + this.zeroLinearSpeedThreshold = 0.1f; + this.speedMultiplier = 60f; + this.turnMultiplier = 0.01f; + + this.tagged = false; + this.body.setFixedRotation(false); + MassData MassData = new MassData(); + MassData.mass= 6000f; + MassData.center.set(this.getPosition().x/2, this.getPosition().y/2); + this.body.setMassData(MassData); + + this.steeringOutput = new SteeringAcceleration(new Vector2()); + this.body.setUserData(this); + this.body.setLinearDamping(1f); + } + + public EntityAi(Body body, float boundingRadius){ + /**creation of the target for the player */ + + this.body = body; + this.boundingRadius = boundingRadius; + + this.isPlayer = true; + this.maxLinearSpeed = 5000; + this.maxLinearAcceleration = 5000; + this.maxAngularSpeed = 90; + this.maxAngularAcceleration = 30; + this.zeroLinearSpeedThreshold = 0.01f; + this.speedMultiplier = 400f; + this.turnMultiplier = 2000f; + + this.tagged = false; + this.body.setFixedRotation(false); + + + + this.steeringOutput = new SteeringAcceleration(new Vector2()); + this.body.setUserData(this); + this.body.setLinearDamping(1f); + } + + public void update(float delta, Batch batch){ + if(isPlayer){ + return; + } + if(behavior != null){ + this.steeringOutput = behavior.calculateSteering(steeringOutput); /** calculates if needs steering */ + applySteering(this.steeringOutput, delta); + + } + drawEntity(batch); + } + + public void drawEntity(Batch batch){ + if(!this.isPlayer){ + this.getSprite().setPosition(this.body.getPosition().x * PIXEL_PER_METER - (this.getSprite().getWidth() / 2f), this.body.getPosition().y* PIXEL_PER_METER - (this.getSprite().getHeight() / 2f)); /**sets position and rotation of the boat */ + this.getSprite().setRotation((float) Math.toDegrees(this.getBody().getAngle())); + + // System.out.println(this.getSprite().getOriginY() + "" + this.body.getPosition()); + + batch.begin(); + this.getSprite().draw(batch); + batch.end(); + } + } + + public Sprite getSprite(){ + return this.texture; + } + + protected void applySteering (SteeringAcceleration steeringOutput, float deltaTime) { + if(isPlayer){ + return; + } + boolean anyAccelerations = false; + + /** Update position and linear velocity.*/ + if (!steeringOutput.linear.isZero()) { + // this method internally scales the force by deltaTime + body.applyForceToCenter(new Vector2(steeringOutput.linear.x * speedMultiplier , (steeringOutput.linear.y * speedMultiplier)), true); + anyAccelerations = true; + } + + /** Update orientation and angular velocity*/ + if (isIndependentFacing()) { + if (steeringOutput.angular != 0) { + /** this method internally scales the torque by deltaTime*/ + body.applyTorque(steeringOutput.angular * turnMultiplier, true); + anyAccelerations = true; + } + } else { + /** If we haven't got any velocity, then we can do nothing.*/ + Vector2 linVel = this.getLinearVelocity(); + if (steeringOutput.linear.len() > 25f) { + + + float newOrientation = vectorToAngle(linVel); + /** sets new angle towards player*/ + this.setAngleToTarget(this.getAngleToTarget() + ((float)Math.atan2(this.target.getPosition().y - this.getPosition().y, this.target.getPosition().x - this.getPosition().x) - 1.5708f - this.angleToTarget) * turnMultiplier * PIXEL_PER_METER); + + this.getBody().setTransform(this.body.getPosition().x, this.body.getPosition().y, this.getAngleToTarget()); + + } + + } + + if (anyAccelerations) { + /**Cap the linear speed */ + Vector2 velocity = body.getLinearVelocity(); + float currentSpeedSquare = velocity.len2(); + float maxLinearSpeed = getMaxLinearSpeed(); + if (currentSpeedSquare > (maxLinearSpeed * maxLinearSpeed)) { + body.setLinearVelocity(velocity.scl(maxLinearSpeed / (float)Math.sqrt(currentSpeedSquare))); + } + /** Cap the angular speed*/ + float maxAngVelocity = getMaxAngularSpeed(); + if (body.getAngularVelocity() > maxAngVelocity) { + body.setAngularVelocity(maxAngVelocity); + } + } + } + + public boolean isIndependentFacing () { + return independentFacing; + } + + public void setIndependentFacing (boolean independentFacing) { + this.independentFacing = independentFacing; + } + + @Override + public Vector2 getLinearVelocity() { + return this.body.getPosition(); + } + + public void setAmountOfRotations(float amountOfRotations) { + this.amountOfRotations = amountOfRotations; + } + + public float getAmountOfRotations() { + return amountOfRotations; + } + + @Override + public float getAngularVelocity() { + return this.body.getAngularVelocity(); + } + + @Override + public float getBoundingRadius() { + return this.boundingRadius; + } + + public void setAngleToTarget(float angleToTarget){ + this.angleToTarget = angleToTarget; + } + + public float getAngleToTarget() { + return angleToTarget; + } + + @Override + public boolean isTagged() { + return this.tagged; + } + + @Override + public void setTagged(boolean tagged) { + this.tagged = tagged; + } + + + @Override + public float getZeroLinearSpeedThreshold() { + return this.zeroLinearSpeedThreshold; + } + + @Override + public void setZeroLinearSpeedThreshold(float value) { + this.zeroLinearSpeedThreshold = value; + } + + @Override + public float getMaxLinearSpeed() { + return this.maxLinearSpeed; + } + + @Override + public void setMaxLinearSpeed(float maxLinearSpeed) { + this.maxLinearSpeed = maxLinearSpeed; + } + + @Override + public float getMaxLinearAcceleration() { + return this.maxLinearAcceleration; + } + + public void setTarget(Body body){ + this.target = body; + } + + public Body getTarget() { + return target; + } + + @Override + public void setMaxLinearAcceleration(float maxLinearAcceleration) { + this.maxLinearSpeed = maxLinearAcceleration; + } + + @Override + public float getMaxAngularSpeed() { + return this.maxAngularSpeed; + } + + @Override + public void setMaxAngularSpeed(float maxAngularSpeed) { + this.maxAngularSpeed = maxAngularSpeed; + } + + @Override + public float getMaxAngularAcceleration() { + return this.maxAngularAcceleration; + } + + @Override + public void setMaxAngularAcceleration(float maxAngularAcceleration) { + this.maxAngularAcceleration = maxAngularAcceleration; + } + + @Override + public Vector2 getPosition() { + return this.body.getPosition(); + } + + @Override + public float getOrientation() { + return this.body.getAngle(); + } + + @Override + public void setOrientation(float orientation) { + + } + + @Override + public float vectorToAngle(Vector2 vector) { + return (float) Math.atan2(-vector.x, vector.y); + } + + @Override + public Vector2 angleToVector(Vector2 outVector, float angle) { + outVector.x = -(float)Math.sin(angle); + outVector.y = (float) Math.cos(angle); + return outVector; + } + + @Override + public Location newLocation() { + return null; + } + + + public Body getBody() { + return this.body; + } + + public void setBehavior(SteeringBehavior behavior){ + this.behavior = behavior; + } + + public SteeringBehavior getBehavior(){ + return this.behavior; + } +} diff --git a/core/src/net/shipsandgiggles/pirate/entity/EntityType.java b/core/src/net/shipsandgiggles/pirate/entity/EntityType.java index 2fe9539..7456f1b 100644 --- a/core/src/net/shipsandgiggles/pirate/entity/EntityType.java +++ b/core/src/net/shipsandgiggles/pirate/entity/EntityType.java @@ -1,5 +1,6 @@ package net.shipsandgiggles.pirate.entity; +/** creation of types*/ public enum EntityType { SHIP, diff --git a/core/src/net/shipsandgiggles/pirate/entity/Location.java b/core/src/net/shipsandgiggles/pirate/entity/Location.java index d045c5f..d0f5a2f 100644 --- a/core/src/net/shipsandgiggles/pirate/entity/Location.java +++ b/core/src/net/shipsandgiggles/pirate/entity/Location.java @@ -2,6 +2,8 @@ public class Location { + /** creates class for locaiton instead of always using position*/ + private float xCoordinate; private float yCoordinate; diff --git a/core/src/net/shipsandgiggles/pirate/entity/type/MovableEntity.java b/core/src/net/shipsandgiggles/pirate/entity/MovableEntity.java similarity index 80% rename from core/src/net/shipsandgiggles/pirate/entity/type/MovableEntity.java rename to core/src/net/shipsandgiggles/pirate/entity/MovableEntity.java index 5af3dc5..1f5647a 100644 --- a/core/src/net/shipsandgiggles/pirate/entity/type/MovableEntity.java +++ b/core/src/net/shipsandgiggles/pirate/entity/MovableEntity.java @@ -1,12 +1,11 @@ -package net.shipsandgiggles.pirate.entity.type; +package net.shipsandgiggles.pirate.entity; import com.badlogic.gdx.graphics.g2d.Sprite; -import net.shipsandgiggles.pirate.entity.Entity; -import net.shipsandgiggles.pirate.entity.EntityType; -import net.shipsandgiggles.pirate.entity.Location; import java.util.UUID; +/** assigns the variables to any entity in the game that moves*/ + public abstract class MovableEntity extends Entity { private final float maximumSpeed; diff --git a/core/src/net/shipsandgiggles/pirate/entity/Ship.java b/core/src/net/shipsandgiggles/pirate/entity/Ship.java new file mode 100644 index 0000000..5388231 --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/entity/Ship.java @@ -0,0 +1,261 @@ +package net.shipsandgiggles.pirate.entity; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.Input; +import com.badlogic.gdx.graphics.Camera; +import com.badlogic.gdx.graphics.g2d.Batch; +import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.math.Rectangle; +import com.badlogic.gdx.math.Vector2; +import com.badlogic.gdx.math.Vector3; +import com.badlogic.gdx.physics.box2d.*; +import net.shipsandgiggles.pirate.conf.Configuration; +import net.shipsandgiggles.pirate.screen.impl.GameScreen; + +import java.util.UUID; + +public class Ship extends MovableEntity { + + + /** creation of the main player class*/ + private final Body entityBody; + private final float turnSpeed; + private final float driftFactor; + + private float turnDirection; + private float driveDirection; + private Sprite texture; + CannonBall ball; + + public boolean rapidShot = false; + public float timeBetweenRapidShots = 0.2f; + public float rapidShotCoolDown = 0.2f; + public int numberOfShotsLeft = 3; + public int shotsInRapidShot = 3; + + public float shootingCoolDown = 0.6f; + public float burstCoolDown = 4f; + public float shootingTimer = 0f; + public static float burstTimer = 0f; + public World world; + public boolean dead = false; + public Camera cam; + public Vector2 deathPosition = new Vector2(0,0); + + public Rectangle hitBox; + + public static float health; + public static float maxHealth = 200f; + public float timeToRegen = 0; + private float healSpeed = 30; + + public Ship(Sprite texture, float spawnSpeed, float maxSpeed, float driftFactor, float turnSpeed, Location location, float height, float width, Camera cam) { + super(UUID.randomUUID(), texture, location, EntityType.SHIP, 20, spawnSpeed, maxSpeed, height, width); // TODO: Implement health. + /** constructor*/ + this.health = this.maxHealth; + this.turnDirection = 0; + this.driveDirection = 0; + this.driftFactor = driftFactor; + this.turnSpeed = turnSpeed; + this.texture = texture; + this.cam = cam; + + /**Creation of Body */ + BodyDef bodyDef = new BodyDef(); + bodyDef.type = BodyDef.BodyType.DynamicBody; + bodyDef.position.set(location.getX(), location.getY()); + bodyDef.fixedRotation = false; + + this.entityBody = GameScreen.world.createBody(bodyDef); + PolygonShape shape = new PolygonShape(); + shape.setAsBox((width / 2) / Configuration.PIXEL_PER_METER, (height / 2) / Configuration.PIXEL_PER_METER); + FixtureDef fixtureDef = new FixtureDef(); + fixtureDef.shape = shape; + fixtureDef. density = 1f; + fixtureDef.filter.categoryBits = Configuration.Cat_Player; + this.entityBody.createFixture(fixtureDef).setUserData(this); + shape.dispose(); + this.hitBox = new Rectangle(location.getX(), location.getY(), texture.getWidth(), texture.getHeight()); + this.world = GameScreen.world; + } + + @Override + public void draw(Batch batch) { /** draws player on screen*/ + if(dead) { + //GameScreen.zoomOut(0.1f); + return; + } + batch.begin(); + this.getSprite().draw(batch); + batch.end(); + this.hitBox.setPosition(this.getEntityBody().getPosition()); + } + + @Override + public void shootPlayer(Ship player) {} + + @Override + public void death() { /** checks if player is dead if not then sets them as dead and gets their last position*/ + if(this.dead) return; + this.deathPosition.x = this.getEntityBody().getPosition().x; + this.deathPosition.y = this.getEntityBody().getPosition().y; + this.dead = true; + } + + public void shoot(World world, Sprite cannonBallSprite, Camera cam, short categoryBits, short maskBit, short groupIndex){ /** shooting function for a singular shot towards the mouse */ + Vector3 mouse_position = new Vector3(0,0,0); + mouse_position.set(Gdx.input.getX(), Gdx.input.getY(), 0); /** gets mouse position*/ + cam.unproject(mouse_position); + BallsManager.createBall(world, new Vector2(this.getEntityBody().getPosition().x, this.getEntityBody().getPosition().y), new Vector2(mouse_position.x, mouse_position.y), cannonBallSprite, categoryBits, maskBit, groupIndex); /** creates shot*/ + } + + public void burstShoot(World world, Sprite cannonBallSprite, Camera cam, short categoryBits, short maskBit, short groupIndex) { /** creates the burst shot*/ + float angle = this.getEntityBody().getAngle(); + System.out.println(Math.toDegrees(angle)); + BallsManager.createBallAtAngle(world, new Vector2(this.getEntityBody().getPosition().x, this.getEntityBody().getPosition().y), angle, cannonBallSprite, categoryBits, maskBit, groupIndex); + BallsManager.createBallAtAngle(world, new Vector2(this.getEntityBody().getPosition().x, this.getEntityBody().getPosition().y), (float)Math.toRadians(Math.toDegrees(angle) -180), cannonBallSprite, categoryBits, maskBit, groupIndex); /** creation at an angle of the ball */ + this.rapidShot = true; /** sets the rapid ball to true so we can shoot the side balls*/ + this.numberOfShotsLeft = this.shotsInRapidShot; + } + + public void rapidShot(World world, Sprite cannonBallSprite, Camera cam, short categoryBits, short maskBit, short groupIndex){ /** does the rapid side shots */ + float angle = this.getEntityBody().getAngle(); + if(this.rapidShot && this.timeBetweenRapidShots <= 0){ + BallsManager.createBallAtAngle(world, new Vector2(this.getEntityBody().getPosition().x, this.getEntityBody().getPosition().y), (float)Math.toRadians(Math.toDegrees(angle) -90), cannonBallSprite, categoryBits, maskBit, groupIndex); + BallsManager.createBallAtAngle(world, new Vector2(this.getEntityBody().getPosition().x, this.getEntityBody().getPosition().y), (float)Math.toRadians(Math.toDegrees(angle) + 90), cannonBallSprite, categoryBits, maskBit, groupIndex); + this.timeBetweenRapidShots = this.rapidShotCoolDown; + this.numberOfShotsLeft--; + } + if(this.numberOfShotsLeft <= 0){ /** cool down management*/ + this.rapidShot = false; + } + if(this.timeBetweenRapidShots <= 0){ + this.timeBetweenRapidShots = 0; + } + if(this.timeBetweenRapidShots >= 0){ + this.timeBetweenRapidShots -= Gdx.graphics.getDeltaTime(); + } + + } + public void updateShots(World world, Sprite cannonBallSprite, Camera cam, short categoryBits, short maskBit, short groupIndex) { /** checks for updated shots and if the player shoots or not*/ + if(this.dead) return; + /** health management */ + if(this.timeToRegen > 0){ + this.timeToRegen -= Gdx.graphics.getDeltaTime(); + } + else{ + if(this.health > this.maxHealth){ + this.health = this.maxHealth; + } + else if(this.timeToRegen <= 0 && this.health < this.maxHealth){ + this.timeToRegen = 0; + this.health += this.healSpeed * Gdx.graphics.getDeltaTime(); + } + } + + + /** checks for rapid shots*/ + rapidShot(world, cannonBallSprite, cam, categoryBits, maskBit, groupIndex); + + if(Gdx.input.isButtonPressed(Input.Buttons.LEFT) && shootingTimer <= 0){ /**if player is shooting then shoot */ + this.shoot(world, cannonBallSprite, cam, Configuration.Cat_Player, (short)(Configuration.Cat_Enemy | Configuration.Cat_College), (short) 0); + this.shootingTimer = shootingCoolDown; + } + + if(Gdx.input.isButtonPressed(Input.Buttons.RIGHT) && burstTimer <= 0){ /** if player uses burst then shoot burst*/ + this.burstShoot(world, cannonBallSprite, cam, Configuration.Cat_Player, (short)(Configuration.Cat_Enemy | Configuration.Cat_College), (short) 0); + this.burstTimer = burstCoolDown; + } + + + /** cool down management */ + if(burstTimer >= 0){ + burstTimer -= Gdx.graphics.getDeltaTime(); + } + else{ + burstTimer = 0; + } + if(shootingTimer >= 0){ + shootingTimer -= Gdx.graphics.getDeltaTime(); + } + else { + shootingTimer = 0; + } + + } + + + + /** gets the position of the player*/ + public Vector2 getPosition() { + Vector2 position = new Vector2(); + + position.x = super.getLocation().getX(); + position.y = super.getLocation().getY(); + + return position; + } + + public Sprite getSprite(){ + return this.texture; + } + + public Body getEntityBody() { + return this.entityBody; + } + + public Vector2 getForwardVelocity() { + Vector2 currentNormal = this.getEntityBody().getWorldVector(new Vector2(0, 1)); + float dotProduct = currentNormal.dot(this.getEntityBody().getLinearVelocity()); + + return multiply(dotProduct, currentNormal); + } + + public Vector2 multiply(float a, Vector2 v) { + return new Vector2(a * v.x, a * v.y); + } + + public Vector2 getLateralVelocity() { + Vector2 currentNormal = this.getEntityBody().getWorldVector(new Vector2(1, 0)); + float dotProduct = currentNormal.dot(this.getEntityBody().getLinearVelocity()); + + return multiply(dotProduct, currentNormal); + } + + public void setTexture(Sprite texture){ + this.texture = texture; + } + + public float getTurnDirection() { + return this.turnDirection; + } + + public void setTurnDirection(float turnDirection) { + this.turnDirection = turnDirection; + } + + public float getTurnSpeed() { + return this.turnSpeed; + } + + public float getDriveDirection() { + return this.driveDirection; + } + + public void setDriveDirection(float driveDirection) { + this.driveDirection = driveDirection; + } + + public float getDriftFactor() { + return this.driftFactor; + } + + public void takeDamage(float damage){ + timeToRegen = 5f; + this.health -= damage * 0.8; + if(this.health <= 0){ + this.death(); + } + } +} + diff --git a/core/src/net/shipsandgiggles/pirate/entity/college/College.java b/core/src/net/shipsandgiggles/pirate/entity/college/College.java index 75b9a51..0958597 100644 --- a/core/src/net/shipsandgiggles/pirate/entity/college/College.java +++ b/core/src/net/shipsandgiggles/pirate/entity/college/College.java @@ -1,18 +1,32 @@ package net.shipsandgiggles.pirate.entity.college; +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.math.Rectangle; +import com.badlogic.gdx.physics.box2d.Body; +import net.shipsandgiggles.pirate.currency.Currency; import net.shipsandgiggles.pirate.entity.Entity; import net.shipsandgiggles.pirate.entity.EntityType; import net.shipsandgiggles.pirate.entity.Location; +import net.shipsandgiggles.pirate.screen.impl.GameScreen; +import java.awt.*; import java.util.UUID; /** * College data that allows us to perform animations / fights more easily. */ public abstract class College extends Entity { - + public Body body; + public float counter = 0; + public boolean dead = false; + public Rectangle hitBox; private final College.Type type; + public Sprite cannonBallSprite = new Sprite(new Texture(Gdx.files.internal("models/cannonBall.png"))); + public float cooldownTimer = 1f; + public float timer = 0f; + public Texture healthBar = new Texture("models/bar.png"); public College(UUID uuid, College.Type type, Sprite texture, Location location, float maximumHealth, float height, float width) { super(uuid, texture, location, EntityType.COLLEGE, maximumHealth, height, width); @@ -26,6 +40,22 @@ public Type getType() { public abstract boolean perform(); + public Body getBody(){ + return this.body; + } + public void death() {/** to give chance to player to keep the college alive*/ + if(this.getHealth() != 1){ + this.health = 1; + GameScreen.collegeCaptured(); + return; + } + if(this.dead) return; + GameScreen.collegeKilled(); /** gives instant money and score if the player decides to kill them*/ + Currency.get().give(Currency.Type.POINTS, 250); + Currency.get().give(Currency.Type.GOLD, 500); + this.dead = true; + //this.body.setTransform(10000,10000, 2); + } /** * Types of college - allows us to keep track. diff --git a/core/src/net/shipsandgiggles/pirate/entity/impl/college/AlcuinCollege.java b/core/src/net/shipsandgiggles/pirate/entity/impl/college/AlcuinCollege.java new file mode 100644 index 0000000..67e5946 --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/entity/impl/college/AlcuinCollege.java @@ -0,0 +1,114 @@ +package net.shipsandgiggles.pirate.entity.impl.college; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.Color; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.Batch; +import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.math.Vector2; +import com.badlogic.gdx.physics.box2d.*; +import net.shipsandgiggles.pirate.conf.Configuration; +import net.shipsandgiggles.pirate.currency.Currency; +import net.shipsandgiggles.pirate.entity.Location; +import net.shipsandgiggles.pirate.entity.Ship; +import net.shipsandgiggles.pirate.entity.BallsManager; +import net.shipsandgiggles.pirate.entity.college.College; + +import java.util.UUID; + +import static net.shipsandgiggles.pirate.conf.Configuration.PIXEL_PER_METER; + +public class AlcuinCollege extends College { + + public World world; + + /** this is the class to control the Alcuin college it is practically the same for each other college*/ + + + + /** construction of college*/ + + public AlcuinCollege(Sprite texture, Location location, float maximumHealth, World world) { + super(UUID.randomUUID(), Type.LANGWITH, texture, location, maximumHealth, texture.getHeight(), texture.getWidth()); + + Body body; + BodyDef def = new BodyDef(); + + def.type = BodyDef.BodyType.StaticBody; + + def.position.set(location.getX(), location.getY()); + + /** creation of the body*/ + + def.fixedRotation = true; + body = world.createBody(def); + PolygonShape shape = new PolygonShape(); + shape.setAsBox((texture.getWidth() / 2f) / PIXEL_PER_METER, (texture.getHeight() / 2f) / PIXEL_PER_METER); + FixtureDef fixtureDef = new FixtureDef(); + fixtureDef.shape = shape; + fixtureDef. density = 1f; + fixtureDef.filter.categoryBits = Configuration.Cat_College; /**telling it what category it is */ + body.createFixture(fixtureDef).setUserData(this); + shape.dispose(); + this.body = body; + this.cannonBallSprite = new Sprite(new Texture(Gdx.files.internal("models/cannonBall.png"))); + this.world = world; + + this.hitBox = new com.badlogic.gdx.math.Rectangle((int)location.getX()-500,(int)location.getY(), 700,400); + + + } + + @Override + public boolean perform() { + return false; + } + + @Override + public void draw(Batch batch) { + if(dead){ + return; + } + this.getSkin().setPosition(this.getBody().getPosition().x * PIXEL_PER_METER - (this.getSkin().getWidth() / 2f), this.getBody().getPosition().y * PIXEL_PER_METER - (this.getSkin().getHeight() / 2f)); /**sets position of the college */ + this.getSkin().setRotation((float) Math.toDegrees(this.getBody().getAngle())); + batch.begin(); + + this.getSkin().draw(batch);//draws college + + /**changes the college health colour based on the amount it has */ + if(this.getHealth() > (this.getMaximumHealth() * 0.51)){ + batch.setColor(Color.GREEN); + } + else if(this.getHealth() > (this.getMaximumHealth() * 0.25)){ + batch.setColor(Color.ORANGE); + } + else{ + batch.setColor(Color.RED); + } + + batch.draw(healthBar, this.body.getPosition().x - this.getSkin().getHeight()/2 + 80 ,this.body.getPosition().y + this.getSkin().getWidth()/2 + 20, (float) (this.getSkin().getWidth()/2 * (this.getHealth() /this.getMaximumHealth())), 10); + batch.setColor(Color.WHITE); + batch.end(); + + } + + @Override /** shooting the player method if the player is close enough*/ + public void shootPlayer(Ship player) { + if(this.health == 1 && !this.dead){ /** checks if the college is dead or not*/ + this.counter += Gdx.graphics.getDeltaTime(); + if(this.counter >= 1){ + Currency.get().give(Currency.Type.POINTS, 3); + Currency.get().give(Currency.Type.GOLD, 5); + this.counter = 0; + } + } + if(this.hitBox.overlaps(player.hitBox) && timer <= 0 && !this.dead && this.health != 1) {/** creates shot and shoots*/ + BallsManager.createBall(this.world, new Vector2(this.body.getPosition().x, this.body.getPosition().y), new Vector2(player.getEntityBody().getPosition().x, player.getEntityBody().getPosition().y), cannonBallSprite, (short)(Configuration.Cat_Enemy | Configuration.Cat_College), Configuration.Cat_Player, (short) 0); + this.timer = this.cooldownTimer; + } + else if(timer <= 0) this.timer = 0; /** ensures that there is a cool down between every shot*/ + else this.timer -= Gdx.graphics.getDeltaTime(); + } + + +} diff --git a/core/src/net/shipsandgiggles/pirate/entity/impl/college/ConstantineCollege.java b/core/src/net/shipsandgiggles/pirate/entity/impl/college/ConstantineCollege.java new file mode 100644 index 0000000..70131d8 --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/entity/impl/college/ConstantineCollege.java @@ -0,0 +1,106 @@ +package net.shipsandgiggles.pirate.entity.impl.college; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.Color; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.Batch; +import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.math.Vector2; +import com.badlogic.gdx.physics.box2d.*; +import net.shipsandgiggles.pirate.conf.Configuration; +import net.shipsandgiggles.pirate.currency.Currency; +import net.shipsandgiggles.pirate.entity.Location; +import net.shipsandgiggles.pirate.entity.Ship; +import net.shipsandgiggles.pirate.entity.BallsManager; +import net.shipsandgiggles.pirate.entity.college.College; + +import java.util.UUID; + +import static net.shipsandgiggles.pirate.conf.Configuration.PIXEL_PER_METER; + +public class ConstantineCollege extends College { + + public World world; + + + public ConstantineCollege(Sprite texture, Location location, float maximumHealth, World world) { + super(UUID.randomUUID(), Type.LANGWITH, texture, location, maximumHealth, texture.getHeight(), texture.getWidth()); + + Body body; + BodyDef def = new BodyDef(); + + def.type = BodyDef.BodyType.StaticBody; + + def.position.set(location.getX(), location.getY()); + + def.fixedRotation = true; + body = world.createBody(def); + PolygonShape shape = new PolygonShape(); + shape.setAsBox((texture.getWidth() / 2f) / PIXEL_PER_METER, (texture.getHeight() / 2f) / PIXEL_PER_METER); + FixtureDef fixtureDef = new FixtureDef(); + fixtureDef.shape = shape; + fixtureDef. density = 1f; + fixtureDef.filter.categoryBits = Configuration.Cat_College; + body.createFixture(fixtureDef).setUserData(this); + shape.dispose(); + this.body = body; + this.cannonBallSprite = new Sprite(new Texture(Gdx.files.internal("models/cannonBall.png"))); + this.world = world; + + this.hitBox = new com.badlogic.gdx.math.Rectangle((int)location.getX()-500,(int)location.getY()-300, 700,400); + + + } + + @Override + public boolean perform() { + return false; + } + + @Override + public void draw(Batch batch) { + if(dead){ + return; + } + this.getSkin().setPosition(this.getBody().getPosition().x * PIXEL_PER_METER - (this.getSkin().getWidth() / 2f), this.getBody().getPosition().y * PIXEL_PER_METER - (this.getSkin().getHeight() / 2f)); + this.getSkin().setRotation((float) Math.toDegrees(this.getBody().getAngle())); + + if(this.getHealth() > (this.getMaximumHealth() * 0.51)){ + batch.setColor(Color.GREEN); + } + else if(this.getHealth() > (this.getMaximumHealth() * 0.25)){ + batch.setColor(Color.ORANGE); + } + else{ + batch.setColor(Color.RED); + } + batch.begin(); + + batch.draw(healthBar, this.body.getPosition().x - this.getSkin().getHeight()/2 + 80 ,this.body.getPosition().y + this.getSkin().getWidth()/2 + 20, (float) (this.getSkin().getWidth()/2 * (this.getHealth() /this.getMaximumHealth())), 10); + batch.setColor(Color.WHITE); + + this.getSkin().draw(batch); + batch.end(); + + } + + @Override + public void shootPlayer(Ship player) { + if(this.health == 1 && !this.dead){ + this.counter += Gdx.graphics.getDeltaTime(); + if(this.counter >= 1){ + Currency.get().give(Currency.Type.POINTS, 3); + Currency.get().give(Currency.Type.GOLD, 5); + this.counter = 0; + } + } + if(this.hitBox.overlaps(player.hitBox) && timer <= 0 && !this.dead && this.health != 1) { + BallsManager.createBall(this.world, new Vector2(this.body.getPosition().x, this.body.getPosition().y), new Vector2(player.getEntityBody().getPosition().x, player.getEntityBody().getPosition().y), cannonBallSprite, (short)(Configuration.Cat_Enemy | Configuration.Cat_College), Configuration.Cat_Player, (short) 0); + this.timer = this.cooldownTimer; + } + else if(timer <= 0) this.timer = 0; + else this.timer -= Gdx.graphics.getDeltaTime(); + } + + +} diff --git a/core/src/net/shipsandgiggles/pirate/entity/impl/college/GoodrickCollege.java b/core/src/net/shipsandgiggles/pirate/entity/impl/college/GoodrickCollege.java new file mode 100644 index 0000000..83d24cc --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/entity/impl/college/GoodrickCollege.java @@ -0,0 +1,105 @@ +package net.shipsandgiggles.pirate.entity.impl.college; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.Color; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.Batch; +import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.math.Vector2; +import com.badlogic.gdx.physics.box2d.*; +import net.shipsandgiggles.pirate.conf.Configuration; +import net.shipsandgiggles.pirate.currency.Currency; +import net.shipsandgiggles.pirate.entity.Location; +import net.shipsandgiggles.pirate.entity.Ship; +import net.shipsandgiggles.pirate.entity.BallsManager; +import net.shipsandgiggles.pirate.entity.college.College; + +import java.util.UUID; + +import static net.shipsandgiggles.pirate.conf.Configuration.PIXEL_PER_METER; + +public class GoodrickCollege extends College { + public World world; + + + public GoodrickCollege(Sprite texture, Location location, float maximumHealth, World world) { + super(UUID.randomUUID(), Type.LANGWITH, texture, location, maximumHealth, texture.getHeight(), texture.getWidth()); + + Body body; + BodyDef def = new BodyDef(); + + def.type = BodyDef.BodyType.StaticBody; + + def.position.set(location.getX(), location.getY()); + + def.fixedRotation = true; + body = world.createBody(def); + PolygonShape shape = new PolygonShape(); + shape.setAsBox((texture.getWidth() / 2f) / PIXEL_PER_METER, (texture.getHeight() / 2f) / PIXEL_PER_METER); + FixtureDef fixtureDef = new FixtureDef(); + fixtureDef.shape = shape; + fixtureDef. density = 1f; + fixtureDef.filter.categoryBits = Configuration.Cat_College; + body.createFixture(fixtureDef).setUserData(this); + shape.dispose(); + this.body = body; + this.cannonBallSprite = new Sprite(new Texture(Gdx.files.internal("models/cannonBall.png"))); + this.world = world; + + this.hitBox = new com.badlogic.gdx.math.Rectangle((int)location.getX(),(int)location.getY()-300, 700,400); + + + } + + @Override + public boolean perform() { + return false; + } + + @Override + public void draw(Batch batch) { + if(dead){ + return; + } + this.getSkin().setPosition(this.getBody().getPosition().x * PIXEL_PER_METER - (this.getSkin().getWidth() / 2f), this.getBody().getPosition().y * PIXEL_PER_METER - (this.getSkin().getHeight() / 2f)); + this.getSkin().setRotation((float) Math.toDegrees(this.getBody().getAngle())); + + if(this.getHealth() > (this.getMaximumHealth() * 0.51)){ + batch.setColor(Color.GREEN); + } + else if(this.getHealth() > (this.getMaximumHealth() * 0.25)){ + batch.setColor(Color.ORANGE); + } + else{ + batch.setColor(Color.RED); + } + + batch.begin(); + + batch.draw(healthBar, this.body.getPosition().x - this.getSkin().getHeight()/2 + 80 ,this.body.getPosition().y + this.getSkin().getWidth()/2 + 20, (float) (this.getSkin().getWidth()/2 * (this.getHealth() /this.getMaximumHealth())), 10); + batch.setColor(Color.WHITE); + this.getSkin().draw(batch); + batch.end(); + + } + + @Override + public void shootPlayer(Ship player) { + if(this.health == 1 && !this.dead){ + this.counter += Gdx.graphics.getDeltaTime(); + if(this.counter >= 1){ + Currency.get().give(Currency.Type.POINTS, 3); + Currency.get().give(Currency.Type.GOLD, 5); + this.counter = 0; + } + } + if(this.hitBox.overlaps(player.hitBox) && timer <= 0 && !this.dead && this.health != 1) { + BallsManager.createBall(this.world, new Vector2(this.body.getPosition().x, this.body.getPosition().y), new Vector2(player.getEntityBody().getPosition().x, player.getEntityBody().getPosition().y), cannonBallSprite, (short)(Configuration.Cat_Enemy | Configuration.Cat_College), Configuration.Cat_Player, (short) 0); + this.timer = this.cooldownTimer; + } + else if(timer <= 0) this.timer = 0; + else this.timer -= Gdx.graphics.getDeltaTime(); + } + + +} diff --git a/core/src/net/shipsandgiggles/pirate/entity/impl/college/LangwithCollege.java b/core/src/net/shipsandgiggles/pirate/entity/impl/college/LangwithCollege.java index b137aeb..67843a0 100644 --- a/core/src/net/shipsandgiggles/pirate/entity/impl/college/LangwithCollege.java +++ b/core/src/net/shipsandgiggles/pirate/entity/impl/college/LangwithCollege.java @@ -1,16 +1,54 @@ package net.shipsandgiggles.pirate.entity.impl.college; +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.Color; +import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.math.Vector2; +import com.badlogic.gdx.physics.box2d.*; +import net.shipsandgiggles.pirate.conf.Configuration; +import net.shipsandgiggles.pirate.currency.Currency; import net.shipsandgiggles.pirate.entity.Location; +import net.shipsandgiggles.pirate.entity.Ship; +import net.shipsandgiggles.pirate.entity.BallsManager; import net.shipsandgiggles.pirate.entity.college.College; import java.util.UUID; +import static net.shipsandgiggles.pirate.conf.Configuration.PIXEL_PER_METER; + public class LangwithCollege extends College { + public World world; + + + public LangwithCollege(Sprite texture, Location location, float maximumHealth, World world) { + super(UUID.randomUUID(), Type.LANGWITH, texture, location, maximumHealth, texture.getHeight(), texture.getWidth()); + + Body body; + BodyDef def = new BodyDef(); + + def.type = BodyDef.BodyType.StaticBody; + + def.position.set(location.getX(), location.getY()); + + def.fixedRotation = true; + body = world.createBody(def); + PolygonShape shape = new PolygonShape(); + shape.setAsBox((texture.getWidth() / 2f) / PIXEL_PER_METER, (texture.getHeight() / 2f) / PIXEL_PER_METER); + FixtureDef fixtureDef = new FixtureDef(); + fixtureDef.shape = shape; + fixtureDef. density = 1f; + fixtureDef.filter.categoryBits = Configuration.Cat_College; + body.createFixture(fixtureDef).setUserData(this); + shape.dispose(); + this.body = body; + this.cannonBallSprite = new Sprite(new Texture(Gdx.files.internal("models/cannonBall.png"))); + this.world = world; + + this.hitBox = new com.badlogic.gdx.math.Rectangle((int)location.getX(),(int)location.getY(), 700,400); + - public LangwithCollege(UUID uuid, Type type, Sprite texture, Location location, float maximumHealth, float height, float width) { - super(UUID.randomUUID(), Type.LANGWITH, texture, location, maximumHealth, height, width); } @Override @@ -20,11 +58,47 @@ public boolean perform() { @Override public void draw(Batch batch) { + if(dead){ + return; + } + this.getSkin().setPosition(this.getBody().getPosition().x * PIXEL_PER_METER - (this.getSkin().getWidth() / 2f), this.getBody().getPosition().y * PIXEL_PER_METER - (this.getSkin().getHeight() / 2f)); + this.getSkin().setRotation((float) Math.toDegrees(this.getBody().getAngle())); + + if(this.getHealth() > (this.getMaximumHealth() * 0.51)){ + batch.setColor(com.badlogic.gdx.graphics.Color.GREEN); + } + else if(this.getHealth() > (this.getMaximumHealth() * 0.25)){ + batch.setColor(com.badlogic.gdx.graphics.Color.ORANGE); + } + else{ + batch.setColor(com.badlogic.gdx.graphics.Color.RED); + } + batch.begin(); + + batch.draw(healthBar, this.body.getPosition().x - this.getSkin().getHeight()/2 + 80 ,this.body.getPosition().y + this.getSkin().getWidth()/2 + 20, (float) (this.getSkin().getWidth()/2 * (this.getHealth() /this.getMaximumHealth())), 10); + batch.setColor(Color.WHITE); + this.getSkin().draw(batch); + batch.end(); } @Override - public void death() { - + public void shootPlayer(Ship player) { + if(this.health == 1 && !this.dead){ + this.counter += Gdx.graphics.getDeltaTime(); + if(this.counter >= 1){ + Currency.get().give(Currency.Type.POINTS, 3); + Currency.get().give(Currency.Type.GOLD, 5); + this.counter = 0; + } + } + if(this.hitBox.overlaps(player.hitBox) && timer <= 0 && !this.dead && this.health != 1) { + BallsManager.createBall(this.world, new Vector2(this.body.getPosition().x, this.body.getPosition().y), new Vector2(player.getEntityBody().getPosition().x, player.getEntityBody().getPosition().y), cannonBallSprite, (short)(Configuration.Cat_Enemy | Configuration.Cat_College), Configuration.Cat_Player, (short) 0); + this.timer = this.cooldownTimer; + } + else if(timer <= 0) this.timer = 0; + else this.timer -= Gdx.graphics.getDeltaTime(); } + + } diff --git a/core/src/net/shipsandgiggles/pirate/entity/type/ControlledEntity.java b/core/src/net/shipsandgiggles/pirate/entity/type/ControlledEntity.java deleted file mode 100644 index cf9c8c7..0000000 --- a/core/src/net/shipsandgiggles/pirate/entity/type/ControlledEntity.java +++ /dev/null @@ -1,294 +0,0 @@ -package net.shipsandgiggles.pirate.entity.type; - -import com.badlogic.gdx.ai.steer.Steerable; -import com.badlogic.gdx.ai.steer.SteeringAcceleration; -import com.badlogic.gdx.ai.steer.SteeringBehavior; -import com.badlogic.gdx.ai.utils.Location; -import com.badlogic.gdx.graphics.g2d.Batch; -import com.badlogic.gdx.graphics.g2d.Sprite; -import com.badlogic.gdx.math.Vector2; -import com.badlogic.gdx.physics.box2d.Body; -import net.shipsandgiggles.pirate.entity.EntityType; - -import java.util.UUID; - -import static net.shipsandgiggles.pirate.conf.Configuration.PIXEL_PER_METER; - -public abstract class ControlledEntity extends MovableEntity implements Steerable { - - private final float boundingBox; - private SteeringBehavior behavior; - private SteeringAcceleration steeringOutput; - private boolean tagged; - private float maxLinearSpeed, maxLinearAcceleration, maxAngularSpeed, maxAngularAcceleration; - private float zeroLinearSpeedThreshold; - private Type type; - private Body target; - private float amountOfRotations = 0; - private boolean independentFacing = false; // defines if the entity can move in a direction other than the way it faces) - private float angleToTarget = 0; - - public ControlledEntity(UUID uuid, Sprite texture, net.shipsandgiggles.pirate.entity.Location location, EntityType entityType, float maximumHealth, float spawnSpeed, float maximumSpeed, float height, float width, float boundingBox) { - super(uuid, texture, location, entityType, maximumHealth, spawnSpeed, maximumSpeed, height, width); - - this.boundingBox = boundingBox; - } - - public void init(Type type) { - this.maxLinearSpeed = 5000; - this.maxLinearAcceleration = 5000; - this.maxAngularSpeed = 90; - this.maxAngularAcceleration = 30; - this.zeroLinearSpeedThreshold = 0.1f; - this.type = type; - this.tagged = false; - this.steeringOutput = new SteeringAcceleration<>(new Vector2()); - - this.getBody().setFixedRotation(false); - this.getBody().setUserData(this); - this.getBody().setLinearDamping(1f); - } - - public boolean isIndependentFacing() { - return independentFacing; - } - - public void setIndependentFacing(boolean independentFacing) { - this.independentFacing = independentFacing; - } - - protected void applySteering() { - if (this.type.equals(Type.PLAYER)) { - return; - } - - boolean anyAccelerations = false; - float speedMultiplier = this.type.getSpeedMultiplier(); - float turnMultiplier = this.type.getTurnMultiplier(); - - // Update position and linear velocity. - if (!this.steeringOutput.linear.isZero()) { - // this method internally scales the force by deltaTime - getBody().applyForceToCenter(new Vector2(this.steeringOutput.linear.x * speedMultiplier, (this.steeringOutput.linear.y * speedMultiplier)), true); - anyAccelerations = true; - } - - // Update orientation and angular velocity - if (isIndependentFacing()) { - if (this.steeringOutput.angular != 0) { - // this method internally scales the torque by deltaTime - this.getBody().applyTorque(this.steeringOutput.angular * turnMultiplier, true); - anyAccelerations = true; - } - } else { - // If we haven't got any velocity, then we can do nothing. - Vector2 linVel = this.getLinearVelocity(); - if (!linVel.isZero(getZeroLinearSpeedThreshold())) { - this.setAngleToTarget((float) Math.atan2(this.target.getPosition().y - this.getPosition().y, this.target.getPosition().x - this.getPosition().x) - 1.5708f); - this.getBody().setTransform(this.getBody().getPosition().x, this.getBody().getPosition().y, this.getAngleToTarget()); - } - } - - if (anyAccelerations) { - // Cap the linear speed - Vector2 velocity = getBody().getLinearVelocity(); - float currentSpeedSquare = velocity.len2(); - float maxLinearSpeed = getMaxLinearSpeed(); - if (currentSpeedSquare > (maxLinearSpeed * maxLinearSpeed)) { - getBody().setLinearVelocity(velocity.scl(maxLinearSpeed / (float) Math.sqrt(currentSpeedSquare))); - } - // Cap the angular speed - float maxAngVelocity = getMaxAngularSpeed(); - if (getBody().getAngularVelocity() > maxAngVelocity) { - getBody().setAngularVelocity(maxAngVelocity); - } - } - } - - public void update(float delta, Batch batch) { - if (this.type.equals(Type.PLAYER)) { - return; - } - - if (behavior != null) { - this.steeringOutput = behavior.calculateSteering(steeringOutput); - this.applySteering(); - } - - this.draw(batch); - } - - @Override - public Vector2 getLinearVelocity() { - return super.getBody().getPosition(); - } - - public float getAmountOfRotations() { - return amountOfRotations; - } - - public void setAmountOfRotations(float amountOfRotations) { - this.amountOfRotations = amountOfRotations; - } - - @Override - public float getAngularVelocity() { - return this.getBody().getAngularVelocity(); - } - - @Override - public float getBoundingRadius() { - return this.boundingBox; - } - - public float getAngleToTarget() { - return angleToTarget; - } - - public void setAngleToTarget(float angleToTarget) { - this.angleToTarget = angleToTarget; - } - - @Override - public boolean isTagged() { - return this.tagged; - } - - @Override - public void setTagged(boolean tagged) { - this.tagged = tagged; - } - - - @Override - public float getZeroLinearSpeedThreshold() { - return this.zeroLinearSpeedThreshold; - } - - @Override - public void setZeroLinearSpeedThreshold(float value) { - this.zeroLinearSpeedThreshold = value; - } - - @Override - public float getMaxLinearSpeed() { - return this.maxLinearSpeed; - } - - @Override - public void setMaxLinearSpeed(float maxLinearSpeed) { - this.maxLinearSpeed = maxLinearSpeed; - } - - @Override - public float getMaxLinearAcceleration() { - return this.maxLinearAcceleration; - } - - @Override - public void setMaxLinearAcceleration(float maxLinearAcceleration) { - this.maxLinearSpeed = maxLinearAcceleration; - } - - public Body getTarget() { - return target; - } - - public void setTarget(Body body) { - this.target = body; - } - - @Override - public float getMaxAngularSpeed() { - return this.maxAngularSpeed; - } - - @Override - public void setMaxAngularSpeed(float maxAngularSpeed) { - this.maxAngularSpeed = maxAngularSpeed; - } - - @Override - public float getMaxAngularAcceleration() { - return this.maxAngularAcceleration; - } - - @Override - public void setMaxAngularAcceleration(float maxAngularAcceleration) { - this.maxAngularAcceleration = maxAngularAcceleration; - } - - @Override - public Vector2 getPosition() { - return this.getBody().getPosition(); - } - - @Override - public float getOrientation() { - return this.getBody().getAngle(); - } - - @Override - public void setOrientation(float orientation) { - - } - - @Override - public float vectorToAngle(Vector2 vector) { - return (float) Math.atan2(-vector.x, vector.y); - } - - @Override - public Vector2 angleToVector(Vector2 outVector, float angle) { - outVector.x = -(float) Math.sin(angle); - outVector.y = (float) Math.cos(angle); - return outVector; - } - - @Override - public Location newLocation() { - return null; - } - - public SteeringBehavior getBehavior() { - return this.behavior; - } - - public void setBehavior(SteeringBehavior behavior) { - this.behavior = behavior; - } - - @Override - public void draw(Batch batch) { - if (!this.type.equals(Type.PLAYER)) { - this.getSkin().setPosition(this.getBody().getPosition().x * PIXEL_PER_METER - (this.getSkin().getWidth() / 2f), this.getBody().getPosition().y * PIXEL_PER_METER - (this.getSkin().getHeight() / 2f)); - this.getSkin().setRotation((float) Math.toDegrees(this.getBody().getAngle())); - - batch.begin(); - this.getSkin().draw(batch); - batch.end(); - } - } - - public enum Type { - - ENEMY(60f, 0.1f), - PLAYER(400f, 2000f); - - private final float speedMultiplier; - private final float turnMultiplier; - - Type(float speedMultiplier, float turnMultiplier) { - this.speedMultiplier = speedMultiplier; - this.turnMultiplier = turnMultiplier; - } - - public float getSpeedMultiplier() { - return speedMultiplier; - } - - public float getTurnMultiplier() { - return turnMultiplier; - } - } -} \ No newline at end of file diff --git a/core/src/net/shipsandgiggles/pirate/entity/type/Ship.java b/core/src/net/shipsandgiggles/pirate/entity/type/Ship.java deleted file mode 100644 index 5e3c3a3..0000000 --- a/core/src/net/shipsandgiggles/pirate/entity/type/Ship.java +++ /dev/null @@ -1,113 +0,0 @@ -package net.shipsandgiggles.pirate.entity.type; - -import com.badlogic.gdx.graphics.g2d.Batch; -import com.badlogic.gdx.graphics.g2d.Sprite; -import com.badlogic.gdx.math.Vector2; -import com.badlogic.gdx.physics.box2d.Body; -import com.badlogic.gdx.physics.box2d.BodyDef; -import com.badlogic.gdx.physics.box2d.PolygonShape; -import net.shipsandgiggles.pirate.conf.Configuration; -import net.shipsandgiggles.pirate.entity.EntityType; -import net.shipsandgiggles.pirate.entity.Location; -import net.shipsandgiggles.pirate.screen.impl.GameScreen; - -import java.util.UUID; - -public class Ship extends ControlledEntity { - - private final float turnSpeed; - private final float driftFactor; - - private float turnDirection; - private float driveDirection; - private Sprite texture; - - public Ship(Sprite texture, float spawnSpeed, float maxSpeed, float driftFactor, float turnSpeed, Location location, float boundingBox, Type type) { - super(UUID.randomUUID(), texture, location, EntityType.SHIP, 20, spawnSpeed, maxSpeed, texture.getHeight(), texture.getWidth(), boundingBox); // TODO: Implement health. - - this.turnDirection = 0; - this.driveDirection = 0; - this.driftFactor = driftFactor; - this.turnSpeed = turnSpeed; - this.texture = texture; - - // Creation of Body - BodyDef bodyDef = new BodyDef(); - bodyDef.type = BodyDef.BodyType.DynamicBody; - bodyDef.position.set(location.getX(), location.getY()); - bodyDef.fixedRotation = false; - - Body entityBody = GameScreen.world.createBody(bodyDef); - PolygonShape shape = new PolygonShape(); - shape.setAsBox((this.getWidth() / 2) / Configuration.PIXEL_PER_METER, (this.getHeight() / 2) / Configuration.PIXEL_PER_METER); - entityBody.createFixture(shape, 1f); - this.setBody(entityBody); - shape.dispose(); - - this.init(type); - } - - @Override - public void death() { - - } - - public Vector2 getPosition() { - Vector2 position = new Vector2(); - - position.x = super.getLocation().getX(); - position.y = super.getLocation().getY(); - - return position; - } - - public Sprite getSprite() { - return this.texture; - } - - public Vector2 getForwardVelocity() { - Vector2 currentNormal = this.getBody().getWorldVector(new Vector2(0, 1)); - float dotProduct = currentNormal.dot(this.getBody().getLinearVelocity()); - - return multiply(dotProduct, currentNormal); - } - - public Vector2 multiply(float a, Vector2 v) { - return new Vector2(a * v.x, a * v.y); - } - - public Vector2 getLateralVelocity() { - Vector2 currentNormal = this.getBody().getWorldVector(new Vector2(1, 0)); - float dotProduct = currentNormal.dot(this.getBody().getLinearVelocity()); - - return multiply(dotProduct, currentNormal); - } - - public void setTexture(Sprite texture) { - this.texture = texture; - } - - public float getTurnDirection() { - return this.turnDirection; - } - - public void setTurnDirection(float turnDirection) { - this.turnDirection = turnDirection; - } - - public float getTurnSpeed() { - return this.turnSpeed; - } - - public float getDriveDirection() { - return this.driveDirection; - } - - public void setDriveDirection(float driveDirection) { - this.driveDirection = driveDirection; - } - - public float getDriftFactor() { - return this.driftFactor; - } -} \ No newline at end of file diff --git a/core/src/net/shipsandgiggles/pirate/listener/WorldContactListener.java b/core/src/net/shipsandgiggles/pirate/listener/WorldContactListener.java new file mode 100644 index 0000000..24b7ebd --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/listener/WorldContactListener.java @@ -0,0 +1,39 @@ +package net.shipsandgiggles.pirate.listener; + +import com.badlogic.gdx.physics.box2d.*; +import net.shipsandgiggles.pirate.entity.Ship; +import net.shipsandgiggles.pirate.entity.college.College; +import net.shipsandgiggles.pirate.entity.CannonBall; + +public class WorldContactListener implements ContactListener { + + /** checks for any collides in the game*/ + @Override + public void beginContact(Contact contact) { + Fixture fixtureA = contact.getFixtureA(); + Fixture fixtureB = contact.getFixtureB(); + if(fixtureA == null || fixtureB == null || fixtureB.getUserData() == null || fixtureA.getUserData() == null) return; + + if(fixtureB.getUserData() instanceof CannonBall){ /** checks if the collider is a cannon ball*/ + CannonBall ball = (CannonBall) fixtureB.getUserData(); + if(fixtureA.getUserData() instanceof College){ /** checks if its a college*/ + College college = (College) fixtureA.getUserData(); + college.damage(ball.getDamageDelt()); /** applies damage to college*/ + } + if(fixtureA.getUserData() instanceof Ship){ + Ship ship = (Ship) fixtureA.getUserData(); /** checks if its a player */ + ship.takeDamage(ball.getDamageDelt()); /** applies damage to ship */ + } + } + + } + + @Override + public void endContact(Contact contact) {} + + @Override + public void preSolve(Contact contact, Manifold oldManifold) {} + + @Override + public void postSolve(Contact contact, ContactImpulse impulse) {} +} diff --git a/core/src/net/shipsandgiggles/pirate/pref/GamePreferences.java b/core/src/net/shipsandgiggles/pirate/pref/GamePreferences.java index 4953d13..c2fb6c4 100644 --- a/core/src/net/shipsandgiggles/pirate/pref/GamePreferences.java +++ b/core/src/net/shipsandgiggles/pirate/pref/GamePreferences.java @@ -9,6 +9,7 @@ public class GamePreferences { private static final String PREF_MUSIC_ENABLED = "music.enabled"; private static final String PREF_VOLUME_ENABLED = "volume.enabled"; private static final String PREF_VOLUME_LEVEL = "volume.level"; + private static final String PREF_MUSIC_LEVEL = "music.level"; private static GamePreferences INSTANCE; private GamePreferences() { @@ -88,4 +89,9 @@ public void setVolumeLevel(float level) { this.prefs().putFloat(PREF_VOLUME_LEVEL, level); this.prefs().flush(); } + + public void setMusicVolumeLevel(float value) { + this.prefs().putFloat(PREF_MUSIC_LEVEL, value); + this.prefs().flush(); + } } \ No newline at end of file diff --git a/core/src/net/shipsandgiggles/pirate/screen/ScreenType.java b/core/src/net/shipsandgiggles/pirate/screen/ScreenType.java index 06e54d0..a89cafa 100644 --- a/core/src/net/shipsandgiggles/pirate/screen/ScreenType.java +++ b/core/src/net/shipsandgiggles/pirate/screen/ScreenType.java @@ -2,15 +2,16 @@ import com.badlogic.gdx.Screen; import net.shipsandgiggles.pirate.cache.Cache; -import net.shipsandgiggles.pirate.screen.impl.GameScreen; -import net.shipsandgiggles.pirate.screen.impl.LoadingScreen; -import net.shipsandgiggles.pirate.screen.impl.PreferenceScreen; +import net.shipsandgiggles.pirate.screen.impl.*; public enum ScreenType { LOADING(LoadingScreen.class), GAME(GameScreen.class), - PREFERENCE(PreferenceScreen.class); + PREFERENCE(PreferenceScreen.class), + INFORMATION(InformationScreen.class); + + /** creation of different screen types*/ private static final Cache SCREEN_CACHE = new Cache<>(null); diff --git a/core/src/net/shipsandgiggles/pirate/screen/impl/DeathScreen.java b/core/src/net/shipsandgiggles/pirate/screen/impl/DeathScreen.java new file mode 100644 index 0000000..92f37ef --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/screen/impl/DeathScreen.java @@ -0,0 +1,65 @@ +package net.shipsandgiggles.pirate.screen.impl; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.OrthographicCamera; +import com.badlogic.gdx.graphics.g2d.SpriteBatch; +import com.badlogic.gdx.scenes.scene2d.Stage; +import com.badlogic.gdx.scenes.scene2d.ui.Label; +import com.badlogic.gdx.scenes.scene2d.ui.Table; +import com.badlogic.gdx.utils.viewport.FitViewport; +import com.badlogic.gdx.utils.viewport.Viewport; +import net.shipsandgiggles.pirate.HUDmanager; +import net.shipsandgiggles.pirate.conf.Configuration; + +public class DeathScreen { + + /** adds the ui for the death screen*/ + public Stage stage; + private Viewport viewport; + public float score = 0; + public float Gold = 0; + + public Label scoreLabel; + public Label gold; + public Label gameOver; + + public DeathScreen(SpriteBatch batch){ + /** construction and setting of the labels*/ + viewport = new FitViewport(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), new OrthographicCamera()); + stage = new Stage(viewport, batch); + + Table endGameTable = new Table(); + + gameOver = new Label( "Game Over!", Configuration.SKIN, "title"); + scoreLabel = new Label( "Score : " + score, Configuration.SKIN, "big"); + gold = new Label( "Final Gold Count : " + Gold, Configuration.SKIN, "big"); + + gameOver.setFontScale(1.5f); + scoreLabel.setFontScale(0.75f); + gold.setFontScale(0.75f); + endGameTable.add(gameOver); + endGameTable.row(); + endGameTable.add(scoreLabel); + endGameTable.row(); + endGameTable.add(gold); + + endGameTable.setPosition(Gdx.graphics.getWidth()/2 , Gdx.graphics.getHeight()/2 + 100); + + stage.addActor(endGameTable); + } + + public void update(HUDmanager hud, int victorykind){ + /** update the variables and check for which victory achived*/ + if(victorykind == 1){ + gameOver.setText("Pacifist Victory!"); + } + if(victorykind == 2){ + gameOver.setText("Domination Victory!"); + } + score = hud.score; + Gold = hud.gold; + scoreLabel.setText("Score: " + score); + gold.setText("Final Gold Count: " + Gold); + } + +} diff --git a/core/src/net/shipsandgiggles/pirate/screen/impl/GameScreen.java b/core/src/net/shipsandgiggles/pirate/screen/impl/GameScreen.java index 23f706a..473b423 100644 --- a/core/src/net/shipsandgiggles/pirate/screen/impl/GameScreen.java +++ b/core/src/net/shipsandgiggles/pirate/screen/impl/GameScreen.java @@ -3,6 +3,7 @@ import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.Screen; +import com.badlogic.gdx.ai.steer.Steerable; import com.badlogic.gdx.ai.steer.behaviors.Arrive; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.OrthographicCamera; @@ -14,53 +15,72 @@ import com.badlogic.gdx.maps.tiled.renderers.OrthoCachedTiledMapRenderer; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.physics.box2d.*; -import net.shipsandgiggles.pirate.CameraManager; -import net.shipsandgiggles.pirate.TiledObjectUtil; +import net.shipsandgiggles.pirate.*; +import net.shipsandgiggles.pirate.conf.Configuration; +import net.shipsandgiggles.pirate.listener.WorldContactListener; +import net.shipsandgiggles.pirate.entity.EntityAi; import net.shipsandgiggles.pirate.entity.Location; -import net.shipsandgiggles.pirate.entity.type.ControlledEntity; -import net.shipsandgiggles.pirate.entity.type.Ship; +import net.shipsandgiggles.pirate.entity.Ship; +import net.shipsandgiggles.pirate.entity.BallsManager; +import net.shipsandgiggles.pirate.entity.impl.college.AlcuinCollege; +import net.shipsandgiggles.pirate.entity.impl.college.ConstantineCollege; +import net.shipsandgiggles.pirate.entity.impl.college.GoodrickCollege; +import net.shipsandgiggles.pirate.entity.impl.college.LangwithCollege; + +import java.util.ArrayList; import static net.shipsandgiggles.pirate.conf.Configuration.PIXEL_PER_METER; -// To Do: -// 2- upgrade Ai? -// 3- create proper map and ship models + public class GameScreen implements Screen { - //implement world + /** main game screen*/ + + public LangwithCollege langwith; + public ConstantineCollege constantine; + public AlcuinCollege alcuin; + public GoodrickCollege goodrick; + public Sprite collegeSprite; + public static float collegesKilled = 0; + + public static HUDmanager hud; + public DeathScreen deathScreen; + + public static ArrayList Explosions = new ArrayList(); + + /** implement world*/ public static World world; private final int _height = Gdx.graphics.getHeight(); private final int _width = Gdx.graphics.getWidth(); - //private Viewport viewport; - //objects private final Ship playerShips; - //camera work + /** camera work*/ private final OrthographicCamera camera; private final float Scale = 2; - //graphics - private final SpriteBatch batch; //batch of images "objects" - //private Texture background; changed to colour of "deep water" - //private Body[] islands; - //private Texture[] islandsTextures; + /**graphics */ + private final SpriteBatch batch; /**batch of images "objects" */ + public Sprite playerModel; + private final Texture[] boats; private final Box2DDebugRenderer renderer; private final OrthoCachedTiledMapRenderer tmr; private final TiledMap map; - public Sprite playerModel; float recordedSpeed = 0; int cameraState = 0; + public Sprite water; + public boolean intro = false; + public float zoomedAmount = 0; + EntityAi bob, player; + public static int collegesCaptured = 0; - private Ship enemyShips; + Sprite cannonBall; public GameScreen() { - //for (int x = 0; x < islands.length; x++) islands[x] = createBox(22, 34, true, new Vector2(29,39)); - //islands = new Body[1]; - //islandsTextures = new Texture[1]; - //islandsTextures[0] = new Texture(Gdx.files.internal("models/island1.png")); + + /** initialization of everything*/ renderer = new Box2DDebugRenderer(); world = new World(new Vector2(0, 0), false); @@ -68,41 +88,69 @@ public GameScreen() { boats[0] = new Texture(Gdx.files.internal("models/ship1.png")); boats[1] = new Texture(Gdx.files.internal("models/ship2.png")); boats[2] = new Texture(Gdx.files.internal("models/ship3.png")); + collegeSprite = new Sprite(new Texture("models/castle.png")); + + cannonBall = new Sprite(new Texture(Gdx.files.internal("models/cannonBall.png"))); + water = new Sprite(new Texture(Gdx.files.internal("models/water.jpg"))); + camera = new OrthographicCamera(); camera.setToOrtho(false, _width / Scale, _height / Scale); - //viewport = new StretchViewport(_width, _height, camera); batch = new SpriteBatch(); + world.setContactListener(new WorldContactListener()); + camera.zoom = 2; + + + + /** objects setup*/ - //objects setup - //int random = (int) Math.floor((Math.random() * 2.99f)); //generate random boat playerModel = new Sprite(new Texture(Gdx.files.internal("models/ship1.png"))); - playerShips = new Ship(playerModel, 40000f, 120f, 0.3f, 2f, new Location(_width / 2f, _height / 4f), 3, ControlledEntity.Type.PLAYER); + playerShips = new Ship(playerModel, 40000f, 100f, 0.3f, 2f, new Location(_width / 2f, _height / 2f), playerModel.getHeight(), playerModel.getWidth(), camera); + + playerShips.setTexture(playerModel); - //islands[0] = createBox(islandsTextures[0].getWidth(), islandsTextures[0].getHeight(), true , new Vector2(300,300)); - //enemyShips = new Ship(boats[random], 10, _width / 2, _height* 3/ 4, 20, 40); + + /** map initialization */ map = new TmxMapLoader().load("models/map.tmx"); tmr = new OrthoCachedTiledMapRenderer(map); + + TiledObjectUtil.parseTiledObjectLayer(world, map.getLayers().get("collider").getObjects()); - playerShips.getBody().setLinearDamping(0.5f); + /** creates damping to player */ + playerShips.getEntityBody().setLinearDamping(0.5f); Sprite bobsSprite = new Sprite(new Texture(Gdx.files.internal("models/ship2.png"))); - this.enemyShips = new Ship(bobsSprite, 20000f, 120f, 0.3f, 2f, new Location(_width / 3f, _height / 6f), 300f, ControlledEntity.Type.ENEMY); - this.enemyShips.setTarget(playerShips.getBody()); + /** enemy creation "bob" and Entity ai controller*/ + Body body = createEnemy((int)bobsSprite.getWidth(), (int)bobsSprite.getHeight(), false, new Vector2(_width / 3f, _height / 6f)); + bob = new EntityAi(body, 300f, bobsSprite); + bob.setTarget(playerShips.getEntityBody()); + + player = new EntityAi(playerShips.getEntityBody(), 3); + Steerable pp = player; - Arrive arrives = new Arrive<>(this.enemyShips, this.playerShips) - .setTimeToTarget(0.01f) - .setArrivalTolerance(2f) - .setDecelerationRadius(10); - this.enemyShips.setBehavior(arrives); + /** status of entity ai */ + Arrive arrives = new Arrive(bob, pp) + .setTimeToTarget(0.01f) + .setArrivalTolerance(175f) + .setDecelerationRadius(50); + bob.setBehavior(arrives); + + /** set up college*/ + langwith = new LangwithCollege(collegeSprite, new Location(150f,151f), 200f, world); + goodrick = new GoodrickCollege(collegeSprite, new Location(150f,975f), 200f, world); + alcuin = new AlcuinCollege(collegeSprite, new Location(1750f,151f), 200f, world); + constantine = new ConstantineCollege(collegeSprite, new Location(1750f,975f), 200f, world); + + hud = new HUDmanager(batch); + deathScreen = new DeathScreen(batch); } @@ -112,47 +160,114 @@ public void show() { } @Override - public void render(float deltaTime) { //yay c# less goooooo (i changed it to deltaTime cuz im used to it being that from c#) - update(Gdx.graphics.getDeltaTime()); - Gdx.gl.glClearColor(.1f, .36f, .70f, 1f); - Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); + public void render(float deltaTime) { + /** zoom controller for the intro*/ + if(!intro){ + camera.zoom -= 0.02f; + zoomedAmount += 0.02; + if(zoomedAmount >= 1){ + intro = true; + } + } + /** does the update methid*/ + update(); + /** colour creation for background*/ + Gdx.gl.glClearColor(.98f, .91f, .761f, 1f); + Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); + batch.begin(); + /** draws the water manually to use less resources*/ + water.draw(batch); + batch.end(); + tmr.render(); + BallsManager.updateBalls(batch); + + /** setting ship position for the sprite of the player ship*/ + playerShips.getSprite().setPosition(playerShips.getEntityBody().getPosition().x * PIXEL_PER_METER - (playerShips.getSkin().getWidth() / 2f), playerShips.getEntityBody().getPosition().y * PIXEL_PER_METER - (playerShips.getSkin().getHeight() / 2f)); + playerShips.getSprite().setRotation((float) Math.toDegrees(playerShips.getEntityBody().getAngle())); - playerShips.getSprite().setPosition(playerShips.getBody().getPosition().x * PIXEL_PER_METER - (playerShips.getSkin().getWidth() / 2f), playerShips.getBody().getPosition().y * PIXEL_PER_METER - (playerShips.getSkin().getHeight() / 2f)); - playerShips.getSprite().setRotation((float) Math.toDegrees(playerShips.getBody().getAngle())); - batch.begin(); - playerShips.getSprite().draw(batch); //player - //batch.draw(playerShips.getSkin(), playerShips.getBody().getPosition().x * PIXEL_PER_METER - (playerShips.getSkin().getWidth() / 2f), playerShips.getBody().getPosition().y * PIXEL_PER_METER - (playerShips.getSkin().getHeight() / 2f)); + //batch.draw(playerShips.getSkin(), playerShips.getEntityBody().getPosition().x * PIXEL_PER_METER - (playerShips.getSkin().getWidth() / 2f), playerShips.getEntityBody().getPosition().y * PIXEL_PER_METER - (playerShips.getSkin().getHeight() / 2f)); //batch.draw(islandsTextures[0], islands[0].getPosition().x * PixelPerMeter - (islandsTextures[0].getWidth()/2), islands[0].getPosition().y * PixelPerMeter - (islandsTextures[0].getHeight()/2)); //enemyShips.draw(batch); - batch.end(); - renderer.render(world, camera.combined.scl(PIXEL_PER_METER)); - this.enemyShips.update(deltaTime, batch); + + /** update all the colleges and entities*/ + playerShips.draw(batch); + langwith.draw(batch); + langwith.shootPlayer(playerShips); + constantine.draw(batch); + constantine.shootPlayer(playerShips); + goodrick.draw(batch); + goodrick.shootPlayer(playerShips); + alcuin.draw(batch); + alcuin.shootPlayer(playerShips); + + //renderer.render(world, camera.combined.scl(PIXEL_PER_METER)); + bob.update(deltaTime, batch); + + /** update for the explosion*/ + updateExplosions(); + + + /** change of ui incase of victory or death or normal hud*/ + if(playerShips.dead){ + deathScreen.update(hud, 0); + batch.setProjectionMatrix(deathScreen.stage.getCamera().combined); + deathScreen.stage.draw(); + return; + } + if(collegesCaptured == 4){ + deathScreen.update(hud, 1); + batch.setProjectionMatrix(deathScreen.stage.getCamera().combined); + deathScreen.stage.draw(); + return; + } + if(collegesKilled == 4){ + deathScreen.update(hud, 2); + batch.setProjectionMatrix(deathScreen.stage.getCamera().combined); + deathScreen.stage.draw(); + return; + } + batch.setProjectionMatrix(hud.stage.getCamera().combined); + hud.stage.draw(); + hud.updateLabels(batch); } - public void update(float deltaTime) { + /** updating the explosions*/ + private void updateExplosions() { + ArrayList removeExplosion = new ArrayList(); + for(ExplosionController explosion : Explosions){ + explosion.update(); + + explosion.draw(batch); + if(explosion.remove)removeExplosion.add(explosion); + } + Explosions.removeAll(removeExplosion); + } + + public void update() { world.step(1 / 60f, 6, 2); updateCamera(); - inputUpdate(deltaTime); + inputUpdate(); processInput(); handleDirft(); tmr.setView(camera); batch.setProjectionMatrix(camera.combined); - } + playerShips.updateShots(world, cannonBall, camera, Configuration.Cat_Player, (short)(Configuration.Cat_Enemy | Configuration.Cat_College), (short) 0); - public void inputUpdate(float deltaTime) { - //int xForce = 0; - //int yForce = 0; + } - if (playerShips.getBody().getLinearVelocity().len() > 20f) { + public void inputUpdate() { + /** checking for inputs*/ + if (playerShips.dead) return; + if (playerShips.getEntityBody().getLinearVelocity().len() > 20f) { if (Gdx.input.isKeyPressed(Input.Keys.LEFT) | Gdx.input.isKeyPressed(Input.Keys.A)) { playerShips.setTurnDirection(2); } else if (Gdx.input.isKeyPressed(Input.Keys.RIGHT) | Gdx.input.isKeyPressed(Input.Keys.D)) { @@ -171,8 +286,9 @@ public void inputUpdate(float deltaTime) { playerShips.setDriveDirection(0); } + if (Gdx.input.isKeyJustPressed(Input.Keys.P)) { - System.out.println("current ship position is x = " + playerShips.getBody().getPosition().x + " and y = " + playerShips.getBody().getPosition().y); + System.out.println(playerShips.getEntityBody().getPosition()); } if (Gdx.input.isKeyJustPressed(Input.Keys.C)) { if (cameraState == 0) cameraState = 1; @@ -186,24 +302,33 @@ public void inputUpdate(float deltaTime) { } if (Gdx.input.isKeyJustPressed(Input.Keys.B)) { - if (cameraState == 5) { + if(cameraState == 5){ cameraState = 0; - } else { + } + else{ cameraState = 5; } } - + /** creating zooming */ + if (Gdx.input.isKeyPressed(Input.Keys.NUM_1)) { + if(camera.zoom < 2)camera.zoom += 0.02f; + } + if (Gdx.input.isKeyPressed(Input.Keys.NUM_2)) { + if(camera.zoom > 1)camera.zoom -= 0.02f; + } } private void processInput() { + /** processing the input created*/ + if (playerShips.dead) return; Vector2 baseVector = new Vector2(0, 0); - //System.out.println(playerShips.getBody().getAngle()); + /** apllying liner velocity to the player based on input*/ float turnPercentage = 0; - if (playerShips.getBody().getLinearVelocity().len() < (playerShips.getMaximumSpeed() / 2)) { - turnPercentage = playerShips.getBody().getLinearVelocity().len() / (playerShips.getMaximumSpeed()); + if (playerShips.getEntityBody().getLinearVelocity().len() < (playerShips.getMaximumSpeed() / 2)) { + turnPercentage = playerShips.getEntityBody().getLinearVelocity().len() / (playerShips.getMaximumSpeed()); } else { turnPercentage = 1; } @@ -211,44 +336,48 @@ private void processInput() { float currentTurnSpeed = playerShips.getTurnSpeed() * turnPercentage; + /** applying angular velocity to the player based on input*/ if (playerShips.getTurnDirection() == 1) { - playerShips.getBody().setAngularVelocity(-currentTurnSpeed); + playerShips.getEntityBody().setAngularVelocity(-currentTurnSpeed); } else if (playerShips.getTurnDirection() == 2) { - playerShips.getBody().setAngularVelocity(currentTurnSpeed); - } else if (playerShips.getTurnDirection() == 0 && playerShips.getBody().getAngularVelocity() != 0) { - playerShips.getBody().setAngularVelocity(0); + playerShips.getEntityBody().setAngularVelocity(currentTurnSpeed); + } else if (playerShips.getTurnDirection() == 0 && playerShips.getEntityBody().getAngularVelocity() != 0) { + playerShips.getEntityBody().setAngularVelocity(0); } + /** applies speed to the player based on input*/ if (playerShips.getDriveDirection() == 1) { baseVector.set(0, playerShips.getSpeed()); } else if (playerShips.getDriveDirection() == 2) { baseVector.set(0, -playerShips.getSpeed() * 4 / 5); } - if (playerShips.getBody().getLinearVelocity().len() > 0 && Gdx.input.isKeyPressed(Input.Keys.SPACE)) { - playerShips.getBody().setLinearDamping(1.75f); + if (playerShips.getEntityBody().getLinearVelocity().len() > 0 && Gdx.input.isKeyPressed(Input.Keys.SPACE)) { + playerShips.getEntityBody().setLinearDamping(1.75f); } else { - playerShips.getBody().setLinearDamping(0.5f); + playerShips.getEntityBody().setLinearDamping(0.5f); } - //recordedSpeed = playerShips.getBody().getLinearVelocity().len(); - if (playerShips.getBody().getLinearVelocity().len() > playerShips.getMaximumSpeed() / 3f) { + //recordedSpeed = playerShips.getEntityBody().getLinearVelocity().len(); + if (playerShips.getEntityBody().getLinearVelocity().len() > playerShips.getMaximumSpeed() / 3f) { playerShips.setSpeed(playerShips.getOriginalSpeed() * 2); } else { playerShips.setSpeed(playerShips.getOriginalSpeed()); } - if (!baseVector.isZero() && (playerShips.getBody().getLinearVelocity().len() < playerShips.getMaximumSpeed())) { - playerShips.getBody().applyForceToCenter(playerShips.getBody().getWorldVector(baseVector), true); + if (!baseVector.isZero() && (playerShips.getEntityBody().getLinearVelocity().len() < playerShips.getMaximumSpeed())) { + playerShips.getEntityBody().applyForceToCenter(playerShips.getEntityBody().getWorldVector(baseVector), true); } } private void handleDirft() { + /** handles drifts of the boat */ Vector2 forwardSpeed = playerShips.getForwardVelocity(); Vector2 lateralSpeed = playerShips.getLateralVelocity(); - playerShips.getBody().setLinearVelocity(forwardSpeed.x + lateralSpeed.x * playerShips.getDriftFactor(), forwardSpeed.y + lateralSpeed.y * playerShips.getDriftFactor()); + playerShips.getEntityBody().setLinearVelocity(forwardSpeed.x + lateralSpeed.x * playerShips.getDriftFactor(), forwardSpeed.y + lateralSpeed.y * playerShips.getDriftFactor()); } @Override public void resize(int width, int height) { + /** resize function*/ camera.setToOrtho(false, width / 2, height / 2); //viewport.update(width,height, true); //batch.setProjectionMatrix(camera.combined); @@ -271,6 +400,7 @@ public void hide() { @Override public void dispose() { + /** disposing of everything*/ renderer.dispose(); world.dispose(); tmr.dispose(); @@ -279,19 +409,24 @@ public void dispose() { } public void updateCamera() { + /** updating camera based on states*/ + if(playerShips.dead) { + if(camera.zoom < 2)camera.zoom += 0.005f; + CameraManager.lerpOn(camera, playerShips.deathPosition, 0.1f); + return; + } if (cameraState == 0) { - CameraManager.lerpOn(camera, playerShips.getBody().getPosition(), 0.1f); + CameraManager.lerpOn(camera, playerShips.getEntityBody().getPosition(), 0.1f); } if (cameraState == -1) { - CameraManager.lockOn(camera, playerShips.getBody().getPosition()); + CameraManager.lockOn(camera, playerShips.getEntityBody().getPosition()); } if (cameraState == 5) { - CameraManager.lerpOn(camera, this.enemyShips.getBody().getPosition(), 0.1f); + CameraManager.lerpOn(camera, bob.getBody().getPosition(), 0.1f); } } - public Body createBox(int width, int height, boolean isStatic, Vector2 position) { - System.out.println("kk"); + public Body createEnemy(int width, int height, boolean isStatic, Vector2 position) {/** creation of the body for the enemy*/ Body body; BodyDef def = new BodyDef(); @@ -299,13 +434,34 @@ public Body createBox(int width, int height, boolean isStatic, Vector2 position) else def.type = BodyDef.BodyType.DynamicBody; def.position.set(position); + def.fixedRotation = true; body = world.createBody(def); PolygonShape shape = new PolygonShape(); shape.setAsBox((width / 2f) / PIXEL_PER_METER, (height / 2f) / PIXEL_PER_METER); - body.createFixture(shape, 1f); + FixtureDef fixtureDef = new FixtureDef(); + fixtureDef.shape = shape; + fixtureDef. density = 1f; + fixtureDef.filter.categoryBits = Configuration.Cat_Enemy; + + body.createFixture(fixtureDef).setUserData(this); shape.dispose(); return body; } + + public static World getWorld(){ + return world; + } + public static void add(Vector2 pp){ + Explosions.add(new ExplosionController(pp)); + } + + public static void collegeKilled(){ + /** adds for each college killed to count for victory*/ + collegesKilled ++; + collegesCaptured--; + } + /** adds college captured to check for victory*/ + public static void collegeCaptured(){collegesCaptured ++;} } \ No newline at end of file diff --git a/core/src/net/shipsandgiggles/pirate/screen/impl/InformationScreen.java b/core/src/net/shipsandgiggles/pirate/screen/impl/InformationScreen.java new file mode 100644 index 0000000..cb12255 --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/screen/impl/InformationScreen.java @@ -0,0 +1,153 @@ +package net.shipsandgiggles.pirate.screen.impl; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.Input; +import com.badlogic.gdx.Screen; +import com.badlogic.gdx.graphics.GL20; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.graphics.g2d.SpriteBatch; +import com.badlogic.gdx.scenes.scene2d.Stage; +import com.badlogic.gdx.scenes.scene2d.actions.Actions; +import com.badlogic.gdx.scenes.scene2d.ui.Label; +import com.badlogic.gdx.scenes.scene2d.ui.Table; +import com.badlogic.gdx.utils.Align; +import com.badlogic.gdx.utils.Timer; +import com.badlogic.gdx.utils.viewport.ScreenViewport; +import net.shipsandgiggles.pirate.conf.Configuration; +import net.shipsandgiggles.pirate.screen.ScreenType; +import net.shipsandgiggles.pirate.task.ChangeScreenTask; + +public class InformationScreen implements Screen { + + /** the information screen before the game begins*/ + /** all using simple ui */ + + private Stage stage; + private Table table; + + private Timer.Task task; + public final Sprite background = new Sprite(new Texture(Gdx.files.internal("models/background.PNG")));; + private final SpriteBatch batch = new SpriteBatch();; + + @Override + public void show() { + this.table = new Table(); + + this.table.setFillParent(true); + + this.stage = new Stage(new ScreenViewport()); + Gdx.input.setInputProcessor(this.stage); + this.stage.addActor(this.table); + + /** creating all the labels*/ + Label informationLabel = new Label("INFORMATION!", Configuration.SKIN, "title"); + informationLabel.setAlignment(Align.center); + + Label keysInformation = new Label("Use your arrow keys or WASD to move around.", Configuration.SKIN, "big"); + keysInformation.setAlignment(Align.center); + + Label shootingInformation = new Label("There are two methods of shooting, burst and singular.", Configuration.SKIN, "big"); + shootingInformation.setAlignment(Align.center); + + Label shootingInformationTwo = new Label("Click where you want to shoot!", Configuration.SKIN, "big"); + shootingInformationTwo.setAlignment(Align.center); + + Label burstShoot = new Label("Right-Click to burst shoot!", Configuration.SKIN, "big"); + burstShoot.setAlignment(Align.center); + + Label singularShoot = new Label("Left-Click to singular shoot!", Configuration.SKIN, "big"); + singularShoot.setAlignment(Align.center); + + Label collegeInfo1 = new Label("There are two ways to win the game!", Configuration.SKIN, "big"); + Label collegeInfo2 = new Label("taking down a college will give you 5 gold and 3 score a second and if you capture all of them you win!", Configuration.SKIN, "big"); + Label collegeInfo3 = new Label("the other way is to destroy all of them which will give you an instant 500 gold and 250 score!", Configuration.SKIN, "big"); + Label collegeInfo4 = new Label("destroying all of them will result in a victory!", Configuration.SKIN, "big"); + + Label spaceToSkip = new Label("Press the space bar to skip the information!", Configuration.SKIN); + spaceToSkip.setAlignment(Align.center); + + /**Creates a uniform X/Y table. */ + this.table.add(informationLabel); + this.table.row(); + this.table.add(Configuration.SPACER_LABEL); + this.table.row(); + this.table.add(keysInformation); + this.table.row(); + this.table.add(Configuration.SPACER_LABEL); + this.table.row(); + this.table.add(shootingInformation); + this.table.row(); + this.table.add(shootingInformationTwo); + this.table.row(); + this.table.add(Configuration.SPACER_LABEL); + this.table.row(); + this.table.add(burstShoot); + this.table.row(); + this.table.add(singularShoot); + this.table.row(); + this.table.add(Configuration.SPACER_LABEL); + this.table.row(); + this.table.add(Configuration.SPACER_LABEL); + this.table.row(); + this.table.row(); + this.table.add(collegeInfo1); + this.table.row(); + this.table.add(collegeInfo2); + this.table.row(); + this.table.add(collegeInfo3); + this.table.row(); + this.table.add(collegeInfo4); + this.table.row(); + this.table.row(); + this.table.add(spaceToSkip); + + this.task = Timer.schedule(new ChangeScreenTask(ScreenType.GAME), 40); + } + + @Override + public void render(float delta) { + Gdx.gl.glClearColor(.98f, .91f, .761f, 1f); + Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); + batch.begin(); + background.draw(batch); + batch.end(); + + this.stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f)); + this.stage.draw(); + + takeInput(); + } + + @Override + public void resize(int width, int height) { + this.stage.getViewport().update(width, height, true); + } + + @Override + public void pause() { + + } + + @Override + public void resume() { + + } + + @Override + public void hide() { + this.stage.getRoot().getColor().a = 0; + this.stage.getRoot().addAction(Actions.fadeOut(1)); + } + + @Override + public void dispose() { + this.stage.dispose(); + } + + public void takeInput() { + if (Gdx.input.isKeyPressed(Input.Keys.SPACE)) { + this.task.run(); + } + } +} \ No newline at end of file diff --git a/core/src/net/shipsandgiggles/pirate/screen/impl/LoadingScreen.java b/core/src/net/shipsandgiggles/pirate/screen/impl/LoadingScreen.java index 7e19ed7..6385d06 100644 --- a/core/src/net/shipsandgiggles/pirate/screen/impl/LoadingScreen.java +++ b/core/src/net/shipsandgiggles/pirate/screen/impl/LoadingScreen.java @@ -3,6 +3,9 @@ import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Screen; import com.badlogic.gdx.graphics.GL20; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.Table; @@ -10,16 +13,24 @@ import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener; import com.badlogic.gdx.utils.viewport.ScreenViewport; import net.shipsandgiggles.pirate.PirateGame; +import net.shipsandgiggles.pirate.SoundController; import net.shipsandgiggles.pirate.conf.Configuration; import net.shipsandgiggles.pirate.screen.ScreenType; public class LoadingScreen implements Screen { + /** the main screen */ + + public static SoundController soundController; private Stage stage; private Table table; + public Sprite background = new Sprite(new Texture(Gdx.files.internal("models/background.PNG")));; + private final SpriteBatch batch = new SpriteBatch();; + @Override public void show() { + this.soundController = new SoundController(); this.table = new Table(); this.table.setFillParent(true); @@ -30,40 +41,44 @@ public void show() { this.stage.addActor(this.table); - // Initialise Buttons + /** Initialise Buttons*/ - // New Game Button + /** New Game Button*/ TextButton newGame = new TextButton("New Game", Configuration.SKIN); newGame.addListener(new ChangeListener() { @Override public void changed(ChangeEvent event, Actor actor) { - PirateGame.get().changeScreen(ScreenType.GAME); + LoadingScreen.soundController.playButtonPress(); + PirateGame.get().changeScreen(ScreenType.INFORMATION); } }); - // Preferences Button + /**Preferences Button */ TextButton preferences = new TextButton("Preferences", Configuration.SKIN); preferences.addListener(new ChangeListener() { @Override public void changed(ChangeEvent event, Actor actor) { + LoadingScreen.soundController.playButtonPress(); PirateGame.get().changeScreen(ScreenType.PREFERENCE); } }); - // Exit Button + /** Exit Button*/ TextButton exit = new TextButton("Exit", Configuration.SKIN); exit.addListener(new ChangeListener() { @Override public void changed(ChangeEvent event, Actor actor) { + + LoadingScreen.soundController.playButtonPress(); Gdx.app.exit(); } }); - // Loading Screen Data + /** Loading Screen Data*/ - // Creates a uniform X/Y table. + /**Creates a uniform X/Y table. */ table.add(newGame).fillX().uniformX(); - // Sets default gap between. + /** Sets default gap between.*/ table.row().pad(10, 0, 10, 0); table.add(preferences).fillX().uniformX(); table.row(); @@ -72,9 +87,12 @@ public void changed(ChangeEvent event, Actor actor) { @Override public void render(float delta) { - Gdx.gl.glClearColor(0f, 0f, 0f, 1); + Gdx.gl.glClearColor(.98f, .91f, .761f, 1f); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); - + batch.begin(); + background.draw(batch); + batch.end(); + this.soundController.update(); this.stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f)); this.stage.draw(); } diff --git a/core/src/net/shipsandgiggles/pirate/screen/impl/PreferenceScreen.java b/core/src/net/shipsandgiggles/pirate/screen/impl/PreferenceScreen.java index b964431..8df24b1 100644 --- a/core/src/net/shipsandgiggles/pirate/screen/impl/PreferenceScreen.java +++ b/core/src/net/shipsandgiggles/pirate/screen/impl/PreferenceScreen.java @@ -10,12 +10,15 @@ import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.viewport.ScreenViewport; import net.shipsandgiggles.pirate.PirateGame; +import net.shipsandgiggles.pirate.SoundController; import net.shipsandgiggles.pirate.conf.Configuration; import net.shipsandgiggles.pirate.pref.GamePreferences; import net.shipsandgiggles.pirate.screen.ScreenType; public class PreferenceScreen implements Screen { + /** preference screen in the main menu*/ + private Stage stage; private Table table; @@ -35,22 +38,32 @@ public void show() { Label preferencesLabel = new Label("Game Preferences", Configuration.SKIN, "big"); preferencesLabel.setAlignment(Align.center); - // Music Volume Settings + /** Music Volume Settings*/ + + Slider VolumeSlider = new Slider(0f, 1f, 0.1f, false, Configuration.SKIN); + VolumeSlider.setValue(gamePreferences.getVolumeLevel()); + VolumeSlider.addListener(event -> { + gamePreferences.setVolumeLevel(VolumeSlider.getValue()); + return true; + }); + + Label VolumeLabel = new Label("Volume", Configuration.SKIN); Slider musicVolumeSlider = new Slider(0f, 1f, 0.1f, false, Configuration.SKIN); musicVolumeSlider.setValue(gamePreferences.getVolumeLevel()); musicVolumeSlider.addListener(event -> { - gamePreferences.setVolumeLevel(musicVolumeSlider.getValue()); + gamePreferences.setMusicVolumeLevel(musicVolumeSlider.getValue()); return true; }); Label musicVolumeLabel = new Label("Music Volume", Configuration.SKIN); - // Music Enabled Settings + /** Music Enabled Settings*/ CheckBox musicEnabled = new CheckBox(null, Configuration.SKIN); musicEnabled.setChecked(gamePreferences.isMusicEnabled()); musicEnabled.addListener(event -> { + boolean enabled = musicEnabled.isChecked(); gamePreferences.setMusicEnabled(enabled); return true; @@ -58,7 +71,7 @@ public void show() { Label musicEnabledLabel = new Label("Music Enabled", Configuration.SKIN); - // Volume Enabled Settings + /** Volume Enabled Settings*/ CheckBox volumeEnabled = new CheckBox(null, Configuration.SKIN); volumeEnabled.setChecked(gamePreferences.isVolumeEnabled()); @@ -70,19 +83,24 @@ public void show() { Label volumeLabel = new Label("Volume Enabled", Configuration.SKIN); - TextButton backButton = new TextButton("Back", Configuration.SKIN); // the extra argument here "small" is used to set the button to the smaller version instead of the big default version - backButton.addListener(new ChangeListener() { + TextButton backButton = new TextButton("Back", Configuration.SKIN); /** the extra argument here "small" is used to set the button to the smaller version instead of the big default version*/ + backButton.addListener( + new ChangeListener() { @Override public void changed(ChangeEvent event, Actor actor) { + LoadingScreen.soundController.pauseAll(); PirateGame.get().changeScreen(ScreenType.LOADING); } }); - // Creates a uniform X/Y table. + /** Creates a uniform X/Y table.*/ this.table.add(preferencesLabel); this.table.row(); this.table.add(Configuration.SPACER_LABEL); this.table.row(); + this.table.add(VolumeLabel); + this.table.add(VolumeSlider); + this.table.row(); this.table.add(musicVolumeLabel); this.table.add(musicVolumeSlider); this.table.row(); @@ -103,7 +121,7 @@ public void changed(ChangeEvent event, Actor actor) { public void render(float delta) { Gdx.gl.glClearColor(165f / 255f, 220f / 255f, 236f / 255f, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); - + LoadingScreen.soundController.update(); this.stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f)); this.stage.draw(); } diff --git a/core/src/net/shipsandgiggles/pirate/task/ChangeScreenTask.java b/core/src/net/shipsandgiggles/pirate/task/ChangeScreenTask.java new file mode 100644 index 0000000..e5939cb --- /dev/null +++ b/core/src/net/shipsandgiggles/pirate/task/ChangeScreenTask.java @@ -0,0 +1,21 @@ +package net.shipsandgiggles.pirate.task; + +import com.badlogic.gdx.utils.Timer; +import net.shipsandgiggles.pirate.PirateGame; +import net.shipsandgiggles.pirate.screen.ScreenType; + +public class ChangeScreenTask extends Timer.Task { + + /** changing the screen*/ + + private final ScreenType screenType; + + public ChangeScreenTask(ScreenType screenType) { + this.screenType = screenType; + } + + @Override + public void run() { + PirateGame.get().changeScreen(this.screenType); + } +} \ No newline at end of file diff --git a/core/src/net/shipsandgiggles/pirate/util/Preconditions.java b/core/src/net/shipsandgiggles/pirate/util/Preconditions.java index c3ef3d3..f368f95 100644 --- a/core/src/net/shipsandgiggles/pirate/util/Preconditions.java +++ b/core/src/net/shipsandgiggles/pirate/util/Preconditions.java @@ -4,6 +4,8 @@ public class Preconditions { + /** preconditions for the game to check if its null or not*/ + public static void checkNotNull(T value, String error) { if (value == null) { throw new NullPointerException(error); diff --git a/desktop/gradle/wrapper/gradle-wrapper.properties b/desktop/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..f371643 --- /dev/null +++ b/desktop/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/desktop/out/production/resources/badlogic.jpg b/desktop/out/production/resources/badlogic.jpg deleted file mode 100644 index 4390da6..0000000 Binary files a/desktop/out/production/resources/badlogic.jpg and /dev/null differ diff --git a/desktop/out/production/resources/models/download.png b/desktop/out/production/resources/models/download.png deleted file mode 100644 index c042ad4..0000000 Binary files a/desktop/out/production/resources/models/download.png and /dev/null differ diff --git a/desktop/out/production/resources/models/download.tsx b/desktop/out/production/resources/models/download.tsx deleted file mode 100644 index 4522f4c..0000000 --- a/desktop/out/production/resources/models/download.tsx +++ /dev/null @@ -1,18 +0,0 @@ - -< -tileset -version = "1.5" -tiledversion = "1.7.2" -name = "download" -tilewidth = "32" -tileheight = "32" -tilecount = "48" -columns = "8" > - < image -source = "download.png" -width = "256" -height = "192" / > - < /tileset> diff --git a/desktop/out/production/resources/models/island1.png b/desktop/out/production/resources/models/island1.png deleted file mode 100644 index e783f8c..0000000 Binary files a/desktop/out/production/resources/models/island1.png and /dev/null differ diff --git a/desktop/out/production/resources/models/map.tmx b/desktop/out/production/resources/models/map.tmx deleted file mode 100644 index f99cbc9..0000000 --- a/desktop/out/production/resources/models/map.tmx +++ /dev/null @@ -1,65 +0,0 @@ - - - - - -29,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,23,37,37,13, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,37,37,38, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,38,38,15, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,4,5,5,5,6,13,39,15, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,12,12,13,12,15,46,46,46, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,12,13,12,12,15,46,15,46, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,20,21,22,20,23,46,13,15, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,22,22,23, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,5,5,5,5,5,5,5,5,5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,5,16,5,5,5,5,5,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,6,12,12,12,12,15,15,12,12,12,12,29,1,1,1,1,1,1,1,1,1,1,1,1,1,11,13,24,12,12,14,12,12,29,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,18,37,38,39,33,27,27,27,27,34,12,8,1,1,1,1,1,1,1,1,1,1,1,1,1,11,12,32,14,35,36,14,12,29,1,1,1,1,1,1,11, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,25,27,27,27,42,12,35,36,12,28,15,29,1,1,1,1,1,1,1,1,1,1,1,1,8,11,13,40,12,43,44,12,14,31,8,1,1,1,1,1,19, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,23,37,38,39,12,12,43,44,12,28,12,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,12,12,12,46,46,12,12,12,18,18,18,18,18,18,18, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,12,12,12,7,12,46,33,27,27,27,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,34,12,33,27,27,27,27,27,26,26,26,26,26,26,26, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,6,12,7,14,7,12,12,28,12,12,14,29,1,2,1,1,1,1,2,1,1,1,1,2,8,11,28,12,28,12,12,13,12,31,8,1,1,2,1,1,3, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,18,12,12,12,14,12,12,28,14,12,12,29,1,1,1,1,1,1,1,1,1,1,1,1,1,11,28,12,28,13,15,35,36,29,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,25,27,27,27,27,27,27,42,30,29,31,29,1,1,1,1,1,1,1,1,1,1,1,1,1,11,28,12,28,12,12,43,44,29,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,23,29,30,31,29,29,30,30,31,30,29,8,1,1,1,1,1,1,1,1,1,1,1,1,1,11,41,27,42,45,45,45,45,29,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,30,30,29,31,31,29,29,29,30,29,29,1,1,1,1,1,1,1,1,1,1,1,1,1,19,22,21,20,21,22,21,20,29,1,1,1,1,1,1,11, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,21,22,22,22,21,22,21,21,22,21,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -30,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11, -29,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6 - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/desktop/out/production/resources/models/ship1.png b/desktop/out/production/resources/models/ship1.png deleted file mode 100644 index 6746916..0000000 Binary files a/desktop/out/production/resources/models/ship1.png and /dev/null differ diff --git a/desktop/out/production/resources/models/ship3.png b/desktop/out/production/resources/models/ship3.png deleted file mode 100644 index 58d571a..0000000 Binary files a/desktop/out/production/resources/models/ship3.png and /dev/null differ diff --git a/desktop/out/production/resources/skin/comic-ui.atlas b/desktop/out/production/resources/skin/comic-ui.atlas deleted file mode 100644 index aa4e9ef..0000000 --- a/desktop/out/production/resources/skin/comic-ui.atlas +++ /dev/null @@ -1,305 +0,0 @@ - -comic-ui.png -size: 1024,1024 -format: RGBA8888 -filter: Linear,Linear -repeat: none -Crimson-Roach - rotate: false - xy: 1, 192 - size: 690, 831 - orig: 690, 831 - offset: 0, 0 - index: -1 -bubble-lower-left - rotate: false - xy: 207, 8 - size: 203, 148 - split: 34, 165, 33, 82 - pad: 12, 14, 20, 69 - orig: 203, 148 - offset: 0, 0 - index: -1 -bubble-lower-right - rotate: false - xy: 412, 43 - size: 203, 147 - split: 163, 36, 33, 81 - pad: 14, 12, 20, 68 - orig: 203, 147 - offset: 0, 0 - index: -1 -bubble-top-left - rotate: false - xy: 617, 43 - size: 203, 147 - split: 31, 165, 79, 35 - pad: 12, 14, 66, 22 - orig: 203, 147 - offset: 0, 0 - index: -1 -bubble-top-right - rotate: false - xy: 693, 489 - size: 203, 148 - split: 164, 31, 79, 36 - pad: 12, 14, 66, 23 - orig: 203, 148 - offset: 0, 0 - index: -1 -button - rotate: false - xy: 846, 210 - size: 150, 50 - split: 0, 0, 0, 1 - pad: 35, 37, 8, 7 - orig: 150, 50 - offset: 0, 0 - index: -1 -button-highlighted - rotate: false - xy: 846, 159 - size: 150, 49 - split: 1, 0, 1, 0 - pad: 35, 37, 8, 6 - orig: 150, 49 - offset: 0, 0 - index: -1 -button-pressed - rotate: false - xy: 822, 108 - size: 150, 49 - split: 1, 0, 1, 0 - pad: 35, 37, 8, 6 - orig: 150, 49 - offset: 0, 0 - index: -1 -checkbox - rotate: false - xy: 1, 4 - size: 32, 26 - orig: 32, 26 - offset: 0, 0 - index: -1 -checkbox-on - rotate: false - xy: 35, 4 - size: 32, 26 - orig: 32, 26 - offset: 0, 0 - index: -1 -cursor - rotate: false - xy: 135, 3 - size: 4, 27 - split: 0, 0, 0, 0 - orig: 4, 27 - offset: 0, 0 - index: -1 -font-button-export - rotate: false - xy: 822, 303 - size: 181, 184 - orig: 181, 184 - offset: 0, 0 - index: -1 -font-export - rotate: false - xy: 898, 550 - size: 87, 87 - orig: 87, 87 - offset: 0, 0 - index: -1 -font-title-export - rotate: false - xy: 693, 694 - size: 320, 329 - orig: 320, 329 - offset: 0, 0 - index: -1 -half-tone-box - rotate: false - xy: 822, 46 - size: 128, 60 - split: 3, 107, 3, 3 - pad: 5, 5, 5, 5 - orig: 128, 60 - offset: 0, 0 - index: -1 -minus - rotate: false - xy: 995, 666 - size: 26, 26 - orig: 26, 26 - offset: 0, 0 - index: -1 -narration-box - rotate: false - xy: 987, 620 - size: 16, 16 - split: 3, 3, 3, 3 - pad: 5, 5, 5, 5 - orig: 16, 16 - offset: 0, 0 - index: -1 -plus - rotate: false - xy: 995, 638 - size: 26, 26 - orig: 26, 26 - offset: 0, 0 - index: -1 -progress-bar - rotate: false - xy: 693, 639 - size: 300, 53 - split: 10, 9, 11, 9 - pad: 10, 8, 0, 0 - orig: 300, 53 - offset: 0, 0 - index: -1 -progress-bar-knob - rotate: false - xy: 1021, 179 - size: 1, 53 - orig: 1, 53 - offset: 0, 0 - index: -1 -radio - rotate: false - xy: 69, 4 - size: 31, 26 - orig: 31, 26 - offset: 0, 0 - index: -1 -radio-on - rotate: false - xy: 102, 4 - size: 31, 26 - orig: 31, 26 - offset: 0, 0 - index: -1 -scrollbar-horizontal - rotate: false - xy: 952, 83 - size: 67, 23 - orig: 67, 23 - offset: 0, 0 - index: -1 -scrollbar-vertical - rotate: false - xy: 998, 234 - size: 23, 67 - orig: 23, 67 - offset: 0, 0 - index: -1 -select-box - rotate: false - xy: 566, 16 - size: 152, 25 - split: 4, 19, 6, 17 - pad: 4, 24, 6, 6 - orig: 152, 25 - offset: 0, 0 - index: -1 -select-box-big - rotate: false - xy: 720, 2 - size: 152, 39 - split: 4, 28, 6, 31 - pad: 8, 32, 7, 6 - orig: 152, 39 - offset: 0, 0 - index: -1 -select-box-big-list - rotate: false - xy: 693, 206 - size: 151, 54 - split: 4, 5, 0, 5 - pad: 6, 7, 2, 7 - orig: 151, 54 - offset: 0, 0 - index: -1 -select-box-big-open - rotate: false - xy: 822, 262 - size: 152, 39 - split: 4, 28, 6, 31 - pad: 8, 32, 7, 6 - orig: 152, 39 - offset: 0, 0 - index: -1 -select-box-list - rotate: false - xy: 1, 32 - size: 152, 60 - split: 4, 6, 0, 6 - pad: 6, 8, 2, 8 - orig: 152, 60 - offset: 0, 0 - index: -1 -select-box-open - rotate: false - xy: 412, 16 - size: 152, 25 - split: 4, 19, 6, 17 - pad: 4, 24, 6, 6 - orig: 152, 25 - offset: 0, 0 - index: -1 -slider - rotate: false - xy: 1, 158 - size: 358, 32 - split: 155, 155, 14, 14 - pad: 0, 0, 0, 0 - orig: 358, 32 - offset: 0, 0 - index: -1 -slider-knob - rotate: false - xy: 361, 158 - size: 32, 32 - orig: 32, 32 - offset: 0, 0 - index: -1 -splitpane - rotate: false - xy: 693, 194 - size: 10, 10 - orig: 10, 10 - offset: 0, 0 - index: -1 -text-field - rotate: false - xy: 1, 94 - size: 204, 62 - split: 10, 70, 13, 19 - pad: 11, 26, 12, 22 - orig: 204, 62 - offset: 0, 0 - index: -1 -white - rotate: false - xy: 1, 1 - size: 1, 1 - orig: 1, 1 - offset: 0, 0 - index: -1 -window - rotate: false - xy: 1005, 620 - size: 16, 16 - split: 3, 3, 3, 3 - pad: 5, 5, 5, 5 - orig: 16, 16 - offset: 0, 0 - index: -1 -window-no-padding - rotate: false - xy: 1005, 620 - size: 16, 16 - split: 3, 3, 3, 3 - orig: 16, 16 - offset: 0, 0 - index: -1 diff --git a/desktop/out/production/resources/skin/comic-ui.json b/desktop/out/production/resources/skin/comic-ui.json deleted file mode 100644 index 67ee15c..0000000 --- a/desktop/out/production/resources/skin/comic-ui.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - com.badlogic.gdx.graphics.g2d.BitmapFont: { - button: { - file: font-button-export.fnt - } - font: { - file: font-export.fnt - } - title: { - file: font-title-export.fnt - } - } - com.badlogic.gdx.graphics.Color: { - black: { - r: 0 - g: 0 - b: 0 - a: 1 - } - gray: { - r: 0.7466668 - g: 0.7466668 - b: 0.7466668 - a: 1 - } - white: { - r: 1 - g: 1 - b: 1 - a: 1 - } - } - com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: { - cyan: { - name: white - color: { - r: 0.30333334 - g: 0.96412176 - b: 1 - a: 1 - } - } - } - com.badlogic.gdx.scenes.scene2d.ui.Button$ButtonStyle: { - default: { - up: button - down: button-pressed - over: button-highlighted - } - } - com.badlogic.gdx.scenes.scene2d.ui.CheckBox$CheckBoxStyle: { - default: { - checkboxOn: checkbox-on - checkboxOff: checkbox - font: button - fontColor: black - } - radio: { - checkboxOn: radio-on - checkboxOff: radio - font: button - fontColor: black - } - } - com.badlogic.gdx.scenes.scene2d.ui.ImageButton$ImageButtonStyle: { - default: { - up: button - down: button-pressed - over: button-highlighted - } - } - com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle: { - default: { - font: font - fontColor: black - } - narration: { - font: font - fontColor: black - background: narration-box - } - big: { - font: button - fontColor: black - } - title: { - font: title - fontColor: white - } - alt: { - font: font - fontColor: black - background: window - } - half-tone: { - font: button - fontColor: black - background: half-tone-box - } - } - com.badlogic.gdx.scenes.scene2d.ui.List$ListStyle: { - default: { - font: font - fontColorSelected: black - fontColorUnselected: black - selection: cyan - } - select-box: { - font: font - fontColorSelected: black - fontColorUnselected: black - selection: cyan - background: select-box-list - } - select-box-big: { - font: button - fontColorSelected: black - fontColorUnselected: black - selection: cyan - background: select-box-big-list - } - } - com.badlogic.gdx.scenes.scene2d.ui.ProgressBar$ProgressBarStyle: { - default-horizontal: { - background: progress-bar - knobBefore: progress-bar-knob - } - default-vertical: { - background: progress-bar - knobBefore: progress-bar-knob - } - } - com.badlogic.gdx.scenes.scene2d.ui.ScrollPane$ScrollPaneStyle: { - default: { - hScrollKnob: scrollbar-horizontal - vScrollKnob: scrollbar-vertical - } - select-box: { - background: select-box-list - hScrollKnob: scrollbar-horizontal - vScrollKnob: scrollbar-vertical - } - } - com.badlogic.gdx.scenes.scene2d.ui.SelectBox$SelectBoxStyle: { - default: { - font: font - fontColor: black - background: select-box - scrollStyle: default - listStyle: select-box - backgroundOpen: select-box-open - } - big: { - font: button - fontColor: black - background: select-box-big - scrollStyle: default - listStyle: select-box-big - backgroundOpen: select-box-big-open - } - } - com.badlogic.gdx.scenes.scene2d.ui.Slider$SliderStyle: { - default-horizontal: { - background: slider - knob: slider-knob - } - default-vertical: { - background: slider - knob: slider-knob - } - } - com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle: { - default: { - font: button - fontColor: black - up: button - down: button-pressed - over: button-highlighted - } - } - com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle: { - default: { - font: font - fontColor: black - background: text-field - cursor: cursor - selection: cyan - messageFontColor: gray - } - } - com.badlogic.gdx.scenes.scene2d.ui.TextTooltip$TextTooltipStyle: { - default: { - label: alt - } - alt: { - label: narration - } - } - com.badlogic.gdx.scenes.scene2d.ui.Tree$TreeStyle: { - default: { - plus: plus - minus: minus - selection: cyan - } - } - com.badlogic.gdx.scenes.scene2d.ui.Window$WindowStyle: { - default: { - background: window - titleFont: font - } - alt: { - background: narration-box - titleFont: font - } - } -} \ No newline at end of file diff --git a/desktop/out/production/resources/skin/comic-ui.png b/desktop/out/production/resources/skin/comic-ui.png deleted file mode 100644 index f7362b4..0000000 Binary files a/desktop/out/production/resources/skin/comic-ui.png and /dev/null differ diff --git a/desktop/out/production/resources/skin/font-button-export.fnt b/desktop/out/production/resources/skin/font-button-export.fnt deleted file mode 100644 index f3b66dd..0000000 --- a/desktop/out/production/resources/skin/font-button-export.fnt +++ /dev/null @@ -1,104 +0,0 @@ -info face="font-button-export" size=32 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=1,1 -common lineHeight=29 base=29 scaleW=181 scaleH=184 pages=1 packed=0 alphaChnl=1 redChnl=0 greenChnl=0 blueChnl=0 -page id=0 file="font-button-export.png" -chars count=98 -char id=33 x=170 y=153 width=6 height=23 xoffset=0 yoffset=6 xadvance=8 page=0 chnl=0 letter="!" -char id=34 x=77 y=173 width=9 height=9 xoffset=0 yoffset=6 xadvance=11 page=0 chnl=0 letter=""" -char id=35 x=24 y=48 width=19 height=22 xoffset=0 yoffset=7 xadvance=21 page=0 chnl=0 letter="#" -char id=36 x=114 y=20 width=15 height=27 xoffset=0 yoffset=5 xadvance=17 page=0 chnl=0 letter="$" -char id=37 x=42 y=142 width=19 height=23 xoffset=0 yoffset=6 xadvance=21 page=0 chnl=0 letter="%" -char id=38 x=44 y=47 width=18 height=23 xoffset=0 yoffset=6 xadvance=20 page=0 chnl=0 letter="&" -char id=39 x=36 y=174 width=4 height=9 xoffset=0 yoffset=6 xadvance=6 page=0 chnl=0 letter="'" -char id=40 x=159 y=32 width=10 height=31 xoffset=0 yoffset=1 xadvance=12 page=0 chnl=0 letter="(" -char id=41 x=159 y=118 width=10 height=30 xoffset=0 yoffset=2 xadvance=12 page=0 chnl=0 letter=")" -char id=42 x=80 y=95 width=16 height=17 xoffset=0 yoffset=2 xadvance=18 page=0 chnl=0 letter="*" -char id=43 x=42 y=166 width=17 height=17 xoffset=0 yoffset=13 xadvance=19 page=0 chnl=0 letter="+" -char id=44 x=14 y=172 width=6 height=8 xoffset=0 yoffset=24 xadvance=8 page=0 chnl=0 letter="," -char id=45 x=0 y=172 width=13 height=4 xoffset=0 yoffset=17 xadvance=15 page=0 chnl=0 letter="-" -char id=46 x=36 y=167 width=5 height=6 xoffset=0 yoffset=23 xadvance=7 page=0 chnl=0 letter="." -char id=47 x=145 y=88 width=12 height=22 xoffset=0 yoffset=7 xadvance=14 page=0 chnl=0 letter="/" -char id=48 x=145 y=69 width=12 height=18 xoffset=0 yoffset=10 xadvance=14 page=0 chnl=0 letter="0" -char id=49 x=171 y=100 width=5 height=17 xoffset=0 yoffset=11 xadvance=7 page=0 chnl=0 letter="1" -char id=50 x=145 y=32 width=13 height=17 xoffset=0 yoffset=11 xadvance=15 page=0 chnl=0 letter="2" -char id=51 x=130 y=93 width=14 height=17 xoffset=0 yoffset=11 xadvance=16 page=0 chnl=0 letter="3" -char id=52 x=81 y=47 width=16 height=18 xoffset=0 yoffset=10 xadvance=18 page=0 chnl=0 letter="4" -char id=53 x=131 y=0 width=13 height=17 xoffset=0 yoffset=11 xadvance=15 page=0 chnl=0 letter="5" -char id=54 x=145 y=50 width=13 height=18 xoffset=0 yoffset=10 xadvance=15 page=0 chnl=0 letter="6" -char id=55 x=145 y=111 width=12 height=17 xoffset=0 yoffset=11 xadvance=14 page=0 chnl=0 letter="7" -char id=56 x=158 y=100 width=12 height=17 xoffset=0 yoffset=11 xadvance=14 page=0 chnl=0 letter="8" -char id=57 x=130 y=111 width=14 height=17 xoffset=0 yoffset=11 xadvance=16 page=0 chnl=0 letter="9" -char id=58 x=170 y=137 width=6 height=15 xoffset=0 yoffset=14 xadvance=8 page=0 chnl=0 letter=":" -char id=59 x=170 y=118 width=7 height=18 xoffset=0 yoffset=14 xadvance=9 page=0 chnl=0 letter=";" -char id=60 x=63 y=95 width=14 height=15 xoffset=0 yoffset=14 xadvance=16 page=0 chnl=0 letter="<" -char id=61 x=60 y=173 width=16 height=10 xoffset=0 yoffset=13 xadvance=18 page=0 chnl=0 letter="=" -char id=62 x=21 y=167 width=14 height=16 xoffset=0 yoffset=13 xadvance=16 page=0 chnl=0 letter=">" -char id=63 x=144 y=129 width=14 height=23 xoffset=0 yoffset=6 xadvance=16 page=0 chnl=0 letter="?" -char id=64 x=0 y=0 width=25 height=23 xoffset=0 yoffset=6 xadvance=27 page=0 chnl=0 letter="@" -char id=65 x=21 y=143 width=20 height=23 xoffset=0 yoffset=6 xadvance=22 page=0 chnl=0 letter="A" -char id=66 x=46 y=24 width=18 height=22 xoffset=0 yoffset=7 xadvance=20 page=0 chnl=0 letter="B" -char id=67 x=63 y=71 width=17 height=23 xoffset=0 yoffset=6 xadvance=19 page=0 chnl=0 letter="C" -char id=68 x=43 y=111 width=18 height=23 xoffset=0 yoffset=6 xadvance=20 page=0 chnl=0 letter="D" -char id=69 x=97 y=159 width=16 height=22 xoffset=0 yoffset=7 xadvance=18 page=0 chnl=0 letter="E" -char id=70 x=97 y=136 width=16 height=22 xoffset=0 yoffset=7 xadvance=18 page=0 chnl=0 letter="F" -char id=71 x=0 y=99 width=22 height=23 xoffset=0 yoffset=6 xadvance=24 page=0 chnl=0 letter="G" -char id=72 x=46 y=0 width=18 height=23 xoffset=0 yoffset=6 xadvance=20 page=0 chnl=0 letter="H" -char id=73 x=171 y=57 width=6 height=22 xoffset=0 yoffset=7 xadvance=8 page=0 chnl=0 letter="I" -char id=74 x=97 y=112 width=16 height=23 xoffset=0 yoffset=7 xadvance=18 page=0 chnl=0 letter="J" -char id=75 x=114 y=128 width=15 height=22 xoffset=0 yoffset=7 xadvance=17 page=0 chnl=0 letter="K" -char id=76 x=144 y=153 width=13 height=22 xoffset=0 yoffset=7 xadvance=15 page=0 chnl=0 letter="L" -char id=77 x=0 y=48 width=23 height=22 xoffset=0 yoffset=7 xadvance=25 page=0 chnl=0 letter="M" -char id=78 x=23 y=71 width=19 height=22 xoffset=0 yoffset=7 xadvance=21 page=0 chnl=0 letter="N" -char id=79 x=23 y=94 width=19 height=23 xoffset=0 yoffset=6 xadvance=21 page=0 chnl=0 letter="O" -char id=80 x=97 y=89 width=16 height=22 xoffset=0 yoffset=7 xadvance=18 page=0 chnl=0 letter="P" -char id=81 x=0 y=143 width=20 height=24 xoffset=0 yoffset=6 xadvance=22 page=0 chnl=0 letter="Q" -char id=82 x=81 y=66 width=16 height=22 xoffset=0 yoffset=7 xadvance=18 page=0 chnl=0 letter="R" -char id=83 x=26 y=0 width=19 height=23 xoffset=0 yoffset=6 xadvance=21 page=0 chnl=0 letter="S" -char id=84 x=65 y=0 width=17 height=23 xoffset=0 yoffset=6 xadvance=19 page=0 chnl=0 letter="T" -char id=85 x=65 y=24 width=17 height=22 xoffset=0 yoffset=7 xadvance=19 page=0 chnl=0 letter="U" -char id=86 x=83 y=0 width=16 height=22 xoffset=0 yoffset=7 xadvance=18 page=0 chnl=0 letter="V" -char id=87 x=0 y=24 width=25 height=23 xoffset=0 yoffset=6 xadvance=27 page=0 chnl=0 letter="W" -char id=88 x=63 y=47 width=17 height=23 xoffset=0 yoffset=6 xadvance=19 page=0 chnl=0 letter="X" -char id=89 x=26 y=24 width=19 height=22 xoffset=0 yoffset=7 xadvance=21 page=0 chnl=0 letter="Y" -char id=90 x=23 y=118 width=19 height=23 xoffset=0 yoffset=6 xadvance=21 page=0 chnl=0 letter="Z" -char id=91 x=158 y=69 width=12 height=30 xoffset=0 yoffset=2 xadvance=14 page=0 chnl=0 letter="[" -char id=92 x=170 y=32 width=10 height=24 xoffset=0 yoffset=6 xadvance=12 page=0 chnl=0 letter="\" -char id=93 x=159 y=0 width=11 height=31 xoffset=0 yoffset=2 xadvance=13 page=0 chnl=0 letter="]" -char id=94 x=114 y=176 width=11 height=7 xoffset=0 yoffset=5 xadvance=13 page=0 chnl=0 letter="^" -char id=95 x=0 y=168 width=18 height=3 xoffset=0 yoffset=29 xadvance=20 page=0 chnl=0 letter="_" -char id=96 x=87 y=173 width=8 height=8 xoffset=0 yoffset=5 xadvance=10 page=0 chnl=0 letter="`" -char id=97 x=62 y=152 width=17 height=19 xoffset=0 yoffset=10 xadvance=19 page=0 chnl=0 letter="a" -char id=98 x=100 y=0 width=15 height=19 xoffset=0 yoffset=10 xadvance=17 page=0 chnl=0 letter="b" -char id=99 x=98 y=43 width=15 height=19 xoffset=0 yoffset=10 xadvance=17 page=0 chnl=0 letter="c" -char id=100 x=98 y=63 width=15 height=19 xoffset=0 yoffset=10 xadvance=17 page=0 chnl=0 letter="d" -char id=101 x=100 y=20 width=13 height=18 xoffset=0 yoffset=11 xadvance=15 page=0 chnl=0 letter="e" -char id=102 x=130 y=20 width=14 height=19 xoffset=0 yoffset=10 xadvance=16 page=0 chnl=0 letter="f" -char id=103 x=43 y=91 width=19 height=19 xoffset=0 yoffset=10 xadvance=21 page=0 chnl=0 letter="g" -char id=104 x=114 y=68 width=15 height=20 xoffset=0 yoffset=9 xadvance=17 page=0 chnl=0 letter="h" -char id=105 x=171 y=80 width=5 height=19 xoffset=0 yoffset=10 xadvance=7 page=0 chnl=0 letter="i" -char id=106 x=130 y=40 width=14 height=20 xoffset=0 yoffset=10 xadvance=16 page=0 chnl=0 letter="j" -char id=107 x=130 y=129 width=13 height=19 xoffset=0 yoffset=10 xadvance=15 page=0 chnl=0 letter="k" -char id=108 x=158 y=153 width=11 height=19 xoffset=0 yoffset=10 xadvance=13 page=0 chnl=0 letter="l" -char id=109 x=43 y=71 width=19 height=19 xoffset=0 yoffset=10 xadvance=21 page=0 chnl=0 letter="m" -char id=110 x=80 y=153 width=16 height=19 xoffset=0 yoffset=10 xadvance=18 page=0 chnl=0 letter="n" -char id=111 x=80 y=113 width=16 height=19 xoffset=0 yoffset=10 xadvance=18 page=0 chnl=0 letter="o" -char id=112 x=114 y=151 width=14 height=19 xoffset=0 yoffset=10 xadvance=16 page=0 chnl=0 letter="p" -char id=113 x=62 y=131 width=17 height=20 xoffset=0 yoffset=10 xadvance=19 page=0 chnl=0 letter="q" -char id=114 x=129 y=151 width=14 height=19 xoffset=0 yoffset=10 xadvance=16 page=0 chnl=0 letter="r" -char id=115 x=80 y=133 width=16 height=19 xoffset=0 yoffset=10 xadvance=18 page=0 chnl=0 letter="s" -char id=116 x=116 y=0 width=14 height=19 xoffset=0 yoffset=10 xadvance=16 page=0 chnl=0 letter="t" -char id=117 x=114 y=48 width=15 height=19 xoffset=0 yoffset=10 xadvance=17 page=0 chnl=0 letter="u" -char id=118 x=114 y=89 width=15 height=18 xoffset=0 yoffset=11 xadvance=17 page=0 chnl=0 letter="v" -char id=119 x=0 y=123 width=21 height=19 xoffset=0 yoffset=10 xadvance=23 page=0 chnl=0 letter="w" -char id=120 x=114 y=108 width=15 height=19 xoffset=0 yoffset=10 xadvance=17 page=0 chnl=0 letter="x" -char id=121 x=62 y=111 width=17 height=19 xoffset=0 yoffset=10 xadvance=19 page=0 chnl=0 letter="y" -char id=122 x=83 y=23 width=16 height=19 xoffset=0 yoffset=10 xadvance=18 page=0 chnl=0 letter="z" -char id=123 x=145 y=0 width=13 height=31 xoffset=0 yoffset=2 xadvance=15 page=0 chnl=0 letter="{" -char id=124 x=171 y=0 width=6 height=30 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="|" -char id=125 x=130 y=61 width=14 height=31 xoffset=0 yoffset=2 xadvance=16 page=0 chnl=0 letter="}" -char id=126 x=0 y=177 width=12 height=5 xoffset=0 yoffset=7 xadvance=14 page=0 chnl=0 letter="~" -char id=8226 x=126 y=171 width=8 height=8 xoffset=0 yoffset=15 xadvance=10 page=0 chnl=0 letter="•" -char id=169 x=0 y=71 width=22 height=27 xoffset=0 yoffset=4 xadvance=24 page=0 chnl=0 letter="©" -char id=32 x=0 y=0 width=0 height=0 xoffset=0 yoffset=0 xadvance=10 page=0 chnl=0 letter=" " -char id=9 x=0 y=0 width=0 height=0 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 letter=" " - -kernings count=0 diff --git a/desktop/out/production/resources/skin/font-export.fnt b/desktop/out/production/resources/skin/font-export.fnt deleted file mode 100644 index 4472dd0..0000000 --- a/desktop/out/production/resources/skin/font-export.fnt +++ /dev/null @@ -1,104 +0,0 @@ -info face="font-export" size=32 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=1,1 -common lineHeight=12 base=12 scaleW=87 scaleH=87 pages=1 packed=0 alphaChnl=1 redChnl=0 greenChnl=0 blueChnl=0 -page id=0 file="font-export.png" -chars count=98 -char id=33 x=81 y=47 width=3 height=10 xoffset=0 yoffset=2 xadvance=4 page=0 chnl=0 letter="!" -char id=34 x=38 y=72 width=4 height=4 xoffset=0 yoffset=2 xadvance=5 page=0 chnl=0 letter=""" -char id=35 x=29 y=67 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="#" -char id=36 x=52 y=70 width=7 height=12 xoffset=0 yoffset=1 xadvance=8 page=0 chnl=0 letter="$" -char id=37 x=29 y=56 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="%" -char id=38 x=31 y=0 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="&" -char id=39 x=77 y=0 width=2 height=4 xoffset=0 yoffset=2 xadvance=3 page=0 chnl=0 letter="'" -char id=40 x=74 y=68 width=5 height=13 xoffset=0 yoffset=0 xadvance=6 page=0 chnl=0 letter="(" -char id=41 x=76 y=8 width=5 height=13 xoffset=0 yoffset=0 xadvance=6 page=0 chnl=0 letter=")" -char id=42 x=20 y=78 width=7 height=8 xoffset=0 yoffset=0 xadvance=8 page=0 chnl=0 letter="*" -char id=43 x=47 y=22 width=7 height=7 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0 letter="+" -char id=44 x=74 y=82 width=4 height=4 xoffset=0 yoffset=9 xadvance=5 page=0 chnl=0 letter="," -char id=45 x=69 y=38 width=5 height=2 xoffset=0 yoffset=6 xadvance=6 page=0 chnl=0 letter="-" -char id=46 x=50 y=83 width=3 height=3 xoffset=0 yoffset=9 xadvance=4 page=0 chnl=0 letter="." -char id=47 x=75 y=38 width=5 height=10 xoffset=0 yoffset=2 xadvance=6 page=0 chnl=0 letter="/" -char id=48 x=75 y=49 width=5 height=8 xoffset=0 yoffset=3 xadvance=6 page=0 chnl=0 letter="0" -char id=49 x=82 y=9 width=2 height=7 xoffset=0 yoffset=4 xadvance=3 page=0 chnl=0 letter="1" -char id=50 x=67 y=68 width=6 height=7 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="2" -char id=51 x=68 y=60 width=6 height=7 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="3" -char id=52 x=28 y=78 width=7 height=7 xoffset=0 yoffset=4 xadvance=8 page=0 chnl=0 letter="4" -char id=53 x=69 y=16 width=6 height=7 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="5" -char id=54 x=63 y=0 width=6 height=7 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="6" -char id=55 x=61 y=60 width=6 height=7 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="7" -char id=56 x=70 y=0 width=6 height=7 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="8" -char id=57 x=69 y=8 width=6 height=7 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="9" -char id=58 x=84 y=78 width=2 height=7 xoffset=0 yoffset=5 xadvance=3 page=0 chnl=0 letter=":" -char id=59 x=81 y=58 width=3 height=8 xoffset=0 yoffset=5 xadvance=4 page=0 chnl=0 letter=";" -char id=60 x=68 y=52 width=6 height=7 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0 letter="<" -char id=61 x=36 y=81 width=7 height=4 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0 letter="=" -char id=62 x=68 y=44 width=6 height=7 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0 letter=">" -char id=63 x=67 y=76 width=6 height=10 xoffset=0 yoffset=2 xadvance=7 page=0 chnl=0 letter="?" -char id=64 x=0 y=11 width=11 height=10 xoffset=0 yoffset=2 xadvance=12 page=0 chnl=0 letter="@" -char id=65 x=20 y=55 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="A" -char id=66 x=30 y=33 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="B" -char id=67 x=10 y=67 width=9 height=10 xoffset=0 yoffset=2 xadvance=10 page=0 chnl=0 letter="C" -char id=68 x=22 y=0 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="D" -char id=69 x=47 y=11 width=7 height=10 xoffset=0 yoffset=2 xadvance=8 page=0 chnl=0 letter="E" -char id=70 x=29 y=45 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="F" -char id=71 x=0 y=44 width=10 height=10 xoffset=0 yoffset=2 xadvance=11 page=0 chnl=0 letter="G" -char id=72 x=12 y=11 width=9 height=11 xoffset=0 yoffset=1 xadvance=10 page=0 chnl=0 letter="H" -char id=73 x=81 y=22 width=4 height=10 xoffset=0 yoffset=2 xadvance=5 page=0 chnl=0 letter="I" -char id=74 x=22 y=11 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="J" -char id=75 x=48 y=0 width=7 height=10 xoffset=0 yoffset=2 xadvance=8 page=0 chnl=0 letter="K" -char id=76 x=62 y=9 width=6 height=10 xoffset=0 yoffset=2 xadvance=7 page=0 chnl=0 letter="L" -char id=77 x=0 y=22 width=11 height=10 xoffset=0 yoffset=2 xadvance=12 page=0 chnl=0 letter="M" -char id=78 x=0 y=66 width=9 height=10 xoffset=0 yoffset=2 xadvance=10 page=0 chnl=0 letter="N" -char id=79 x=0 y=55 width=9 height=10 xoffset=0 yoffset=2 xadvance=10 page=0 chnl=0 letter="O" -char id=80 x=54 y=40 width=7 height=10 xoffset=0 yoffset=2 xadvance=8 page=0 chnl=0 letter="P" -char id=81 x=0 y=33 width=10 height=10 xoffset=0 yoffset=2 xadvance=11 page=0 chnl=0 letter="Q" -char id=82 x=13 y=0 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="R" -char id=83 x=20 y=66 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="S" -char id=84 x=21 y=34 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="T" -char id=85 x=11 y=33 width=9 height=10 xoffset=0 yoffset=2 xadvance=10 page=0 chnl=0 letter="U" -char id=86 x=21 y=23 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="V" -char id=87 x=0 y=0 width=12 height=10 xoffset=0 yoffset=2 xadvance=13 page=0 chnl=0 letter="W" -char id=88 x=40 y=0 width=7 height=10 xoffset=0 yoffset=2 xadvance=8 page=0 chnl=0 letter="X" -char id=89 x=11 y=44 width=9 height=10 xoffset=0 yoffset=2 xadvance=10 page=0 chnl=0 letter="Y" -char id=90 x=30 y=22 width=8 height=10 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0 letter="Z" -char id=91 x=75 y=24 width=5 height=13 xoffset=0 yoffset=0 xadvance=6 page=0 chnl=0 letter="[" -char id=92 x=80 y=67 width=4 height=10 xoffset=0 yoffset=2 xadvance=5 page=0 chnl=0 letter="\" -char id=93 x=69 y=24 width=5 height=13 xoffset=0 yoffset=0 xadvance=6 page=0 chnl=0 letter="]" -char id=94 x=62 y=44 width=5 height=4 xoffset=0 yoffset=1 xadvance=6 page=0 chnl=0 letter="^" -char id=95 x=36 y=78 width=7 height=2 xoffset=0 yoffset=11 xadvance=8 page=0 chnl=0 letter="_" -char id=96 x=79 y=82 width=4 height=4 xoffset=0 yoffset=1 xadvance=5 page=0 chnl=0 letter="`" -char id=97 x=38 y=44 width=7 height=9 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="a" -char id=98 x=46 y=60 width=7 height=9 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="b" -char id=99 x=46 y=50 width=7 height=9 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="c" -char id=100 x=39 y=21 width=7 height=9 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="d" -char id=101 x=38 y=54 width=7 height=8 xoffset=0 yoffset=4 xadvance=8 page=0 chnl=0 letter="e" -char id=102 x=56 y=0 width=6 height=8 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="f" -char id=103 x=31 y=11 width=7 height=9 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="g" -char id=104 x=21 y=45 width=7 height=9 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="h" -char id=105 x=82 y=0 width=3 height=8 xoffset=0 yoffset=4 xadvance=4 page=0 chnl=0 letter="i" -char id=106 x=60 y=78 width=6 height=8 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="j" -char id=107 x=61 y=51 width=6 height=8 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="k" -char id=108 x=75 y=58 width=5 height=8 xoffset=0 yoffset=4 xadvance=6 page=0 chnl=0 letter="l" -char id=109 x=10 y=78 width=9 height=8 xoffset=0 yoffset=4 xadvance=10 page=0 chnl=0 letter="m" -char id=110 x=44 y=72 width=7 height=9 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="n" -char id=111 x=46 y=40 width=7 height=9 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="o" -char id=112 x=39 y=31 width=7 height=8 xoffset=0 yoffset=4 xadvance=8 page=0 chnl=0 letter="p" -char id=113 x=39 y=11 width=7 height=9 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="q" -char id=114 x=54 y=51 width=6 height=8 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="r" -char id=115 x=12 y=23 width=7 height=9 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="s" -char id=116 x=55 y=25 width=6 height=9 xoffset=0 yoffset=3 xadvance=7 page=0 chnl=0 letter="t" -char id=117 x=54 y=60 width=6 height=8 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="u" -char id=118 x=60 y=69 width=6 height=8 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0 letter="v" -char id=119 x=0 y=77 width=9 height=9 xoffset=0 yoffset=3 xadvance=10 page=0 chnl=0 letter="w" -char id=120 x=62 y=34 width=6 height=9 xoffset=0 yoffset=3 xadvance=7 page=0 chnl=0 letter="x" -char id=121 x=38 y=63 width=7 height=8 xoffset=0 yoffset=4 xadvance=8 page=0 chnl=0 letter="y" -char id=122 x=47 y=30 width=7 height=9 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0 letter="z" -char id=123 x=62 y=20 width=6 height=13 xoffset=0 yoffset=0 xadvance=7 page=0 chnl=0 letter="{" -char id=124 x=81 y=33 width=3 height=13 xoffset=0 yoffset=0 xadvance=4 page=0 chnl=0 letter="|" -char id=125 x=55 y=11 width=6 height=13 xoffset=0 yoffset=0 xadvance=7 page=0 chnl=0 letter="}" -char id=126 x=44 y=83 width=5 height=3 xoffset=0 yoffset=2 xadvance=6 page=0 chnl=0 letter="~" -char id=8226 x=55 y=35 width=4 height=4 xoffset=0 yoffset=5 xadvance=5 page=0 chnl=0 letter="•" -char id=169 x=10 y=55 width=9 height=11 xoffset=0 yoffset=1 xadvance=10 page=0 chnl=0 letter="©" -char id=32 x=0 y=0 width=0 height=0 xoffset=0 yoffset=0 xadvance=4 page=0 chnl=0 letter=" " -char id=9 x=0 y=0 width=0 height=0 xoffset=0 yoffset=0 xadvance=32 page=0 chnl=0 letter=" " - -kernings count=0 diff --git a/desktop/out/production/resources/skin/font-title-export.fnt b/desktop/out/production/resources/skin/font-title-export.fnt deleted file mode 100644 index ffb224c..0000000 --- a/desktop/out/production/resources/skin/font-title-export.fnt +++ /dev/null @@ -1,627 +0,0 @@ -info face="font-title-export" size=32 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=1,1 -common lineHeight=62 base=62 scaleW=320 scaleH=329 pages=1 packed=0 alphaChnl=1 redChnl=0 greenChnl=0 blueChnl=0 -page id=0 file="font-title-export.png" -chars count=98 -char id=33 x=270 y=180 width=13 height=45 xoffset=0 yoffset=18 xadvance=16 page=0 chnl=0 letter="!" -char id=34 x=36 y=195 width=17 height=16 xoffset=0 yoffset=17 xadvance=20 page=0 chnl=0 letter=""" -char id=35 x=0 y=152 width=39 height=42 xoffset=0 yoffset=15 xadvance=42 page=0 chnl=0 letter="#" -char id=36 x=50 y=54 width=29 height=57 xoffset=0 yoffset=10 xadvance=32 page=0 chnl=0 letter="$" -char id=37 x=0 y=103 width=49 height=48 xoffset=0 yoffset=14 xadvance=52 page=0 chnl=0 letter="%" -char id=38 x=80 y=45 width=25 height=45 xoffset=0 yoffset=18 xadvance=28 page=0 chnl=0 letter="&" -char id=39 x=54 y=190 width=11 height=16 xoffset=0 yoffset=17 xadvance=14 page=0 chnl=0 letter="'" -char id=40 x=292 y=45 width=14 height=59 xoffset=0 yoffset=10 xadvance=17 page=0 chnl=0 letter="(" -char id=41 x=305 y=105 width=14 height=59 xoffset=0 yoffset=10 xadvance=17 page=0 chnl=0 letter=")" -char id=42 x=0 y=301 width=27 height=26 xoffset=0 yoffset=15 xadvance=30 page=0 chnl=0 letter="*" -char id=43 x=0 y=225 width=33 height=32 xoffset=0 yoffset=26 xadvance=36 page=0 chnl=0 letter="+" -char id=44 x=50 y=127 width=11 height=16 xoffset=0 yoffset=51 xadvance=14 page=0 chnl=0 letter="," -char id=45 x=163 y=317 width=15 height=11 xoffset=0 yoffset=32 xadvance=18 page=0 chnl=0 letter="-" -char id=46 x=36 y=212 width=10 height=12 xoffset=0 yoffset=51 xadvance=13 page=0 chnl=0 letter="." -char id=47 x=287 y=135 width=17 height=58 xoffset=0 yoffset=11 xadvance=20 page=0 chnl=0 letter="/" -char id=48 x=190 y=90 width=21 height=44 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="0" -char id=49 x=305 y=165 width=13 height=45 xoffset=0 yoffset=18 xadvance=16 page=0 chnl=0 letter="1" -char id=50 x=254 y=45 width=19 height=44 xoffset=0 yoffset=18 xadvance=22 page=0 chnl=0 letter="2" -char id=51 x=186 y=181 width=21 height=45 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="3" -char id=52 x=129 y=45 width=22 height=44 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="4" -char id=53 x=196 y=0 width=21 height=45 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="5" -char id=54 x=164 y=180 width=21 height=44 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="6" -char id=55 x=250 y=135 width=18 height=44 xoffset=0 yoffset=18 xadvance=21 page=0 chnl=0 letter="7" -char id=56 x=185 y=270 width=21 height=45 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="8" -char id=57 x=186 y=135 width=21 height=45 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="9" -char id=58 x=71 y=157 width=10 height=30 xoffset=0 yoffset=33 xadvance=13 page=0 chnl=0 letter=":" -char id=59 x=66 y=236 width=11 height=34 xoffset=0 yoffset=33 xadvance=14 page=0 chnl=0 letter=";" -char id=60 x=34 y=279 width=30 height=37 xoffset=0 yoffset=22 xadvance=33 page=0 chnl=0 letter="<" -char id=61 x=0 y=258 width=33 height=20 xoffset=0 yoffset=31 xadvance=36 page=0 chnl=0 letter="=" -char id=62 x=40 y=152 width=30 height=37 xoffset=0 yoffset=22 xadvance=33 page=0 chnl=0 letter=">" -char id=63 x=229 y=136 width=20 height=45 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="?" -char id=64 x=0 y=0 width=52 height=53 xoffset=0 yoffset=14 xadvance=55 page=0 chnl=0 letter="@" -char id=65 x=117 y=281 width=22 height=44 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="A" -char id=66 x=233 y=45 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="B" -char id=67 x=174 y=0 width=21 height=44 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="C" -char id=68 x=229 y=91 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="D" -char id=69 x=279 y=0 width=17 height=44 xoffset=0 yoffset=18 xadvance=20 page=0 chnl=0 letter="E" -char id=70 x=270 y=90 width=17 height=44 xoffset=0 yoffset=18 xadvance=20 page=0 chnl=0 letter="F" -char id=71 x=174 y=45 width=21 height=44 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="G" -char id=72 x=212 y=46 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="H" -char id=73 x=297 y=0 width=10 height=44 xoffset=0 yoffset=18 xadvance=13 page=0 chnl=0 letter="I" -char id=74 x=118 y=182 width=22 height=44 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="J" -char id=75 x=122 y=90 width=22 height=44 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="K" -char id=76 x=269 y=284 width=18 height=44 xoffset=0 yoffset=18 xadvance=21 page=0 chnl=0 letter="L" -char id=77 x=53 y=0 width=27 height=44 xoffset=0 yoffset=18 xadvance=30 page=0 chnl=0 letter="M" -char id=78 x=164 y=225 width=21 height=44 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="N" -char id=79 x=168 y=90 width=21 height=44 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="O" -char id=80 x=207 y=227 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="P" -char id=81 x=94 y=157 width=23 height=45 xoffset=0 yoffset=18 xadvance=26 page=0 chnl=0 letter="Q" -char id=82 x=145 y=90 width=22 height=44 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="R" -char id=83 x=207 y=272 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="S" -char id=84 x=218 y=0 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="T" -char id=85 x=141 y=181 width=22 height=44 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="U" -char id=86 x=140 y=272 width=22 height=45 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="V" -char id=87 x=66 y=190 width=27 height=45 xoffset=0 yoffset=17 xadvance=30 page=0 chnl=0 letter="W" -char id=88 x=81 y=0 width=24 height=44 xoffset=0 yoffset=18 xadvance=27 page=0 chnl=0 letter="X" -char id=89 x=141 y=226 width=22 height=45 xoffset=0 yoffset=17 xadvance=25 page=0 chnl=0 letter="Y" -char id=90 x=250 y=90 width=19 height=44 xoffset=0 yoffset=18 xadvance=22 page=0 chnl=0 letter="Z" -char id=91 x=288 y=194 width=16 height=56 xoffset=0 yoffset=15 xadvance=19 page=0 chnl=0 letter="[" -char id=92 x=34 y=225 width=31 height=53 xoffset=0 yoffset=15 xadvance=34 page=0 chnl=0 letter="\" -char id=93 x=288 y=251 width=16 height=56 xoffset=0 yoffset=15 xadvance=19 page=0 chnl=0 letter="]" -char id=94 x=0 y=195 width=35 height=29 xoffset=0 yoffset=14 xadvance=38 page=0 chnl=0 letter="^" -char id=95 x=0 y=293 width=29 height=7 xoffset=0 yoffset=63 xadvance=32 page=0 chnl=0 letter="_" -char id=96 x=50 y=112 width=14 height=14 xoffset=0 yoffset=4 xadvance=17 page=0 chnl=0 letter="`" -char id=97 x=129 y=0 width=22 height=44 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="a" -char id=98 x=208 y=180 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="b" -char id=99 x=152 y=0 width=21 height=44 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="c" -char id=100 x=208 y=135 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="d" -char id=101 x=274 y=45 width=17 height=44 xoffset=0 yoffset=18 xadvance=20 page=0 chnl=0 letter="e" -char id=102 x=269 y=135 width=17 height=44 xoffset=0 yoffset=18 xadvance=20 page=0 chnl=0 letter="f" -char id=103 x=152 y=45 width=21 height=44 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="g" -char id=104 x=228 y=270 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="h" -char id=105 x=305 y=211 width=10 height=44 xoffset=0 yoffset=18 xadvance=13 page=0 chnl=0 letter="i" -char id=106 x=118 y=137 width=22 height=44 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="j" -char id=107 x=118 y=227 width=22 height=44 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="k" -char id=108 x=260 y=0 width=18 height=44 xoffset=0 yoffset=18 xadvance=21 page=0 chnl=0 letter="l" -char id=109 x=71 y=112 width=27 height=44 xoffset=0 yoffset=18 xadvance=30 page=0 chnl=0 letter="m" -char id=110 x=164 y=135 width=21 height=44 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="n" -char id=111 x=163 y=272 width=21 height=44 xoffset=0 yoffset=18 xadvance=24 page=0 chnl=0 letter="o" -char id=112 x=228 y=225 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="p" -char id=113 x=93 y=281 width=23 height=45 xoffset=0 yoffset=18 xadvance=26 page=0 chnl=0 letter="q" -char id=114 x=106 y=45 width=22 height=44 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="r" -char id=115 x=249 y=182 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="s" -char id=116 x=239 y=0 width=20 height=44 xoffset=0 yoffset=18 xadvance=23 page=0 chnl=0 letter="t" -char id=117 x=106 y=0 width=22 height=44 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="u" -char id=118 x=99 y=91 width=22 height=45 xoffset=0 yoffset=18 xadvance=25 page=0 chnl=0 letter="v" -char id=119 x=65 y=279 width=27 height=45 xoffset=0 yoffset=17 xadvance=30 page=0 chnl=0 letter="w" -char id=120 x=93 y=236 width=24 height=44 xoffset=0 yoffset=18 xadvance=27 page=0 chnl=0 letter="x" -char id=121 x=141 y=135 width=22 height=45 xoffset=0 yoffset=17 xadvance=25 page=0 chnl=0 letter="y" -char id=122 x=249 y=284 width=19 height=44 xoffset=0 yoffset=18 xadvance=22 page=0 chnl=0 letter="z" -char id=123 x=249 y=227 width=19 height=56 xoffset=0 yoffset=15 xadvance=22 page=0 chnl=0 letter="{" -char id=124 x=305 y=256 width=9 height=65 xoffset=0 yoffset=11 xadvance=12 page=0 chnl=0 letter="|" -char id=125 x=269 y=227 width=18 height=56 xoffset=0 yoffset=15 xadvance=21 page=0 chnl=0 letter="}" -char id=126 x=0 y=279 width=33 height=13 xoffset=0 yoffset=35 xadvance=36 page=0 chnl=0 letter="~" -char id=8226 x=186 y=227 width=20 height=19 xoffset=0 yoffset=30 xadvance=23 page=0 chnl=0 letter="•" -char id=169 x=0 y=54 width=49 height=48 xoffset=0 yoffset=14 xadvance=52 page=0 chnl=0 letter="©" -char id=32 x=0 y=0 width=0 height=0 xoffset=0 yoffset=0 xadvance=15 page=0 chnl=0 letter=" " -char id=9 x=0 y=0 width=0 height=0 xoffset=0 yoffset=0 xadvance=120 page=0 chnl=0 letter=" " - -kernings count=523 -kerning first=65 second=39 amount=-6 -kerning first=65 second=67 amount=-3 -kerning first=65 second=71 amount=-3 -kerning first=65 second=79 amount=-3 -kerning first=65 second=81 amount=-3 -kerning first=65 second=84 amount=-6 -kerning first=65 second=85 amount=-3 -kerning first=65 second=86 amount=-6 -kerning first=65 second=87 amount=-3 -kerning first=65 second=89 amount=-8 -kerning first=66 second=65 amount=-2 -kerning first=66 second=69 amount=-1 -kerning first=66 second=76 amount=-1 -kerning first=66 second=80 amount=-1 -kerning first=66 second=82 amount=-1 -kerning first=66 second=85 amount=-1 -kerning first=66 second=86 amount=-3 -kerning first=66 second=87 amount=-2 -kerning first=66 second=89 amount=-4 -kerning first=67 second=65 amount=-3 -kerning first=67 second=79 amount=-1 -kerning first=67 second=82 amount=-1 -kerning first=68 second=65 amount=-3 -kerning first=68 second=68 amount=-1 -kerning first=68 second=69 amount=-1 -kerning first=68 second=73 amount=-1 -kerning first=68 second=76 amount=-1 -kerning first=68 second=77 amount=-1 -kerning first=68 second=78 amount=-1 -kerning first=68 second=79 amount=-1 -kerning first=68 second=80 amount=-1 -kerning first=68 second=82 amount=-1 -kerning first=68 second=85 amount=-1 -kerning first=68 second=86 amount=-3 -kerning first=68 second=87 amount=-1 -kerning first=68 second=89 amount=-4 -kerning first=69 second=67 amount=-2 -kerning first=69 second=79 amount=-2 -kerning first=70 second=65 amount=-5 -kerning first=70 second=67 amount=-2 -kerning first=70 second=71 amount=-2 -kerning first=70 second=79 amount=-2 -kerning first=70 second=46 amount=-7 -kerning first=70 second=44 amount=-8 -kerning first=71 second=69 amount=-1 -kerning first=71 second=79 amount=-1 -kerning first=71 second=82 amount=-1 -kerning first=71 second=85 amount=-1 -kerning first=72 second=79 amount=-1 -kerning first=73 second=67 amount=-1 -kerning first=73 second=71 amount=-1 -kerning first=73 second=79 amount=-1 -kerning first=74 second=65 amount=-3 -kerning first=74 second=79 amount=-1 -kerning first=75 second=79 amount=-4 -kerning first=76 second=39 amount=-9 -kerning first=76 second=67 amount=-2 -kerning first=76 second=84 amount=-6 -kerning first=76 second=86 amount=-6 -kerning first=76 second=87 amount=-2 -kerning first=76 second=89 amount=-8 -kerning first=76 second=71 amount=-2 -kerning first=76 second=79 amount=-2 -kerning first=76 second=85 amount=-2 -kerning first=77 second=71 amount=-2 -kerning first=77 second=79 amount=-2 -kerning first=78 second=67 amount=-1 -kerning first=78 second=71 amount=-1 -kerning first=78 second=79 amount=-1 -kerning first=79 second=65 amount=-3 -kerning first=79 second=66 amount=-1 -kerning first=79 second=68 amount=-1 -kerning first=79 second=69 amount=-1 -kerning first=79 second=70 amount=-1 -kerning first=79 second=72 amount=-1 -kerning first=79 second=73 amount=-1 -kerning first=79 second=75 amount=-1 -kerning first=79 second=76 amount=-1 -kerning first=79 second=77 amount=-1 -kerning first=79 second=78 amount=-1 -kerning first=79 second=80 amount=-1 -kerning first=79 second=82 amount=-1 -kerning first=79 second=84 amount=-2 -kerning first=79 second=85 amount=-1 -kerning first=79 second=86 amount=-3 -kerning first=79 second=87 amount=-1 -kerning first=79 second=88 amount=-4 -kerning first=79 second=89 amount=-4 -kerning first=80 second=65 amount=-4 -kerning first=80 second=69 amount=-1 -kerning first=80 second=76 amount=-1 -kerning first=80 second=79 amount=-1 -kerning first=80 second=80 amount=-1 -kerning first=80 second=85 amount=-1 -kerning first=80 second=89 amount=-3 -kerning first=80 second=46 amount=-11 -kerning first=80 second=44 amount=-12 -kerning first=80 second=59 amount=-1 -kerning first=80 second=58 amount=-1 -kerning first=81 second=85 amount=-3 -kerning first=82 second=67 amount=-3 -kerning first=82 second=71 amount=-3 -kerning first=82 second=89 amount=-6 -kerning first=82 second=84 amount=-4 -kerning first=82 second=85 amount=-3 -kerning first=82 second=86 amount=-5 -kerning first=82 second=87 amount=-3 -kerning first=82 second=89 amount=-6 -kerning first=83 second=73 amount=-1 -kerning first=83 second=77 amount=-1 -kerning first=83 second=84 amount=-2 -kerning first=83 second=85 amount=-1 -kerning first=84 second=65 amount=-5 -kerning first=84 second=67 amount=-2 -kerning first=84 second=79 amount=-2 -kerning first=85 second=65 amount=-3 -kerning first=85 second=67 amount=-1 -kerning first=85 second=71 amount=-1 -kerning first=85 second=79 amount=-1 -kerning first=85 second=83 amount=-2 -kerning first=86 second=65 amount=-6 -kerning first=86 second=67 amount=-3 -kerning first=86 second=71 amount=-3 -kerning first=86 second=79 amount=-3 -kerning first=86 second=83 amount=-3 -kerning first=87 second=65 amount=-5 -kerning first=87 second=67 amount=-2 -kerning first=87 second=71 amount=-2 -kerning first=87 second=79 amount=-2 -kerning first=89 second=65 amount=-6 -kerning first=89 second=67 amount=-3 -kerning first=89 second=79 amount=-3 -kerning first=89 second=83 amount=-3 -kerning first=90 second=79 amount=-2 -kerning first=65 second=99 amount=-3 -kerning first=65 second=100 amount=-2 -kerning first=65 second=101 amount=-2 -kerning first=65 second=103 amount=-3 -kerning first=65 second=111 amount=-3 -kerning first=65 second=112 amount=-2 -kerning first=65 second=113 amount=-3 -kerning first=65 second=116 amount=-6 -kerning first=65 second=117 amount=-3 -kerning first=65 second=118 amount=-6 -kerning first=65 second=119 amount=-3 -kerning first=65 second=121 amount=-8 -kerning first=66 second=98 amount=-1 -kerning first=66 second=105 amount=-1 -kerning first=66 second=107 amount=-1 -kerning first=66 second=108 amount=-1 -kerning first=66 second=114 amount=-1 -kerning first=66 second=117 amount=-1 -kerning first=66 second=121 amount=-4 -kerning first=66 second=46 amount=-1 -kerning first=66 second=44 amount=-2 -kerning first=67 second=97 amount=-3 -kerning first=67 second=114 amount=-1 -kerning first=67 second=46 amount=-2 -kerning first=67 second=44 amount=-3 -kerning first=68 second=97 amount=-3 -kerning first=68 second=46 amount=-2 -kerning first=68 second=44 amount=-3 -kerning first=69 second=117 amount=-2 -kerning first=69 second=118 amount=-2 -kerning first=70 second=97 amount=-5 -kerning first=70 second=101 amount=-1 -kerning first=70 second=105 amount=-1 -kerning first=70 second=111 amount=-2 -kerning first=70 second=114 amount=-1 -kerning first=70 second=116 amount=-1 -kerning first=70 second=117 amount=-2 -kerning first=70 second=121 amount=-3 -kerning first=70 second=46 amount=-7 -kerning first=70 second=44 amount=-8 -kerning first=70 second=59 amount=-2 -kerning first=70 second=58 amount=-2 -kerning first=71 second=117 amount=-1 -kerning first=72 second=101 amount=-1 -kerning first=72 second=111 amount=-1 -kerning first=72 second=117 amount=-1 -kerning first=72 second=121 amount=-3 -kerning first=73 second=99 amount=-1 -kerning first=73 second=100 amount=-1 -kerning first=73 second=113 amount=-1 -kerning first=73 second=111 amount=-1 -kerning first=73 second=116 amount=-1 -kerning first=74 second=97 amount=-3 -kerning first=74 second=101 amount=-1 -kerning first=74 second=111 amount=-1 -kerning first=74 second=117 amount=-1 -kerning first=74 second=46 amount=-2 -kerning first=74 second=44 amount=-3 -kerning first=75 second=101 amount=-3 -kerning first=75 second=111 amount=-4 -kerning first=75 second=117 amount=-4 -kerning first=76 second=117 amount=-2 -kerning first=76 second=121 amount=-8 -kerning first=77 second=97 amount=-2 -kerning first=77 second=99 amount=-2 -kerning first=77 second=100 amount=-1 -kerning first=77 second=101 amount=-1 -kerning first=77 second=111 amount=-2 -kerning first=78 second=117 amount=-1 -kerning first=78 second=97 amount=-2 -kerning first=78 second=101 amount=-1 -kerning first=78 second=105 amount=-1 -kerning first=78 second=111 amount=-1 -kerning first=78 second=117 amount=-1 -kerning first=78 second=46 amount=-1 -kerning first=78 second=44 amount=-2 -kerning first=79 second=97 amount=-3 -kerning first=79 second=98 amount=-1 -kerning first=79 second=104 amount=-1 -kerning first=79 second=107 amount=-1 -kerning first=79 second=108 amount=-1 -kerning first=79 second=46 amount=-2 -kerning first=79 second=44 amount=-3 -kerning first=80 second=97 amount=-4 -kerning first=80 second=101 amount=-1 -kerning first=80 second=111 amount=-1 -kerning first=82 second=100 amount=-3 -kerning first=82 second=101 amount=-3 -kerning first=82 second=111 amount=-3 -kerning first=82 second=116 amount=-4 -kerning first=82 second=117 amount=-3 -kerning first=83 second=105 amount=-1 -kerning first=83 second=112 amount=-1 -kerning first=83 second=117 amount=-1 -kerning first=83 second=46 amount=-1 -kerning first=83 second=44 amount=-2 -kerning first=84 second=97 amount=-5 -kerning first=84 second=99 amount=-2 -kerning first=84 second=101 amount=-1 -kerning first=84 second=105 amount=-1 -kerning first=84 second=111 amount=-2 -kerning first=84 second=114 amount=-1 -kerning first=84 second=115 amount=-2 -kerning first=84 second=117 amount=-2 -kerning first=84 second=119 amount=-1 -kerning first=84 second=121 amount=-3 -kerning first=84 second=46 amount=-6 -kerning first=84 second=44 amount=-7 -kerning first=84 second=59 amount=-6 -kerning first=84 second=58 amount=-6 -kerning first=85 second=97 amount=-3 -kerning first=85 second=103 amount=-1 -kerning first=85 second=109 amount=-1 -kerning first=85 second=110 amount=-1 -kerning first=85 second=112 amount=-1 -kerning first=85 second=115 amount=-2 -kerning first=85 second=46 amount=-2 -kerning first=85 second=44 amount=-3 -kerning first=86 second=97 amount=-6 -kerning first=86 second=101 amount=-2 -kerning first=86 second=105 amount=-2 -kerning first=86 second=111 amount=-3 -kerning first=86 second=114 amount=-2 -kerning first=86 second=117 amount=-3 -kerning first=86 second=46 amount=-6 -kerning first=86 second=44 amount=-7 -kerning first=86 second=59 amount=-4 -kerning first=86 second=58 amount=-4 -kerning first=87 second=100 amount=-2 -kerning first=87 second=105 amount=-2 -kerning first=87 second=109 amount=-3 -kerning first=87 second=114 amount=-2 -kerning first=87 second=116 amount=-2 -kerning first=87 second=117 amount=-2 -kerning first=87 second=121 amount=-4 -kerning first=87 second=46 amount=-4 -kerning first=87 second=44 amount=-5 -kerning first=87 second=59 amount=-2 -kerning first=87 second=58 amount=-2 -kerning first=88 second=97 amount=-4 -kerning first=88 second=101 amount=-3 -kerning first=88 second=111 amount=-4 -kerning first=88 second=117 amount=-4 -kerning first=88 second=121 amount=-6 -kerning first=89 second=100 amount=-2 -kerning first=89 second=101 amount=-2 -kerning first=89 second=105 amount=-2 -kerning first=89 second=112 amount=-2 -kerning first=89 second=117 amount=-3 -kerning first=89 second=118 amount=-3 -kerning first=89 second=46 amount=-6 -kerning first=89 second=44 amount=-7 -kerning first=89 second=59 amount=-4 -kerning first=89 second=58 amount=-4 -kerning first=97 second=99 amount=-3 -kerning first=97 second=100 amount=-2 -kerning first=97 second=101 amount=-2 -kerning first=97 second=103 amount=-3 -kerning first=97 second=112 amount=-2 -kerning first=97 second=102 amount=-2 -kerning first=97 second=116 amount=-6 -kerning first=97 second=117 amount=-3 -kerning first=97 second=118 amount=-6 -kerning first=97 second=119 amount=-3 -kerning first=97 second=121 amount=-8 -kerning first=97 second=112 amount=-2 -kerning first=98 second=108 amount=-1 -kerning first=98 second=114 amount=-1 -kerning first=98 second=117 amount=-1 -kerning first=98 second=121 amount=-4 -kerning first=98 second=46 amount=-1 -kerning first=98 second=44 amount=-2 -kerning first=99 second=97 amount=-3 -kerning first=99 second=104 amount=-1 -kerning first=99 second=107 amount=-1 -kerning first=100 second=97 amount=-3 -kerning first=100 second=99 amount=-1 -kerning first=100 second=101 amount=-1 -kerning first=100 second=103 amount=-1 -kerning first=100 second=111 amount=-1 -kerning first=100 second=116 amount=-2 -kerning first=100 second=117 amount=-1 -kerning first=100 second=118 amount=-3 -kerning first=100 second=119 amount=-1 -kerning first=100 second=121 amount=-4 -kerning first=100 second=46 amount=-2 -kerning first=100 second=44 amount=-3 -kerning first=101 second=97 amount=-2 -kerning first=101 second=105 amount=-1 -kerning first=101 second=108 amount=-1 -kerning first=101 second=109 amount=-1 -kerning first=101 second=110 amount=-1 -kerning first=101 second=112 amount=-1 -kerning first=101 second=114 amount=-1 -kerning first=101 second=116 amount=-1 -kerning first=101 second=117 amount=-2 -kerning first=101 second=118 amount=-2 -kerning first=101 second=119 amount=-1 -kerning first=101 second=121 amount=-3 -kerning first=101 second=46 amount=-1 -kerning first=101 second=44 amount=-2 -kerning first=102 second=97 amount=-5 -kerning first=102 second=101 amount=-1 -kerning first=102 second=102 amount=-1 -kerning first=102 second=105 amount=-1 -kerning first=102 second=108 amount=-1 -kerning first=102 second=111 amount=-2 -kerning first=102 second=46 amount=-7 -kerning first=102 second=44 amount=-8 -kerning first=103 second=97 amount=-3 -kerning first=103 second=101 amount=-1 -kerning first=103 second=104 amount=-1 -kerning first=103 second=108 amount=-1 -kerning first=103 second=111 amount=-1 -kerning first=103 second=103 amount=-1 -kerning first=103 second=46 amount=-2 -kerning first=103 second=44 amount=-3 -kerning first=104 second=99 amount=-1 -kerning first=104 second=100 amount=-1 -kerning first=104 second=101 amount=-1 -kerning first=104 second=103 amount=-1 -kerning first=104 second=111 amount=-1 -kerning first=104 second=112 amount=-1 -kerning first=104 second=116 amount=-1 -kerning first=104 second=117 amount=-1 -kerning first=104 second=118 amount=-2 -kerning first=104 second=119 amount=-1 -kerning first=104 second=121 amount=-3 -kerning first=105 second=99 amount=-1 -kerning first=105 second=100 amount=-1 -kerning first=105 second=101 amount=-1 -kerning first=105 second=103 amount=-1 -kerning first=105 second=111 amount=-1 -kerning first=105 second=112 amount=-1 -kerning first=105 second=116 amount=-1 -kerning first=105 second=117 amount=-1 -kerning first=105 second=118 amount=-2 -kerning first=106 second=97 amount=-3 -kerning first=106 second=101 amount=-1 -kerning first=106 second=111 amount=-1 -kerning first=106 second=117 amount=-1 -kerning first=106 second=46 amount=-2 -kerning first=106 second=44 amount=-3 -kerning first=107 second=97 amount=-4 -kerning first=107 second=99 amount=-4 -kerning first=107 second=100 amount=-3 -kerning first=107 second=101 amount=-3 -kerning first=107 second=103 amount=-4 -kerning first=107 second=111 amount=-4 -kerning first=108 second=97 amount=-2 -kerning first=108 second=99 amount=-2 -kerning first=108 second=100 amount=-1 -kerning first=108 second=101 amount=-1 -kerning first=108 second=102 amount=-1 -kerning first=108 second=103 amount=-2 -kerning first=108 second=111 amount=-2 -kerning first=108 second=112 amount=-1 -kerning first=108 second=113 amount=-2 -kerning first=108 second=117 amount=-2 -kerning first=108 second=118 amount=-6 -kerning first=108 second=119 amount=-2 -kerning first=108 second=121 amount=-8 -kerning first=109 second=97 amount=-2 -kerning first=109 second=99 amount=-2 -kerning first=109 second=100 amount=-1 -kerning first=109 second=101 amount=-1 -kerning first=109 second=103 amount=-2 -kerning first=109 second=110 amount=-1 -kerning first=109 second=111 amount=-2 -kerning first=109 second=112 amount=-1 -kerning first=109 second=116 amount=-2 -kerning first=109 second=117 amount=-2 -kerning first=109 second=118 amount=-3 -kerning first=109 second=121 amount=-4 -kerning first=110 second=99 amount=-1 -kerning first=110 second=100 amount=-1 -kerning first=110 second=101 amount=-1 -kerning first=110 second=103 amount=-1 -kerning first=110 second=111 amount=-1 -kerning first=110 second=112 amount=-1 -kerning first=110 second=116 amount=-1 -kerning first=110 second=117 amount=-1 -kerning first=110 second=118 amount=-2 -kerning first=110 second=119 amount=-1 -kerning first=110 second=121 amount=-3 -kerning first=111 second=98 amount=-1 -kerning first=111 second=102 amount=-1 -kerning first=111 second=104 amount=-1 -kerning first=111 second=106 amount=-1 -kerning first=111 second=107 amount=-1 -kerning first=111 second=108 amount=-1 -kerning first=111 second=109 amount=-1 -kerning first=111 second=110 amount=-1 -kerning first=111 second=112 amount=-1 -kerning first=111 second=114 amount=-1 -kerning first=111 second=117 amount=-1 -kerning first=111 second=118 amount=-3 -kerning first=111 second=119 amount=-1 -kerning first=111 second=120 amount=-4 -kerning first=111 second=121 amount=-4 -kerning first=111 second=46 amount=-2 -kerning first=111 second=44 amount=-3 -kerning first=112 second=97 amount=-4 -kerning first=112 second=104 amount=-1 -kerning first=112 second=105 amount=-1 -kerning first=112 second=108 amount=-1 -kerning first=112 second=112 amount=-1 -kerning first=112 second=117 amount=-1 -kerning first=112 second=46 amount=-11 -kerning first=112 second=44 amount=-12 -kerning first=113 second=117 amount=-3 -kerning first=116 second=46 amount=-6 -kerning first=114 second=97 amount=-4 -kerning first=114 second=100 amount=-3 -kerning first=114 second=101 amount=-3 -kerning first=114 second=103 amount=-3 -kerning first=114 second=107 amount=-3 -kerning first=114 second=108 amount=-3 -kerning first=114 second=109 amount=-3 -kerning first=114 second=110 amount=-3 -kerning first=114 second=111 amount=-3 -kerning first=114 second=113 amount=-3 -kerning first=114 second=114 amount=-3 -kerning first=114 second=116 amount=-4 -kerning first=114 second=118 amount=-5 -kerning first=114 second=121 amount=-6 -kerning first=114 second=46 amount=-3 -kerning first=114 second=44 amount=-4 -kerning first=115 second=104 amount=-1 -kerning first=115 second=116 amount=-2 -kerning first=115 second=117 amount=-1 -kerning first=115 second=46 amount=-1 -kerning first=115 second=44 amount=-2 -kerning first=116 second=100 amount=-1 -kerning first=116 second=97 amount=-5 -kerning first=116 second=101 amount=-1 -kerning first=116 second=111 amount=-2 -kerning first=116 second=46 amount=-6 -kerning first=116 second=44 amount=-7 -kerning first=117 second=97 amount=-3 -kerning first=117 second=99 amount=-1 -kerning first=117 second=100 amount=-1 -kerning first=117 second=101 amount=-1 -kerning first=117 second=103 amount=-1 -kerning first=117 second=111 amount=-1 -kerning first=117 second=112 amount=-1 -kerning first=117 second=113 amount=-1 -kerning first=117 second=116 amount=-2 -kerning first=117 second=118 amount=-3 -kerning first=117 second=119 amount=-1 -kerning first=117 second=121 amount=-4 -kerning first=118 second=97 amount=-6 -kerning first=118 second=98 amount=-2 -kerning first=118 second=99 amount=-3 -kerning first=118 second=100 amount=-2 -kerning first=118 second=101 amount=-2 -kerning first=118 second=103 amount=-3 -kerning first=118 second=111 amount=-3 -kerning first=118 second=118 amount=-3 -kerning first=118 second=121 amount=-4 -kerning first=118 second=46 amount=-6 -kerning first=118 second=44 amount=-7 -kerning first=119 second=97 amount=-5 -kerning first=119 second=120 amount=-4 -kerning first=119 second=100 amount=-2 -kerning first=119 second=101 amount=-2 -kerning first=119 second=103 amount=-2 -kerning first=119 second=104 amount=-2 -kerning first=119 second=111 amount=-2 -kerning first=119 second=46 amount=-4 -kerning first=119 second=44 amount=-5 -kerning first=120 second=97 amount=-4 -kerning first=120 second=101 amount=-3 -kerning first=120 second=111 amount=-4 -kerning first=121 second=46 amount=-6 -kerning first=121 second=44 amount=-7 -kerning first=121 second=97 amount=-6 -kerning first=121 second=99 amount=-3 -kerning first=121 second=100 amount=-2 -kerning first=121 second=101 amount=-2 -kerning first=121 second=111 amount=-3 -kerning first=117 second=109 amount=-1 -kerning first=84 second=104 amount=-1 -kerning first=118 second=101 amount=-2 -kerning first=119 second=110 amount=-2 -kerning first=112 second=115 amount=-2 -kerning first=76 second=97 amount=-2 -kerning first=117 second=105 amount=-1 -kerning first=98 second=101 amount=-1 diff --git a/desktop/src/net/shipsandgiggles/pirate/desktop/DesktopLauncher.java b/desktop/src/net/shipsandgiggles/pirate/desktop/DesktopLauncher.java index 411444e..216b85c 100644 --- a/desktop/src/net/shipsandgiggles/pirate/desktop/DesktopLauncher.java +++ b/desktop/src/net/shipsandgiggles/pirate/desktop/DesktopLauncher.java @@ -1,9 +1,11 @@ package net.shipsandgiggles.pirate.desktop; +import com.badlogic.gdx.Files; import com.badlogic.gdx.backends.lwjgl.LwjglApplication; import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration; import net.shipsandgiggles.pirate.PirateGame; + public class DesktopLauncher { public static void main(String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); @@ -11,6 +13,7 @@ public static void main(String[] arg) { config.width = 1920; config.foregroundFPS = 60; config.backgroundFPS = 60; + config.addIcon("models/Black_Flag.png", Files.FileType.Internal); new LwjglApplication(new PirateGame(), config); } -} +} \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f371643..4d9ca16 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/html/build.gradle b/html/build.gradle new file mode 100644 index 0000000..4b5baac --- /dev/null +++ b/html/build.gradle @@ -0,0 +1,90 @@ +gwt { + gwtVersion='2.8.2' // Should match the gwt version used for building the gwt backend + maxHeapSize="1G" // Default 256m is not enough for gwt compiler. GWT is HUNGRY + minHeapSize="1G" + + src = files(file("src/")) // Needs to be in front of "modules" below. + modules 'com.mygdx.game.GdxDefinition' + devModules 'com.mygdx.game.GdxDefinitionSuperdev' + project.webAppDirName = 'webapp' + + compiler { + strict = true; + disableCastChecking = true; + } +} + +import org.wisepersist.gradle.plugins.gwt.GwtSuperDev +import org.akhikhl.gretty.AppBeforeIntegrationTestTask + +gretty.httpPort = 8080 +gretty.resourceBase = project.buildDir.path + "/gwt/draftOut" +gretty.contextPath = "/" +gretty.portPropertiesFileName = "TEMP_PORTS.properties" + +task startHttpServer () { + dependsOn draftCompileGwt + + doFirst { + copy { + from "webapp" + into gretty.resourceBase + } + + copy { + from "war" + into gretty.resourceBase + } + } +} + +task beforeRun(type: AppBeforeIntegrationTestTask, dependsOn: startHttpServer) { + // The next line allows ports to be reused instead of + // needing a process to be manually terminated. + file("build/TEMP_PORTS.properties").delete() + // Somewhat of a hack; uses Gretty's support for wrapping a task in + // a start and then stop of a Jetty server that serves files while + // also running the SuperDev code server. + integrationTestTask 'superDev' + + interactive false +} + +task superDev (type: GwtSuperDev) { + dependsOn startHttpServer + doFirst { + gwt.modules = gwt.devModules + } +} + +task dist(dependsOn: [clean, compileGwt]) { + doLast { + file("build/dist").mkdirs() + copy { + from "build/gwt/out" + into "build/dist" + } + copy { + from "webapp" + into "build/dist" + } + copy { + from "war" + into "build/dist" + } + } +} + +task addSource { + doLast { + sourceSets.main.compileClasspath += files(project(':core').sourceSets.main.allJava.srcDirs) + } +} + +tasks.compileGwt.dependsOn(addSource) +tasks.draftCompileGwt.dependsOn(addSource) + +sourceCompatibility = 1.7 +sourceSets.main.java.srcDirs = [ "src/" ] + +eclipse.project.name = appName + "-html" diff --git a/html/src/com/mygdx/game/GdxDefinition.gwt.xml b/html/src/com/mygdx/game/GdxDefinition.gwt.xml new file mode 100644 index 0000000..607a763 --- /dev/null +++ b/html/src/com/mygdx/game/GdxDefinition.gwt.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/html/src/com/mygdx/game/GdxDefinitionSuperdev.gwt.xml b/html/src/com/mygdx/game/GdxDefinitionSuperdev.gwt.xml new file mode 100644 index 0000000..54fc6cd --- /dev/null +++ b/html/src/com/mygdx/game/GdxDefinitionSuperdev.gwt.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/html/src/com/mygdx/game/client/HtmlLauncher.java b/html/src/com/mygdx/game/client/HtmlLauncher.java new file mode 100644 index 0000000..66ca8f6 --- /dev/null +++ b/html/src/com/mygdx/game/client/HtmlLauncher.java @@ -0,0 +1,22 @@ +package com.mygdx.game.client; + +import com.badlogic.gdx.ApplicationListener; +import com.badlogic.gdx.backends.gwt.GwtApplication; +import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; +import com.mygdx.game.MyGdxGame; + +public class HtmlLauncher extends GwtApplication { + + @Override + public GwtApplicationConfiguration getConfig () { + // Resizable application, uses available space in browser + return new GwtApplicationConfiguration(true); + // Fixed size application: + //return new GwtApplicationConfiguration(480, 320); + } + + @Override + public ApplicationListener createApplicationListener () { + return new MyGdxGame(); + } +} \ No newline at end of file diff --git a/html/webapp/WEB-INF/web.xml b/html/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..4301df2 --- /dev/null +++ b/html/webapp/WEB-INF/web.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/html/webapp/index.html b/html/webapp/index.html new file mode 100644 index 0000000..bdc864f --- /dev/null +++ b/html/webapp/index.html @@ -0,0 +1,30 @@ + + + + ENG1 + + + + + + + +
+ + + + + diff --git a/html/webapp/refresh.png b/html/webapp/refresh.png new file mode 100644 index 0000000..24a48f1 Binary files /dev/null and b/html/webapp/refresh.png differ diff --git a/html/webapp/styles.css b/html/webapp/styles.css new file mode 100644 index 0000000..0abbdaa --- /dev/null +++ b/html/webapp/styles.css @@ -0,0 +1,43 @@ +canvas { + cursor: default; + outline: none; +} + +body { + background-color: #222222; +} + +.superdev { + color: rgb(37,37,37); + text-shadow: 0px 1px 1px rgba(250,250,250,0.1); + font-size: 50pt; + display: block; + position: relative; + text-decoration: none; + background-color: rgb(83,87,93); + box-shadow: 0px 3px 0px 0px rgb(34,34,34), + 0px 7px 10px 0px rgb(17,17,17), + inset 0px 1px 1px 0px rgba(250, 250, 250, .2), + inset 0px -12px 35px 0px rgba(0, 0, 0, .5); + width: 70px; + height: 70px; + border: 0; + border-radius: 35px; + text-align: center; + line-height: 68px; +} + +.superdev:active { + box-shadow: 0px 0px 0px 0px rgb(34,34,34), + 0px 3px 7px 0px rgb(17,17,17), + inset 0px 1px 1px 0px rgba(250, 250, 250, .2), + inset 0px -10px 35px 5px rgba(0, 0, 0, .5); + background-color: rgb(83,87,93); + top: 3px; + color: #fff; + text-shadow: 0px 0px 3px rgb(250,250,250); +} + +.superdev:hover { + background-color: rgb(100,100,100); +} diff --git a/ios/Info.plist.xml b/ios/Info.plist.xml new file mode 100644 index 0000000..5d4aad2 --- /dev/null +++ b/ios/Info.plist.xml @@ -0,0 +1,54 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${app.name} + CFBundleExecutable + ${app.executable} + CFBundleIdentifier + ${app.id} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${app.name} + CFBundlePackageType + APPL + CFBundleShortVersionString + ${app.version} + CFBundleSignature + ???? + CFBundleVersion + ${app.build} + LSRequiresIPhoneOS + + UIViewControllerBasedStatusBarAppearance + + UIStatusBarHidden + + MinimumOSVersion + 8.0 + UIDeviceFamily + + 1 + 2 + + UIRequiredDeviceCapabilities + + opengles-2 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UILaunchStoryboardName + LaunchScreen + CFBundleIconName + AppIcon + + diff --git a/ios/build.gradle b/ios/build.gradle new file mode 100644 index 0000000..4f9c0d5 --- /dev/null +++ b/ios/build.gradle @@ -0,0 +1,19 @@ +sourceSets.main.java.srcDirs = [ "src/" ] + +sourceCompatibility = '1.7' +[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' + +ext { + mainClassName = "com.mygdx.game.IOSLauncher" +} + +launchIPhoneSimulator.dependsOn build +launchIPadSimulator.dependsOn build +launchIOSDevice.dependsOn build +createIPA.dependsOn build + +robovm { + archs = "thumbv7:arm64" +} + +eclipse.project.name = appName + "-ios" diff --git a/ios/data/Base.lproj/LaunchScreen.storyboard b/ios/data/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..5fb346b --- /dev/null +++ b/ios/data/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/Contents.json b/ios/data/Media.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9ed19e1 --- /dev/null +++ b/ios/data/Media.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,116 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "iphone-notification-icon-20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "iphone-notification-icon-20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "iphone-spotlight-settings-icon-29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "iphone-spotlight-settings-icon-29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "iphone-spotlight-icon-40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "iphone-spotlight-icon-40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "iphone-app-icon-60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "iphone-app-icon-60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "ipad-notifications-icon-20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "ipad-notifications-icon-20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "ipad-settings-icon-29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "ipad-settings-icon-29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "ipad-spotlight-icon-40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "ipad-spotlight-icon-40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "ipad-app-icon-76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "ipad-app-icon-76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "ipad-pro-app-icon-83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "app-store-icon-1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/app-store-icon-1024@1x.png b/ios/data/Media.xcassets/AppIcon.appiconset/app-store-icon-1024@1x.png new file mode 100644 index 0000000..b4a987c Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/app-store-icon-1024@1x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/ipad-app-icon-76@1x.png b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-app-icon-76@1x.png new file mode 100644 index 0000000..d425b2f Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-app-icon-76@1x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/ipad-app-icon-76@2x.png b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-app-icon-76@2x.png new file mode 100644 index 0000000..192460f Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-app-icon-76@2x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/ipad-notifications-icon-20@1x.png b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-notifications-icon-20@1x.png new file mode 100644 index 0000000..3ad5eb6 Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-notifications-icon-20@1x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/ipad-notifications-icon-20@2x.png b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-notifications-icon-20@2x.png new file mode 100644 index 0000000..0dbad45 Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-notifications-icon-20@2x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/ipad-pro-app-icon-83.5@2x.png b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-pro-app-icon-83.5@2x.png new file mode 100644 index 0000000..0710fdb Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-pro-app-icon-83.5@2x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/ipad-settings-icon-29@1x.png b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-settings-icon-29@1x.png new file mode 100644 index 0000000..949fbaa Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-settings-icon-29@1x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/ipad-settings-icon-29@2x.png b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-settings-icon-29@2x.png new file mode 100644 index 0000000..0a82ae9 Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-settings-icon-29@2x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/ipad-spotlight-icon-40@1x.png b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-spotlight-icon-40@1x.png new file mode 100644 index 0000000..0dbad45 Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-spotlight-icon-40@1x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/ipad-spotlight-icon-40@2x.png b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-spotlight-icon-40@2x.png new file mode 100644 index 0000000..4fc801a Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/ipad-spotlight-icon-40@2x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/iphone-app-icon-60@2x.png b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-app-icon-60@2x.png new file mode 100644 index 0000000..4ce7690 Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-app-icon-60@2x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/iphone-app-icon-60@3x.png b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-app-icon-60@3x.png new file mode 100644 index 0000000..a0a4ae4 Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-app-icon-60@3x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/iphone-notification-icon-20@2x.png b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-notification-icon-20@2x.png new file mode 100644 index 0000000..0dbad45 Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-notification-icon-20@2x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/iphone-notification-icon-20@3x.png b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-notification-icon-20@3x.png new file mode 100644 index 0000000..b4fc090 Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-notification-icon-20@3x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-icon-40@2x.png b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-icon-40@2x.png new file mode 100644 index 0000000..4fc801a Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-icon-40@2x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-icon-40@3x.png b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-icon-40@3x.png new file mode 100644 index 0000000..4ce7690 Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-icon-40@3x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-settings-icon-29@2x.png b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-settings-icon-29@2x.png new file mode 100644 index 0000000..0a82ae9 Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-settings-icon-29@2x.png differ diff --git a/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-settings-icon-29@3x.png b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-settings-icon-29@3x.png new file mode 100644 index 0000000..eb0446e Binary files /dev/null and b/ios/data/Media.xcassets/AppIcon.appiconset/iphone-spotlight-settings-icon-29@3x.png differ diff --git a/ios/data/Media.xcassets/Contents.json b/ios/data/Media.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/ios/data/Media.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios/data/Media.xcassets/Logo.imageset/Contents.json b/ios/data/Media.xcassets/Logo.imageset/Contents.json new file mode 100644 index 0000000..1a13499 --- /dev/null +++ b/ios/data/Media.xcassets/Logo.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "libgdx@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "libgdx@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "libgdx@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/data/Media.xcassets/Logo.imageset/libgdx@1x.png b/ios/data/Media.xcassets/Logo.imageset/libgdx@1x.png new file mode 100644 index 0000000..22c41cb Binary files /dev/null and b/ios/data/Media.xcassets/Logo.imageset/libgdx@1x.png differ diff --git a/ios/data/Media.xcassets/Logo.imageset/libgdx@2x.png b/ios/data/Media.xcassets/Logo.imageset/libgdx@2x.png new file mode 100644 index 0000000..d077d74 Binary files /dev/null and b/ios/data/Media.xcassets/Logo.imageset/libgdx@2x.png differ diff --git a/ios/data/Media.xcassets/Logo.imageset/libgdx@3x.png b/ios/data/Media.xcassets/Logo.imageset/libgdx@3x.png new file mode 100644 index 0000000..e1d7262 Binary files /dev/null and b/ios/data/Media.xcassets/Logo.imageset/libgdx@3x.png differ diff --git a/ios/robovm.properties b/ios/robovm.properties new file mode 100644 index 0000000..8135807 --- /dev/null +++ b/ios/robovm.properties @@ -0,0 +1,6 @@ +app.version=1.0 +app.id=com.mygdx.game +app.mainclass=com.mygdx.game.IOSLauncher +app.executable=IOSLauncher +app.build=1 +app.name=ENG1 diff --git a/ios/robovm.xml b/ios/robovm.xml new file mode 100644 index 0000000..7ef1f73 --- /dev/null +++ b/ios/robovm.xml @@ -0,0 +1,48 @@ + + ${app.executable} + ${app.mainclass} + ios + ios + Info.plist.xml + conservative + + + ../core/assets + + ** + + true + + + data + + + + com.badlogic.gdx.scenes.scene2d.ui.* + com.badlogic.gdx.graphics.g3d.particles.** + com.android.okhttp.HttpHandler + com.android.okhttp.HttpsHandler + com.android.org.conscrypt.** + com.android.org.bouncycastle.jce.provider.BouncyCastleProvider + com.android.org.bouncycastle.jcajce.provider.keystore.BC$Mappings + com.android.org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi + com.android.org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi$Std + com.android.org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi + com.android.org.bouncycastle.crypto.digests.AndroidDigestFactoryOpenSSL + org.apache.harmony.security.provider.cert.DRLCertFactory + org.apache.harmony.security.provider.crypto.CryptoProvider + + + z + + + UIKit + OpenGLES + QuartzCore + CoreGraphics + OpenAL + AudioToolbox + AVFoundation + GameController + + diff --git a/ios/src/com/mygdx/game/IOSLauncher.java b/ios/src/com/mygdx/game/IOSLauncher.java new file mode 100644 index 0000000..583745a --- /dev/null +++ b/ios/src/com/mygdx/game/IOSLauncher.java @@ -0,0 +1,22 @@ +package com.mygdx.game; + +import org.robovm.apple.foundation.NSAutoreleasePool; +import org.robovm.apple.uikit.UIApplication; + +import com.badlogic.gdx.backends.iosrobovm.IOSApplication; +import com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration; +import com.mygdx.game.MyGdxGame; + +public class IOSLauncher extends IOSApplication.Delegate { + @Override + protected IOSApplication createApplication() { + IOSApplicationConfiguration config = new IOSApplicationConfiguration(); + return new IOSApplication(new MyGdxGame(), config); + } + + public static void main(String[] argv) { + NSAutoreleasePool pool = new NSAutoreleasePool(); + UIApplication.main(argv, null, IOSLauncher.class); + pool.close(); + } +} \ No newline at end of file diff --git a/javadoc/javadoc/allclasses-frame.html b/javadoc/javadoc/allclasses-frame.html new file mode 100644 index 0000000..49a0e44 --- /dev/null +++ b/javadoc/javadoc/allclasses-frame.html @@ -0,0 +1,51 @@ + + + + + +All Classes (core 1.0 API) + + + + +

All Classes

+ + + diff --git a/javadoc/javadoc/allclasses-noframe.html b/javadoc/javadoc/allclasses-noframe.html new file mode 100644 index 0000000..dc025c0 --- /dev/null +++ b/javadoc/javadoc/allclasses-noframe.html @@ -0,0 +1,51 @@ + + + + + +All Classes (core 1.0 API) + + + + +

All Classes

+ + + diff --git a/javadoc/javadoc/constant-values.html b/javadoc/javadoc/constant-values.html new file mode 100644 index 0000000..237e710 --- /dev/null +++ b/javadoc/javadoc/constant-values.html @@ -0,0 +1,213 @@ + + + + + +Constant Field Values (core 1.0 API) + + + + + + + + + + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

net.shipsandgiggles.*

+
    +
  • + + + + + + + + + + + + + + + + + + + + + + + + +
    net.shipsandgiggles.pirate.ExplosionController 
    Modifier and TypeConstant FieldValue
    + +public static final floatFRAME_LENGTH0.10000000149011612f
    + +public static final intOFFSIZE2
    + +public static final intSIZE20
    +
  • +
+ +
+ + + + + + diff --git a/javadoc/javadoc/deprecated-list.html b/javadoc/javadoc/deprecated-list.html new file mode 100644 index 0000000..a075d77 --- /dev/null +++ b/javadoc/javadoc/deprecated-list.html @@ -0,0 +1,121 @@ + + + + + +Deprecated List (core 1.0 API) + + + + + + + +
+ + + + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + + + +
+ + + + diff --git a/javadoc/javadoc/help-doc.html b/javadoc/javadoc/help-doc.html new file mode 100644 index 0000000..39bebeb --- /dev/null +++ b/javadoc/javadoc/help-doc.html @@ -0,0 +1,222 @@ + + + + + +API Help (core 1.0 API) + + + + + + + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+
    +
  • +

    Overview

    +

    The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

    +
  • +
  • +

    Package

    +

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    +
      +
    • Interfaces (italic)
    • +
    • Classes
    • +
    • Enums
    • +
    • Exceptions
    • +
    • Errors
    • +
    • Annotation Types
    • +
    +
  • +
  • +

    Class/Interface

    +

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
      +
    • Class inheritance diagram
    • +
    • Direct Subclasses
    • +
    • All Known Subinterfaces
    • +
    • All Known Implementing Classes
    • +
    • Class/interface declaration
    • +
    • Class/interface description
    • +
    +
      +
    • Nested Class Summary
    • +
    • Field Summary
    • +
    • Constructor Summary
    • +
    • Method Summary
    • +
    +
      +
    • Field Detail
    • +
    • Constructor Detail
    • +
    • Method Detail
    • +
    +

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    +
  • +
  • +

    Annotation Type

    +

    Each annotation type has its own separate page with the following sections:

    +
      +
    • Annotation Type declaration
    • +
    • Annotation Type description
    • +
    • Required Element Summary
    • +
    • Optional Element Summary
    • +
    • Element Detail
    • +
    +
  • +
  • +

    Enum

    +

    Each enum has its own separate page with the following sections:

    +
      +
    • Enum declaration
    • +
    • Enum description
    • +
    • Enum Constant Summary
    • +
    • Enum Constant Detail
    • +
    +
  • +
  • +

    Tree (Class Hierarchy)

    +

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    +
      +
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • +
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • +
    +
  • +
  • +

    Deprecated API

    +

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    +
  • +
  • +

    Index

    +

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    +
  • +
  • +

    Prev/Next

    +

    These links take you to the next or previous class, interface, package, or related page.

    +
  • +
  • +

    Frames/No Frames

    +

    These links show and hide the HTML frames. All pages are available with or without frames.

    +
  • +
  • +

    All Classes

    +

    The All Classes link shows all classes and interfaces except non-static nested types.

    +
  • +
  • +

    Serialized Form

    +

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    +
  • +
  • +

    Constant Field Values

    +

    The Constant Field Values page lists the static final fields and their values.

    +
  • +
+This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + + + +
+ + + + diff --git a/javadoc/javadoc/index-all.html b/javadoc/javadoc/index-all.html new file mode 100644 index 0000000..63927d8 --- /dev/null +++ b/javadoc/javadoc/index-all.html @@ -0,0 +1,1064 @@ + + + + + +Index (core 1.0 API) + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I L M N O P R S T U V W Z  + + +

A

+
+
add(Vector2) - Static method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
alcuin - Variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
AlcuinCollege - Class in net.shipsandgiggles.pirate.entity.impl.college
+
 
+
AlcuinCollege(Sprite, Location, float, World) - Constructor for class net.shipsandgiggles.pirate.entity.impl.college.AlcuinCollege
+
+
construction of college
+
+
angle - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
angleToVector(Vector2, float) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
applySteering(SteeringAcceleration<Vector2>, float) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
+ + + +

B

+
+
background - Variable in class net.shipsandgiggles.pirate.screen.impl.InformationScreen
+
 
+
background - Variable in class net.shipsandgiggles.pirate.screen.impl.LoadingScreen
+
 
+
balance(Currency.Type) - Method in class net.shipsandgiggles.pirate.currency.Currency
+
 
+
BallsManager - Class in net.shipsandgiggles.pirate.entity
+
 
+
BallsManager() - Constructor for class net.shipsandgiggles.pirate.entity.BallsManager
+
 
+
beginContact(Contact) - Method in class net.shipsandgiggles.pirate.listener.WorldContactListener
+
+
checks for any collides in the game
+
+
body - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
body - Variable in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
burstCoolDown - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
burstShoot(World, Sprite, Camera, short, short, short) - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
burstTimer - Static variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
buttonPress - Variable in class net.shipsandgiggles.pirate.SoundController
+
 
+
+ + + +

C

+
+
Cache<K,V> - Class in net.shipsandgiggles.pirate.cache
+
 
+
Cache(Predicate<V>) - Constructor for class net.shipsandgiggles.pirate.cache.Cache
+
 
+
cache(K, V) - Method in class net.shipsandgiggles.pirate.cache.Cache
+
 
+
cam - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
CameraManager - Class in net.shipsandgiggles.pirate
+
 
+
CameraManager() - Constructor for class net.shipsandgiggles.pirate.CameraManager
+
 
+
CannonBall - Class in net.shipsandgiggles.pirate.entity
+
 
+
cannonBall - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
cannonBallSprite - Variable in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
cannonShot - Variable in class net.shipsandgiggles.pirate.SoundController
+
 
+
Cat_College - Static variable in class net.shipsandgiggles.pirate.conf.Configuration
+
 
+
Cat_Enemy - Static variable in class net.shipsandgiggles.pirate.conf.Configuration
+
 
+
Cat_Player - Static variable in class net.shipsandgiggles.pirate.conf.Configuration
+
+
ppi to scale down the world
+
+
Cat_walls - Static variable in class net.shipsandgiggles.pirate.conf.Configuration
+
+
cats are just categories to tell the bodies what to interact with
+
+
changeScreen(ScreenType) - Method in class net.shipsandgiggles.pirate.PirateGame
+
 
+
ChangeScreenTask - Class in net.shipsandgiggles.pirate.task
+
 
+
ChangeScreenTask(ScreenType) - Constructor for class net.shipsandgiggles.pirate.task.ChangeScreenTask
+
 
+
checkArgument(Predicate<T>, String, T) - Static method in class net.shipsandgiggles.pirate.util.Preconditions
+
 
+
checkNotNull(T, String) - Static method in class net.shipsandgiggles.pirate.util.Preconditions
+
+
preconditions for the game to check if its null or not
+
+
College - Class in net.shipsandgiggles.pirate.entity.college
+
+
College data that allows us to perform animations / fights more easily.
+
+
College(UUID, College.Type, Sprite, Location, float, float, float) - Constructor for class net.shipsandgiggles.pirate.entity.college.College
+
 
+
College.Type - Enum in net.shipsandgiggles.pirate.entity.college
+
+
Types of college - allows us to keep track.
+
+
collegeCaptured() - Static method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
+
adds college captured to check for victory
+
+
collegeKilled() - Static method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
collegesCaptured - Static variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
collegesKilled - Static variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
collegeSprite - Variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
Configuration - Class in net.shipsandgiggles.pirate.conf
+
 
+
Configuration() - Constructor for class net.shipsandgiggles.pirate.conf.Configuration
+
 
+
constantine - Variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
ConstantineCollege - Class in net.shipsandgiggles.pirate.entity.impl.college
+
 
+
ConstantineCollege(Sprite, Location, float, World) - Constructor for class net.shipsandgiggles.pirate.entity.impl.college.ConstantineCollege
+
 
+
cooldownTimer - Variable in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
coolDownTimerTime - Variable in class net.shipsandgiggles.pirate.HUDmanager
+
 
+
counter - Variable in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
create() - Method in class net.shipsandgiggles.pirate.PirateGame
+
 
+
create() - Method in enum net.shipsandgiggles.pirate.screen.ScreenType
+
 
+
createBall(World, Vector2, Vector2, Sprite, short, short, short) - Static method in class net.shipsandgiggles.pirate.entity.BallsManager
+
 
+
createBallAtAngle(World, Vector2, float, Sprite, short, short, short) - Static method in class net.shipsandgiggles.pirate.entity.BallsManager
+
 
+
createEnemy(int, int, boolean, Vector2) - Method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
Currency - Class in net.shipsandgiggles.pirate.currency
+
 
+
Currency.Type - Enum in net.shipsandgiggles.pirate.currency
+
+
Currency Types.
+
+
+ + + +

D

+
+
damage(float) - Method in class net.shipsandgiggles.pirate.entity.Entity
+
 
+
damageDelt - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
dead - Variable in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
dead - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
death() - Method in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
death() - Method in class net.shipsandgiggles.pirate.entity.Entity
+
 
+
death() - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
deathPosition - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
DeathScreen - Class in net.shipsandgiggles.pirate.screen.impl
+
 
+
DeathScreen(SpriteBatch) - Constructor for class net.shipsandgiggles.pirate.screen.impl.DeathScreen
+
 
+
deathScreen - Variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
dispose() - Method in class net.shipsandgiggles.pirate.PirateGame
+
 
+
dispose() - Method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
dispose() - Method in class net.shipsandgiggles.pirate.screen.impl.InformationScreen
+
 
+
dispose() - Method in class net.shipsandgiggles.pirate.screen.impl.LoadingScreen
+
 
+
dispose() - Method in class net.shipsandgiggles.pirate.screen.impl.PreferenceScreen
+
 
+
draw(Batch) - Method in class net.shipsandgiggles.pirate.entity.Entity
+
+
Draw the entity onto the batch.
+
+
draw(Batch) - Method in class net.shipsandgiggles.pirate.entity.impl.college.AlcuinCollege
+
 
+
draw(Batch) - Method in class net.shipsandgiggles.pirate.entity.impl.college.ConstantineCollege
+
 
+
draw(Batch) - Method in class net.shipsandgiggles.pirate.entity.impl.college.GoodrickCollege
+
 
+
draw(Batch) - Method in class net.shipsandgiggles.pirate.entity.impl.college.LangwithCollege
+
 
+
draw(Batch) - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
draw(Batch) - Method in class net.shipsandgiggles.pirate.ExplosionController
+
+
draws explosion
+
+
drawEntity(Batch) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
+ + + +

E

+
+
endContact(Contact) - Method in class net.shipsandgiggles.pirate.listener.WorldContactListener
+
 
+
Entity - Class in net.shipsandgiggles.pirate.entity
+
+
Base class of all entities in the game.
+
+
Entity(UUID, Sprite, Location, EntityType, float, float, float) - Constructor for class net.shipsandgiggles.pirate.entity.Entity
+
 
+
EntityAi - Class in net.shipsandgiggles.pirate.entity
+
 
+
EntityAi(Body, float, Sprite) - Constructor for class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
EntityAi(Body, float) - Constructor for class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
EntityType - Enum in net.shipsandgiggles.pirate.entity
+
+
creation of types
+
+
Explosion - Variable in class net.shipsandgiggles.pirate.SoundController
+
 
+
ExplosionController - Class in net.shipsandgiggles.pirate
+
 
+
ExplosionController(Vector2) - Constructor for class net.shipsandgiggles.pirate.ExplosionController
+
+
constructor of explosion
+
+
Explosions - Static variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
+ + + +

F

+
+
finalX - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
finalY - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
find(K) - Method in class net.shipsandgiggles.pirate.cache.Cache
+
 
+
fontScale - Variable in class net.shipsandgiggles.pirate.HUDmanager
+
 
+
FRAME_LENGTH - Static variable in class net.shipsandgiggles.pirate.ExplosionController
+
+
controller for all explosion and creation of them
+
+
+ + + +

G

+
+
gameOver - Variable in class net.shipsandgiggles.pirate.screen.impl.DeathScreen
+
 
+
GamePreferences - Class in net.shipsandgiggles.pirate.pref
+
 
+
GameScreen - Class in net.shipsandgiggles.pirate.screen.impl
+
 
+
GameScreen() - Constructor for class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
get() - Static method in class net.shipsandgiggles.pirate.currency.Currency
+
+
Singleton class.
+
+
get() - Static method in class net.shipsandgiggles.pirate.PirateGame
+
 
+
get() - Static method in class net.shipsandgiggles.pirate.pref.GamePreferences
+
 
+
getAmountOfRotations() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getAngleToTarget() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getAngularVelocity() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getBehavior() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getBody() - Method in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
getBody() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getBoundingRadius() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getDamageDelt() - Method in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
getDriftFactor() - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
getDriveDirection() - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
getEntityBody() - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
getEntityType() - Method in class net.shipsandgiggles.pirate.entity.Entity
+
 
+
getFancyName() - Method in enum net.shipsandgiggles.pirate.currency.Currency.Type
+
 
+
getForwardVelocity() - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
getHealth() - Method in class net.shipsandgiggles.pirate.entity.Entity
+
+
Current health of the entity, where less than or equal to 0 represents a dead entity.
+
+
getHeight() - Method in class net.shipsandgiggles.pirate.entity.Entity
+
 
+
getId() - Method in enum net.shipsandgiggles.pirate.entity.college.College.Type
+
 
+
getLateralVelocity() - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
getLinearVelocity() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getLocation() - Method in class net.shipsandgiggles.pirate.entity.Entity
+
+
Current location of the entity.
+
+
getMaxAngularAcceleration() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getMaxAngularSpeed() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getMaximumHealth() - Method in class net.shipsandgiggles.pirate.entity.Entity
+
+
Maximum health of the entity when it spawns.
+
+
getMaximumSpeed() - Method in class net.shipsandgiggles.pirate.entity.MovableEntity
+
 
+
getMaxLinearAcceleration() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getMaxLinearSpeed() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getOrientation() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getOriginalSpeed() - Method in class net.shipsandgiggles.pirate.entity.MovableEntity
+
 
+
getPosition() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getPosition() - Method in class net.shipsandgiggles.pirate.entity.Ship
+
+
gets the position of the player
+
+
getSkin() - Method in class net.shipsandgiggles.pirate.entity.Entity
+
+
The skin that should be displayed to the user for this entity.
+
+
getSpeed() - Method in class net.shipsandgiggles.pirate.entity.MovableEntity
+
 
+
getSprite() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getSprite() - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
getTarget() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
getTurnDirection() - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
getTurnSpeed() - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
getType() - Method in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
getUniqueId() - Method in class net.shipsandgiggles.pirate.entity.Entity
+
+
The randomly generated UUID representing the entity.
+
+
getVolumeLevel() - Method in class net.shipsandgiggles.pirate.pref.GamePreferences
+
+
Get the volume level, where 1 is 100%, and 0 is 0%.
+
+
getWidth() - Method in class net.shipsandgiggles.pirate.entity.Entity
+
 
+
getWorld() - Static method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
getX() - Method in class net.shipsandgiggles.pirate.entity.Location
+
 
+
getY() - Method in class net.shipsandgiggles.pirate.entity.Location
+
 
+
getZeroLinearSpeedThreshold() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
give(Currency.Type, int) - Method in class net.shipsandgiggles.pirate.currency.Currency
+
 
+
gold - Static variable in class net.shipsandgiggles.pirate.HUDmanager
+
 
+
Gold - Variable in class net.shipsandgiggles.pirate.screen.impl.DeathScreen
+
 
+
gold - Variable in class net.shipsandgiggles.pirate.screen.impl.DeathScreen
+
 
+
goodrick - Variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
GoodrickCollege - Class in net.shipsandgiggles.pirate.entity.impl.college
+
 
+
GoodrickCollege(Sprite, Location, float, World) - Constructor for class net.shipsandgiggles.pirate.entity.impl.college.GoodrickCollege
+
 
+
+ + + +

H

+
+
health - Variable in class net.shipsandgiggles.pirate.entity.Entity
+
 
+
health - Static variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
healthBar - Variable in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
healthBar - Variable in class net.shipsandgiggles.pirate.HUDmanager
+
 
+
hide() - Method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
hide() - Method in class net.shipsandgiggles.pirate.screen.impl.InformationScreen
+
 
+
hide() - Method in class net.shipsandgiggles.pirate.screen.impl.LoadingScreen
+
 
+
hide() - Method in class net.shipsandgiggles.pirate.screen.impl.PreferenceScreen
+
 
+
hitBox - Variable in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
hitBox - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
hud - Static variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
HUDmanager - Class in net.shipsandgiggles.pirate
+
 
+
HUDmanager(SpriteBatch) - Constructor for class net.shipsandgiggles.pirate.HUDmanager
+
 
+
+ + + +

I

+
+
i - Static variable in class net.shipsandgiggles.pirate.entity.BallsManager
+
+
this is the class to manage all the balls combined
+
+
InformationScreen - Class in net.shipsandgiggles.pirate.screen.impl
+
 
+
InformationScreen() - Constructor for class net.shipsandgiggles.pirate.screen.impl.InformationScreen
+
 
+
inputUpdate() - Method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
INSTANCE - Static variable in class net.shipsandgiggles.pirate.currency.Currency
+
 
+
intro - Variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
isDestroyed - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
isIndependentFacing() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
isMusicEnabled() - Method in class net.shipsandgiggles.pirate.pref.GamePreferences
+
+
Check whether the music is enabled (i.e.
+
+
isTagged() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
isVolumeEnabled() - Method in class net.shipsandgiggles.pirate.pref.GamePreferences
+
+
Check whether global volume is enabled.
+
+
+ + + +

L

+
+
langwith - Variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
+
main game screen
+
+
LangwithCollege - Class in net.shipsandgiggles.pirate.entity.impl.college
+
 
+
LangwithCollege(Sprite, Location, float, World) - Constructor for class net.shipsandgiggles.pirate.entity.impl.college.LangwithCollege
+
 
+
lerpOn(Camera, Vector2, float) - Static method in class net.shipsandgiggles.pirate.CameraManager
+
+
applies smoothing to camera "lerping"
+
+
LoadingScreen - Class in net.shipsandgiggles.pirate.screen.impl
+
 
+
LoadingScreen() - Constructor for class net.shipsandgiggles.pirate.screen.impl.LoadingScreen
+
 
+
Location - Class in net.shipsandgiggles.pirate.entity
+
 
+
Location(float, float) - Constructor for class net.shipsandgiggles.pirate.entity.Location
+
 
+
lockOn(Camera, Vector2) - Static method in class net.shipsandgiggles.pirate.CameraManager
+
+
to lock on to something with no smoothing
+
+
+ + + +

M

+
+
maxHealth - Static variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
MovableEntity - Class in net.shipsandgiggles.pirate.entity
+
+
assigns the variables to any entity in the game that moves
+
+
MovableEntity(UUID, Sprite, Location, EntityType, float, float, float, float, float) - Constructor for class net.shipsandgiggles.pirate.entity.MovableEntity
+
 
+
multiply(float, Vector2) - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
music - Variable in class net.shipsandgiggles.pirate.SoundController
+
+
sound controller to control all the sound effeccts and music
+
+
musicVolume - Variable in class net.shipsandgiggles.pirate.SoundController
+
 
+
+ + + +

N

+
+
net.shipsandgiggles.pirate - package net.shipsandgiggles.pirate
+
 
+
net.shipsandgiggles.pirate.cache - package net.shipsandgiggles.pirate.cache
+
 
+
net.shipsandgiggles.pirate.conf - package net.shipsandgiggles.pirate.conf
+
 
+
net.shipsandgiggles.pirate.currency - package net.shipsandgiggles.pirate.currency
+
 
+
net.shipsandgiggles.pirate.entity - package net.shipsandgiggles.pirate.entity
+
 
+
net.shipsandgiggles.pirate.entity.college - package net.shipsandgiggles.pirate.entity.college
+
 
+
net.shipsandgiggles.pirate.entity.impl.college - package net.shipsandgiggles.pirate.entity.impl.college
+
 
+
net.shipsandgiggles.pirate.listener - package net.shipsandgiggles.pirate.listener
+
 
+
net.shipsandgiggles.pirate.pref - package net.shipsandgiggles.pirate.pref
+
 
+
net.shipsandgiggles.pirate.screen - package net.shipsandgiggles.pirate.screen
+
 
+
net.shipsandgiggles.pirate.screen.impl - package net.shipsandgiggles.pirate.screen.impl
+
 
+
net.shipsandgiggles.pirate.task - package net.shipsandgiggles.pirate.task
+
 
+
net.shipsandgiggles.pirate.util - package net.shipsandgiggles.pirate.util
+
 
+
newLocation() - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
numberOfShotsLeft - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
+ + + +

O

+
+
OFFSIZE - Static variable in class net.shipsandgiggles.pirate.ExplosionController
+
 
+
+ + + +

P

+
+
parseTiledObjectLayer(World, MapObjects) - Static method in class net.shipsandgiggles.pirate.TiledObjectUtil
+
 
+
pause() - Method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
pause() - Method in class net.shipsandgiggles.pirate.screen.impl.InformationScreen
+
 
+
pause() - Method in class net.shipsandgiggles.pirate.screen.impl.LoadingScreen
+
 
+
pause() - Method in class net.shipsandgiggles.pirate.screen.impl.PreferenceScreen
+
 
+
pauseAll() - Method in class net.shipsandgiggles.pirate.SoundController
+
 
+
perform() - Method in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
perform() - Method in class net.shipsandgiggles.pirate.entity.impl.college.AlcuinCollege
+
 
+
perform() - Method in class net.shipsandgiggles.pirate.entity.impl.college.ConstantineCollege
+
 
+
perform() - Method in class net.shipsandgiggles.pirate.entity.impl.college.GoodrickCollege
+
 
+
perform() - Method in class net.shipsandgiggles.pirate.entity.impl.college.LangwithCollege
+
 
+
PirateGame - Class in net.shipsandgiggles.pirate
+
 
+
PirateGame() - Constructor for class net.shipsandgiggles.pirate.PirateGame
+
 
+
PIXEL_PER_METER - Static variable in class net.shipsandgiggles.pirate.conf.Configuration
+
 
+
playButtonPress() - Method in class net.shipsandgiggles.pirate.SoundController
+
 
+
playCannonShot() - Method in class net.shipsandgiggles.pirate.SoundController
+
 
+
playerModel - Variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
+
batch of images "objects"
+
+
playExplosion() - Method in class net.shipsandgiggles.pirate.SoundController
+
 
+
postSolve(Contact, ContactImpulse) - Method in class net.shipsandgiggles.pirate.listener.WorldContactListener
+
 
+
Preconditions - Class in net.shipsandgiggles.pirate.util
+
 
+
Preconditions() - Constructor for class net.shipsandgiggles.pirate.util.Preconditions
+
 
+
PreferenceScreen - Class in net.shipsandgiggles.pirate.screen.impl
+
 
+
PreferenceScreen() - Constructor for class net.shipsandgiggles.pirate.screen.impl.PreferenceScreen
+
 
+
prefs() - Method in class net.shipsandgiggles.pirate.pref.GamePreferences
+
 
+
preSolve(Contact, Manifold) - Method in class net.shipsandgiggles.pirate.listener.WorldContactListener
+
 
+
+ + + +

R

+
+
rapidShot - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
rapidShot(World, Sprite, Camera, short, short, short) - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
rapidShotCoolDown - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
remove(K) - Method in class net.shipsandgiggles.pirate.cache.Cache
+
 
+
remove - Variable in class net.shipsandgiggles.pirate.ExplosionController
+
 
+
removeNext() - Static method in class net.shipsandgiggles.pirate.entity.BallsManager
+
 
+
render(float) - Method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
render(float) - Method in class net.shipsandgiggles.pirate.screen.impl.InformationScreen
+
 
+
render(float) - Method in class net.shipsandgiggles.pirate.screen.impl.LoadingScreen
+
 
+
render(float) - Method in class net.shipsandgiggles.pirate.screen.impl.PreferenceScreen
+
 
+
resize(int, int) - Method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
resize(int, int) - Method in class net.shipsandgiggles.pirate.screen.impl.InformationScreen
+
 
+
resize(int, int) - Method in class net.shipsandgiggles.pirate.screen.impl.LoadingScreen
+
 
+
resize(int, int) - Method in class net.shipsandgiggles.pirate.screen.impl.PreferenceScreen
+
 
+
resume() - Method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
resume() - Method in class net.shipsandgiggles.pirate.screen.impl.InformationScreen
+
 
+
resume() - Method in class net.shipsandgiggles.pirate.screen.impl.LoadingScreen
+
 
+
resume() - Method in class net.shipsandgiggles.pirate.screen.impl.PreferenceScreen
+
 
+
run() - Method in class net.shipsandgiggles.pirate.task.ChangeScreenTask
+
 
+
+ + + +

S

+
+
score - Static variable in class net.shipsandgiggles.pirate.HUDmanager
+
 
+
score - Variable in class net.shipsandgiggles.pirate.screen.impl.DeathScreen
+
 
+
scoreLabel - Variable in class net.shipsandgiggles.pirate.screen.impl.DeathScreen
+
 
+
ScreenType - Enum in net.shipsandgiggles.pirate.screen
+
 
+
seaNoises - Variable in class net.shipsandgiggles.pirate.SoundController
+
 
+
setAmountOfRotations(float) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
setAngle - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
setAngleToTarget(float) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
setBehavior(SteeringBehavior<Vector2>) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
setDriveDirection(float) - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
setIndependentFacing(boolean) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
setMaxAngularAcceleration(float) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
setMaxAngularSpeed(float) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
setMaxLinearAcceleration(float) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
setMaxLinearSpeed(float) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
setMusicEnabled(boolean) - Method in class net.shipsandgiggles.pirate.pref.GamePreferences
+
+
Toggle the state of background music.
+
+
setMusicVolumeLevel(float) - Method in class net.shipsandgiggles.pirate.pref.GamePreferences
+
 
+
setOrientation(float) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
setSpeed(float) - Method in class net.shipsandgiggles.pirate.entity.MovableEntity
+
 
+
setTagged(boolean) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
setTarget(Body) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
setTexture(Sprite) - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
setTurnDirection(float) - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
setVolumeEnabled(boolean) - Method in class net.shipsandgiggles.pirate.pref.GamePreferences
+
+
Toggle whether global volume is enabled.
+
+
setVolumeLevel(float) - Method in class net.shipsandgiggles.pirate.pref.GamePreferences
+
+
Set the volume level for all game noises.
+
+
setX(float) - Method in class net.shipsandgiggles.pirate.entity.Location
+
 
+
setY(float) - Method in class net.shipsandgiggles.pirate.entity.Location
+
 
+
setZeroLinearSpeedThreshold(float) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
Ship - Class in net.shipsandgiggles.pirate.entity
+
 
+
Ship(Sprite, float, float, float, float, Location, float, float, Camera) - Constructor for class net.shipsandgiggles.pirate.entity.Ship
+
 
+
shoot(World, Sprite, Camera, short, short, short) - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
shootingCoolDown - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
shootingTimer - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
shootPlayer(Ship) - Method in class net.shipsandgiggles.pirate.entity.Entity
+
 
+
shootPlayer(Ship) - Method in class net.shipsandgiggles.pirate.entity.impl.college.AlcuinCollege
+
 
+
shootPlayer(Ship) - Method in class net.shipsandgiggles.pirate.entity.impl.college.ConstantineCollege
+
 
+
shootPlayer(Ship) - Method in class net.shipsandgiggles.pirate.entity.impl.college.GoodrickCollege
+
 
+
shootPlayer(Ship) - Method in class net.shipsandgiggles.pirate.entity.impl.college.LangwithCollege
+
 
+
shootPlayer(Ship) - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
shotsInRapidShot - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
show() - Method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
show() - Method in class net.shipsandgiggles.pirate.screen.impl.InformationScreen
+
 
+
show() - Method in class net.shipsandgiggles.pirate.screen.impl.LoadingScreen
+
 
+
show() - Method in class net.shipsandgiggles.pirate.screen.impl.PreferenceScreen
+
 
+
SIZE - Static variable in class net.shipsandgiggles.pirate.ExplosionController
+
 
+
SKIN - Static variable in class net.shipsandgiggles.pirate.conf.Configuration
+
+
global configs for variables commonly used
+
+
soundController - Static variable in class net.shipsandgiggles.pirate.screen.impl.LoadingScreen
+
+
the main screen
+
+
SoundController - Class in net.shipsandgiggles.pirate
+
 
+
SoundController() - Constructor for class net.shipsandgiggles.pirate.SoundController
+
 
+
SPACER_LABEL - Static variable in class net.shipsandgiggles.pirate.conf.Configuration
+
+
the world
+
+
speed - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
stage - Variable in class net.shipsandgiggles.pirate.HUDmanager
+
+
a manager for the HUD
+
+
stage - Variable in class net.shipsandgiggles.pirate.screen.impl.DeathScreen
+
+
adds the ui for the death screen
+
+
+ + + +

T

+
+
take(Currency.Type, int, Runnable) - Method in class net.shipsandgiggles.pirate.currency.Currency
+
 
+
takeDamage(float) - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
takeInput() - Method in class net.shipsandgiggles.pirate.screen.impl.InformationScreen
+
 
+
target - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
teleportBall() - Method in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
teleported - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
TiledObjectUtil - Class in net.shipsandgiggles.pirate
+
 
+
TiledObjectUtil() - Constructor for class net.shipsandgiggles.pirate.TiledObjectUtil
+
 
+
timeBetweenRapidShots - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
timeCounter - Variable in class net.shipsandgiggles.pirate.HUDmanager
+
 
+
timer - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
+
this is the creation and update for each individual ball
+
+
timer - Variable in class net.shipsandgiggles.pirate.entity.college.College
+
 
+
timeToRegen - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
+ + + +

U

+
+
update(Batch) - Method in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
update(float, Batch) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
update() - Method in class net.shipsandgiggles.pirate.ExplosionController
+
 
+
update(HUDmanager, int) - Method in class net.shipsandgiggles.pirate.screen.impl.DeathScreen
+
 
+
update() - Method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
update() - Method in class net.shipsandgiggles.pirate.SoundController
+
 
+
updateBalls(Batch) - Static method in class net.shipsandgiggles.pirate.entity.BallsManager
+
 
+
updateCamera() - Method in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
updateLabels(Batch) - Method in class net.shipsandgiggles.pirate.HUDmanager
+
+
updates all the variables on screen
+
+
updateShots(World, Sprite, Camera, short, short, short) - Method in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
+ + + +

V

+
+
valueOf(String) - Static method in enum net.shipsandgiggles.pirate.currency.Currency.Type
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum net.shipsandgiggles.pirate.entity.college.College.Type
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum net.shipsandgiggles.pirate.entity.EntityType
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum net.shipsandgiggles.pirate.screen.ScreenType
+
+
Returns the enum constant of this type with the specified name.
+
+
values() - Static method in enum net.shipsandgiggles.pirate.currency.Currency.Type
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum net.shipsandgiggles.pirate.entity.college.College.Type
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum net.shipsandgiggles.pirate.entity.EntityType
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum net.shipsandgiggles.pirate.screen.ScreenType
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
vectorToAngle(Vector2) - Method in class net.shipsandgiggles.pirate.entity.EntityAi
+
 
+
volume - Variable in class net.shipsandgiggles.pirate.SoundController
+
 
+
+ + + +

W

+
+
water - Variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
world - Static variable in class net.shipsandgiggles.pirate.conf.Configuration
+
 
+
world - Variable in class net.shipsandgiggles.pirate.entity.CannonBall
+
 
+
world - Variable in class net.shipsandgiggles.pirate.entity.impl.college.AlcuinCollege
+
 
+
world - Variable in class net.shipsandgiggles.pirate.entity.impl.college.ConstantineCollege
+
 
+
world - Variable in class net.shipsandgiggles.pirate.entity.impl.college.GoodrickCollege
+
 
+
world - Variable in class net.shipsandgiggles.pirate.entity.impl.college.LangwithCollege
+
 
+
world - Variable in class net.shipsandgiggles.pirate.entity.Ship
+
 
+
world - Static variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
+
implement world
+
+
WorldContactListener - Class in net.shipsandgiggles.pirate.listener
+
 
+
WorldContactListener() - Constructor for class net.shipsandgiggles.pirate.listener.WorldContactListener
+
 
+
+ + + +

Z

+
+
zoomedAmount - Variable in class net.shipsandgiggles.pirate.screen.impl.GameScreen
+
 
+
+A B C D E F G H I L M N O P R S T U V W Z 
+ +
+ + + + + + + +
+ + + + diff --git a/javadoc/javadoc/index.html b/javadoc/javadoc/index.html new file mode 100644 index 0000000..248bb14 --- /dev/null +++ b/javadoc/javadoc/index.html @@ -0,0 +1,75 @@ + + + + + +core 1.0 API + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/CameraManager.html b/javadoc/javadoc/net/shipsandgiggles/pirate/CameraManager.html new file mode 100644 index 0000000..208420f --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/CameraManager.html @@ -0,0 +1,293 @@ + + + + + +CameraManager (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate
+

Class CameraManager

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.CameraManager
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CameraManager
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CameraManager() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidlerpOn(com.badlogic.gdx.graphics.Camera camera, + com.badlogic.gdx.math.Vector2 target, + float lerpValue) +
      applies smoothing to camera "lerping"
      +
      static voidlockOn(com.badlogic.gdx.graphics.Camera camera, + com.badlogic.gdx.math.Vector2 target) +
      to lock on to something with no smoothing
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CameraManager

        +
        public CameraManager()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        lockOn

        +
        public static void lockOn(com.badlogic.gdx.graphics.Camera camera,
        +                          com.badlogic.gdx.math.Vector2 target)
        +
        to lock on to something with no smoothing
        +
      • +
      + + + +
        +
      • +

        lerpOn

        +
        public static void lerpOn(com.badlogic.gdx.graphics.Camera camera,
        +                          com.badlogic.gdx.math.Vector2 target,
        +                          float lerpValue)
        +
        applies smoothing to camera "lerping"
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/ExplosionController.html b/javadoc/javadoc/net/shipsandgiggles/pirate/ExplosionController.html new file mode 100644 index 0000000..798aff7 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/ExplosionController.html @@ -0,0 +1,377 @@ + + + + + +ExplosionController (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate
+

Class ExplosionController

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.ExplosionController
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ExplosionController
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static floatFRAME_LENGTH +
      controller for all explosion and creation of them
      +
      static intOFFSIZE 
      booleanremove 
      static intSIZE 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ExplosionController(com.badlogic.gdx.math.Vector2 position) +
      constructor of explosion
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voiddraw(com.badlogic.gdx.graphics.g2d.Batch batch) +
      draws explosion
      +
      voidupdate() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ExplosionController

        +
        public ExplosionController(com.badlogic.gdx.math.Vector2 position)
        +
        constructor of explosion
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        update

        +
        public void update()
        +
      • +
      + + + +
        +
      • +

        draw

        +
        public void draw(com.badlogic.gdx.graphics.g2d.Batch batch)
        +
        draws explosion
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/HUDmanager.html b/javadoc/javadoc/net/shipsandgiggles/pirate/HUDmanager.html new file mode 100644 index 0000000..09d1f82 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/HUDmanager.html @@ -0,0 +1,388 @@ + + + + + +HUDmanager (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate
+

Class HUDmanager

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.HUDmanager
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class HUDmanager
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      floatcoolDownTimerTime 
      floatfontScale 
      static intgold 
      com.badlogic.gdx.graphics.TexturehealthBar 
      static intscore 
      com.badlogic.gdx.scenes.scene2d.Stagestage +
      a manager for the HUD
      +
      floattimeCounter 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      HUDmanager(com.badlogic.gdx.graphics.g2d.SpriteBatch batch) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidupdateLabels(com.badlogic.gdx.graphics.g2d.Batch batch) +
      updates all the variables on screen
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        stage

        +
        public com.badlogic.gdx.scenes.scene2d.Stage stage
        +
        a manager for the HUD
        +
      • +
      + + + +
        +
      • +

        score

        +
        public static int score
        +
      • +
      + + + +
        +
      • +

        gold

        +
        public static int gold
        +
      • +
      + + + +
        +
      • +

        fontScale

        +
        public float fontScale
        +
      • +
      + + + +
        +
      • +

        timeCounter

        +
        public float timeCounter
        +
      • +
      + + + +
        +
      • +

        coolDownTimerTime

        +
        public float coolDownTimerTime
        +
      • +
      + + + +
        +
      • +

        healthBar

        +
        public com.badlogic.gdx.graphics.Texture healthBar
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HUDmanager

        +
        public HUDmanager(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        updateLabels

        +
        public void updateLabels(com.badlogic.gdx.graphics.g2d.Batch batch)
        +
        updates all the variables on screen
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/PirateGame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/PirateGame.html new file mode 100644 index 0000000..2401891 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/PirateGame.html @@ -0,0 +1,344 @@ + + + + + +PirateGame (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate
+

Class PirateGame

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.badlogic.gdx.Game
    • +
    • +
        +
      • net.shipsandgiggles.pirate.PirateGame
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    com.badlogic.gdx.ApplicationListener
    +
    +
    +
    +
    public class PirateGame
    +extends com.badlogic.gdx.Game
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class com.badlogic.gdx.Game

        +screen
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PirateGame() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidchangeScreen(ScreenType screenType) 
      voidcreate() 
      voiddispose() 
      static PirateGameget() 
      +
        +
      • + + +

        Methods inherited from class com.badlogic.gdx.Game

        +getScreen, pause, render, resize, resume, setScreen
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PirateGame

        +
        public PirateGame()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        create

        +
        public void create()
        +
      • +
      + + + +
        +
      • +

        dispose

        +
        public void dispose()
        +
        +
        Specified by:
        +
        dispose in interface com.badlogic.gdx.ApplicationListener
        +
        Overrides:
        +
        dispose in class com.badlogic.gdx.Game
        +
        +
      • +
      + + + +
        +
      • +

        changeScreen

        +
        public void changeScreen(ScreenType screenType)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/SoundController.html b/javadoc/javadoc/net/shipsandgiggles/pirate/SoundController.html new file mode 100644 index 0000000..1d6bde5 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/SoundController.html @@ -0,0 +1,437 @@ + + + + + +SoundController (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate
+

Class SoundController

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.SoundController
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class SoundController
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      com.badlogic.gdx.audio.SoundbuttonPress 
      com.badlogic.gdx.audio.SoundcannonShot 
      com.badlogic.gdx.audio.SoundExplosion 
      com.badlogic.gdx.audio.Musicmusic +
      sound controller to control all the sound effeccts and music
      +
      floatmusicVolume 
      com.badlogic.gdx.audio.MusicseaNoises 
      floatvolume 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SoundController() 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        music

        +
        public com.badlogic.gdx.audio.Music music
        +
        sound controller to control all the sound effeccts and music
        +
      • +
      + + + +
        +
      • +

        buttonPress

        +
        public com.badlogic.gdx.audio.Sound buttonPress
        +
      • +
      + + + +
        +
      • +

        Explosion

        +
        public com.badlogic.gdx.audio.Sound Explosion
        +
      • +
      + + + +
        +
      • +

        cannonShot

        +
        public com.badlogic.gdx.audio.Sound cannonShot
        +
      • +
      + + + +
        +
      • +

        seaNoises

        +
        public com.badlogic.gdx.audio.Music seaNoises
        +
      • +
      + + + +
        +
      • +

        volume

        +
        public float volume
        +
      • +
      + + + +
        +
      • +

        musicVolume

        +
        public float musicVolume
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SoundController

        +
        public SoundController()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        update

        +
        public void update()
        +
      • +
      + + + +
        +
      • +

        playExplosion

        +
        public void playExplosion()
        +
      • +
      + + + +
        +
      • +

        playButtonPress

        +
        public void playButtonPress()
        +
      • +
      + + + +
        +
      • +

        playCannonShot

        +
        public void playCannonShot()
        +
      • +
      + + + +
        +
      • +

        pauseAll

        +
        public void pauseAll()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/TiledObjectUtil.html b/javadoc/javadoc/net/shipsandgiggles/pirate/TiledObjectUtil.html new file mode 100644 index 0000000..5fece5b --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/TiledObjectUtil.html @@ -0,0 +1,270 @@ + + + + + +TiledObjectUtil (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate
+

Class TiledObjectUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.TiledObjectUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class TiledObjectUtil
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TiledObjectUtil() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidparseTiledObjectLayer(com.badlogic.gdx.physics.box2d.World world, + com.badlogic.gdx.maps.MapObjects objects) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TiledObjectUtil

        +
        public TiledObjectUtil()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parseTiledObjectLayer

        +
        public static void parseTiledObjectLayer(com.badlogic.gdx.physics.box2d.World world,
        +                                         com.badlogic.gdx.maps.MapObjects objects)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/cache/Cache.html b/javadoc/javadoc/net/shipsandgiggles/pirate/cache/Cache.html new file mode 100644 index 0000000..bfd11a4 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/cache/Cache.html @@ -0,0 +1,302 @@ + + + + + +Cache (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.cache
+

Class Cache<K,V>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.cache.Cache<K,V>
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Cache<K,V>
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Cache(java.util.function.Predicate<V> argumentCheck) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidcache(K identifier, + V value) 
      java.util.Optional<V>find(K toFind) 
      voidremove(K toRemove) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Cache

        +
        public Cache(java.util.function.Predicate<V> argumentCheck)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        cache

        +
        public void cache(K identifier,
        +                  V value)
        +
      • +
      + + + + + +
        +
      • +

        remove

        +
        public void remove(K toRemove)
        +
      • +
      + + + + + +
        +
      • +

        find

        +
        public java.util.Optional<V> find(K toFind)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/cache/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/cache/package-frame.html new file mode 100644 index 0000000..822d3a6 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/cache/package-frame.html @@ -0,0 +1,19 @@ + + + + + +net.shipsandgiggles.pirate.cache (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.cache

+
+

Classes

+ +
+ + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/cache/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/cache/package-summary.html new file mode 100644 index 0000000..38b2d9a --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/cache/package-summary.html @@ -0,0 +1,139 @@ + + + + + +net.shipsandgiggles.pirate.cache (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.cache

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    Cache<K,V> 
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/cache/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/cache/package-tree.html new file mode 100644 index 0000000..63d3fd9 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/cache/package-tree.html @@ -0,0 +1,134 @@ + + + + + +net.shipsandgiggles.pirate.cache Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.cache

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • net.shipsandgiggles.pirate.cache.Cache<K,V>
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/conf/Configuration.html b/javadoc/javadoc/net/shipsandgiggles/pirate/conf/Configuration.html new file mode 100644 index 0000000..07050de --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/conf/Configuration.html @@ -0,0 +1,393 @@ + + + + + +Configuration (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.conf
+

Class Configuration

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.conf.Configuration
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Configuration
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static shortCat_College 
      static shortCat_Enemy 
      static shortCat_Player +
      ppi to scale down the world
      +
      static shortCat_walls +
      cats are just categories to tell the bodies what to interact with
      +
      static floatPIXEL_PER_METER 
      static com.badlogic.gdx.scenes.scene2d.ui.SkinSKIN +
      global configs for variables commonly used
      +
      static com.badlogic.gdx.scenes.scene2d.ui.LabelSPACER_LABEL +
      the world
      +
      static com.badlogic.gdx.physics.box2d.Worldworld 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Configuration() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        SKIN

        +
        public static final com.badlogic.gdx.scenes.scene2d.ui.Skin SKIN
        +
        global configs for variables commonly used
        +
      • +
      + + + +
        +
      • +

        PIXEL_PER_METER

        +
        public static final float PIXEL_PER_METER
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        Cat_Player

        +
        public static final short Cat_Player
        +
        ppi to scale down the world
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        Cat_walls

        +
        public static final short Cat_walls
        +
        cats are just categories to tell the bodies what to interact with
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        world

        +
        public static final com.badlogic.gdx.physics.box2d.World world
        +
      • +
      + + + +
        +
      • +

        SPACER_LABEL

        +
        public static final com.badlogic.gdx.scenes.scene2d.ui.Label SPACER_LABEL
        +
        the world
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Configuration

        +
        public Configuration()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/conf/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/conf/package-frame.html new file mode 100644 index 0000000..dcd00cb --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/conf/package-frame.html @@ -0,0 +1,19 @@ + + + + + +net.shipsandgiggles.pirate.conf (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.conf

+
+

Classes

+ +
+ + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/conf/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/conf/package-summary.html new file mode 100644 index 0000000..f911b29 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/conf/package-summary.html @@ -0,0 +1,139 @@ + + + + + +net.shipsandgiggles.pirate.conf (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.conf

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    Configuration 
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/conf/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/conf/package-tree.html new file mode 100644 index 0000000..9fd0164 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/conf/package-tree.html @@ -0,0 +1,134 @@ + + + + + +net.shipsandgiggles.pirate.conf Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.conf

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/currency/Currency.Type.html b/javadoc/javadoc/net/shipsandgiggles/pirate/currency/Currency.Type.html new file mode 100644 index 0000000..b8c7232 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/currency/Currency.Type.html @@ -0,0 +1,372 @@ + + + + + +Currency.Type (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.currency
+

Enum Currency.Type

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<Currency.Type>
    • +
    • +
        +
      • net.shipsandgiggles.pirate.currency.Currency.Type
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<Currency.Type>
    +
    +
    +
    Enclosing class:
    +
    Currency
    +
    +
    +
    +
    public static enum Currency.Type
    +extends java.lang.Enum<Currency.Type>
    +
    Currency Types.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      COINS 
      GOLD 
      POINTS 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.StringgetFancyName() 
      static Currency.TypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static Currency.Type[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Currency.Type[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Currency.Type c : Currency.Type.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Currency.Type valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getFancyName

        +
        public java.lang.String getFancyName()
        +
        +
        Returns:
        +
        Name of the currency to display to the player.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/currency/Currency.html b/javadoc/javadoc/net/shipsandgiggles/pirate/currency/Currency.html new file mode 100644 index 0000000..34861b4 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/currency/Currency.html @@ -0,0 +1,364 @@ + + + + + +Currency (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.currency
+

Class Currency

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.currency.Currency
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Currency
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class Currency.Type +
      Currency Types.
      +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static CurrencyINSTANCE 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        INSTANCE

        +
        public static Currency INSTANCE
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public static Currency get()
        +
        Singleton class.
        +
        +
        Returns:
        +
        Instance of the Currency Manager
        +
        +
      • +
      + + + +
        +
      • +

        balance

        +
        public int balance(Currency.Type type)
        +
        +
        Parameters:
        +
        type - Currency Type you wish to receive.
        +
        Returns:
        +
        Current balance of that currency.
        +
        +
      • +
      + + + +
        +
      • +

        give

        +
        public int give(Currency.Type type,
        +                int amount)
        +
        +
        Parameters:
        +
        type - Type of currency you wish to give.
        +
        amount - Amount you wish to give the player.
        +
        Returns:
        +
        New updated balance.
        +
        +
      • +
      + + + +
        +
      • +

        take

        +
        public boolean take(Currency.Type type,
        +                    int amount,
        +                    java.lang.Runnable onSuccess)
        +
        +
        Parameters:
        +
        type - Type of currency you wish to take.
        +
        amount - Amount you wish to take.
        +
        onSuccess - Action to perform if they can afford it.
        +
        Returns:
        +
        Whether they can afford the action.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/currency/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/currency/package-frame.html new file mode 100644 index 0000000..fcab54f --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/currency/package-frame.html @@ -0,0 +1,23 @@ + + + + + +net.shipsandgiggles.pirate.currency (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.currency

+
+

Classes

+ +

Enums

+ +
+ + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/currency/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/currency/package-summary.html new file mode 100644 index 0000000..be33f33 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/currency/package-summary.html @@ -0,0 +1,156 @@ + + + + + +net.shipsandgiggles.pirate.currency (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.currency

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    Currency 
    +
  • +
  • + + + + + + + + + + + + +
    Enum Summary 
    EnumDescription
    Currency.Type +
    Currency Types.
    +
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/currency/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/currency/package-tree.html new file mode 100644 index 0000000..5a66bef --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/currency/package-tree.html @@ -0,0 +1,146 @@ + + + + + +net.shipsandgiggles.pirate.currency Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.currency

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • net.shipsandgiggles.pirate.currency.Currency
    • +
    +
  • +
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/BallsManager.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/BallsManager.html new file mode 100644 index 0000000..1584a7b --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/BallsManager.html @@ -0,0 +1,370 @@ + + + + + +BallsManager (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity
+

Class BallsManager

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.entity.BallsManager
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class BallsManager
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static inti +
      this is the class to manage all the balls combined
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      BallsManager() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidcreateBall(com.badlogic.gdx.physics.box2d.World world, + com.badlogic.gdx.math.Vector2 position, + com.badlogic.gdx.math.Vector2 target, + com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite, + short categoryBits, + short maskBit, + short groupIndex) 
      static voidcreateBallAtAngle(com.badlogic.gdx.physics.box2d.World world, + com.badlogic.gdx.math.Vector2 position, + float angle, + com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite, + short categoryBits, + short maskBit, + short groupIndex) 
      static voidremoveNext() 
      static voidupdateBalls(com.badlogic.gdx.graphics.g2d.Batch batch) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        i

        +
        public static int i
        +
        this is the class to manage all the balls combined
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BallsManager

        +
        public BallsManager()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        removeNext

        +
        public static void removeNext()
        +
      • +
      + + + +
        +
      • +

        createBall

        +
        public static void createBall(com.badlogic.gdx.physics.box2d.World world,
        +                              com.badlogic.gdx.math.Vector2 position,
        +                              com.badlogic.gdx.math.Vector2 target,
        +                              com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite,
        +                              short categoryBits,
        +                              short maskBit,
        +                              short groupIndex)
        +
      • +
      + + + +
        +
      • +

        createBallAtAngle

        +
        public static void createBallAtAngle(com.badlogic.gdx.physics.box2d.World world,
        +                                     com.badlogic.gdx.math.Vector2 position,
        +                                     float angle,
        +                                     com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite,
        +                                     short categoryBits,
        +                                     short maskBit,
        +                                     short groupIndex)
        +
      • +
      + + + +
        +
      • +

        updateBalls

        +
        public static void updateBalls(com.badlogic.gdx.graphics.g2d.Batch batch)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/CannonBall.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/CannonBall.html new file mode 100644 index 0000000..08c4845 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/CannonBall.html @@ -0,0 +1,455 @@ + + + + + +CannonBall (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity
+

Class CannonBall

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.entity.CannonBall
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CannonBall
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      floatangle 
      com.badlogic.gdx.physics.box2d.Bodybody 
      com.badlogic.gdx.graphics.g2d.SpritecannonBall 
      floatdamageDelt 
      floatfinalX 
      floatfinalY 
      booleanisDestroyed 
      booleansetAngle 
      floatspeed 
      com.badlogic.gdx.math.Vector2target 
      booleanteleported 
      floattimer +
      this is the creation and update for each individual ball
      +
      com.badlogic.gdx.physics.box2d.Worldworld 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      floatgetDamageDelt() 
      voidteleportBall() 
      voidupdate(com.badlogic.gdx.graphics.g2d.Batch batch) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        timer

        +
        public float timer
        +
        this is the creation and update for each individual ball
        +
      • +
      + + + +
        +
      • +

        world

        +
        public com.badlogic.gdx.physics.box2d.World world
        +
      • +
      + + + +
        +
      • +

        body

        +
        public com.badlogic.gdx.physics.box2d.Body body
        +
      • +
      + + + +
        +
      • +

        isDestroyed

        +
        public boolean isDestroyed
        +
      • +
      + + + +
        +
      • +

        target

        +
        public com.badlogic.gdx.math.Vector2 target
        +
      • +
      + + + +
        +
      • +

        setAngle

        +
        public boolean setAngle
        +
      • +
      + + + +
        +
      • +

        angle

        +
        public float angle
        +
      • +
      + + + +
        +
      • +

        cannonBall

        +
        public com.badlogic.gdx.graphics.g2d.Sprite cannonBall
        +
      • +
      + + + +
        +
      • +

        speed

        +
        public float speed
        +
      • +
      + + + +
        +
      • +

        damageDelt

        +
        public float damageDelt
        +
      • +
      + + + +
        +
      • +

        teleported

        +
        public boolean teleported
        +
      • +
      + + + +
        +
      • +

        finalX

        +
        public float finalX
        +
      • +
      + + + +
        +
      • +

        finalY

        +
        public float finalY
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        update

        +
        public void update(com.badlogic.gdx.graphics.g2d.Batch batch)
        +
      • +
      + + + +
        +
      • +

        getDamageDelt

        +
        public float getDamageDelt()
        +
      • +
      + + + +
        +
      • +

        teleportBall

        +
        public void teleportBall()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/Entity.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/Entity.html new file mode 100644 index 0000000..5599707 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/Entity.html @@ -0,0 +1,512 @@ + + + + + +Entity (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity
+

Class Entity

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.entity.Entity
    • +
    +
  • +
+
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    College, MovableEntity
    +
    +
    +
    +
    public abstract class Entity
    +extends java.lang.Object
    +
    Base class of all entities in the game.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      floathealth 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Entity(java.util.UUID uuid, + com.badlogic.gdx.graphics.g2d.Sprite texture, + Location location, + EntityType entityType, + float maximumHealth, + float height, + float width) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and TypeMethod and Description
      floatdamage(float damage) 
      abstract voiddeath() 
      abstract voiddraw(com.badlogic.gdx.graphics.g2d.Batch batch) +
      Draw the entity onto the batch.
      +
      EntityTypegetEntityType() 
      doublegetHealth() +
      Current health of the entity, where less than or equal to 0 represents a dead entity.
      +
      floatgetHeight() 
      LocationgetLocation() +
      Current location of the entity.
      +
      doublegetMaximumHealth() +
      Maximum health of the entity when it spawns.
      +
      com.badlogic.gdx.graphics.g2d.SpritegetSkin() +
      The skin that should be displayed to the user for this entity.
      +
      java.util.UUIDgetUniqueId() +
      The randomly generated UUID representing the entity.
      +
      floatgetWidth() 
      abstract voidshootPlayer(Ship player) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        health

        +
        public float health
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Entity

        +
        public Entity(java.util.UUID uuid,
        +              com.badlogic.gdx.graphics.g2d.Sprite texture,
        +              Location location,
        +              EntityType entityType,
        +              float maximumHealth,
        +              float height,
        +              float width)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getUniqueId

        +
        public java.util.UUID getUniqueId()
        +
        The randomly generated UUID representing the entity.
        +
        +
        Returns:
        +
        Current UUID.
        +
        +
      • +
      + + + +
        +
      • +

        getSkin

        +
        public com.badlogic.gdx.graphics.g2d.Sprite getSkin()
        +
        The skin that should be displayed to the user for this entity.
        +
        +
        Returns:
        +
        Skin to be displayed.
        +
        +
      • +
      + + + +
        +
      • +

        getLocation

        +
        public Location getLocation()
        +
        Current location of the entity.
        +
        +
        Returns:
        +
        X
        +
        +
      • +
      + + + +
        +
      • +

        getEntityType

        +
        public EntityType getEntityType()
        +
        +
        Returns:
        +
        EntityType representing (e.g. Ship, College)
        +
        +
      • +
      + + + +
        +
      • +

        getHeight

        +
        public float getHeight()
        +
      • +
      + + + +
        +
      • +

        getWidth

        +
        public float getWidth()
        +
      • +
      + + + +
        +
      • +

        getHealth

        +
        public double getHealth()
        +
        Current health of the entity, where less than or equal to 0 represents a dead entity.
        +
        +
        Returns:
        +
        Current Health.
        +
        +
      • +
      + + + +
        +
      • +

        getMaximumHealth

        +
        public double getMaximumHealth()
        +
        Maximum health of the entity when it spawns. If this is infinite, it will be -1.
        +
        +
        Returns:
        +
        Defined maximum health.
        +
        +
      • +
      + + + +
        +
      • +

        damage

        +
        public float damage(float damage)
        +
        +
        Parameters:
        +
        damage - Damage you wish the entity to take.
        +
        Returns:
        +
        Current health after damage (i.e. - damage
        +
        +
      • +
      + + + +
        +
      • +

        draw

        +
        public abstract void draw(com.badlogic.gdx.graphics.g2d.Batch batch)
        +
        Draw the entity onto the batch.
        +
      • +
      + + + +
        +
      • +

        shootPlayer

        +
        public abstract void shootPlayer(Ship player)
        +
      • +
      + + + +
        +
      • +

        death

        +
        public abstract void death()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/EntityAi.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/EntityAi.html new file mode 100644 index 0000000..717a744 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/EntityAi.html @@ -0,0 +1,836 @@ + + + + + +EntityAi (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity
+

Class EntityAi

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.entity.EntityAi
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    com.badlogic.gdx.ai.steer.Limiter, com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2>, com.badlogic.gdx.ai.utils.Location<com.badlogic.gdx.math.Vector2>
    +
    +
    +
    +
    public class EntityAi
    +extends java.lang.Object
    +implements com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2>
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EntityAi

        +
        public EntityAi(com.badlogic.gdx.physics.box2d.Body body,
        +                float boundingRadius,
        +                com.badlogic.gdx.graphics.g2d.Sprite texture)
        +
      • +
      + + + +
        +
      • +

        EntityAi

        +
        public EntityAi(com.badlogic.gdx.physics.box2d.Body body,
        +                float boundingRadius)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        update

        +
        public void update(float delta,
        +                   com.badlogic.gdx.graphics.g2d.Batch batch)
        +
      • +
      + + + +
        +
      • +

        drawEntity

        +
        public void drawEntity(com.badlogic.gdx.graphics.g2d.Batch batch)
        +
      • +
      + + + +
        +
      • +

        getSprite

        +
        public com.badlogic.gdx.graphics.g2d.Sprite getSprite()
        +
      • +
      + + + +
        +
      • +

        applySteering

        +
        protected void applySteering(com.badlogic.gdx.ai.steer.SteeringAcceleration<com.badlogic.gdx.math.Vector2> steeringOutput,
        +                             float deltaTime)
        +
      • +
      + + + +
        +
      • +

        isIndependentFacing

        +
        public boolean isIndependentFacing()
        +
      • +
      + + + +
        +
      • +

        setIndependentFacing

        +
        public void setIndependentFacing(boolean independentFacing)
        +
      • +
      + + + +
        +
      • +

        getLinearVelocity

        +
        public com.badlogic.gdx.math.Vector2 getLinearVelocity()
        +
        +
        Specified by:
        +
        getLinearVelocity in interface com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2>
        +
        +
      • +
      + + + +
        +
      • +

        setAmountOfRotations

        +
        public void setAmountOfRotations(float amountOfRotations)
        +
      • +
      + + + +
        +
      • +

        getAmountOfRotations

        +
        public float getAmountOfRotations()
        +
      • +
      + + + +
        +
      • +

        getAngularVelocity

        +
        public float getAngularVelocity()
        +
        +
        Specified by:
        +
        getAngularVelocity in interface com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2>
        +
        +
      • +
      + + + +
        +
      • +

        getBoundingRadius

        +
        public float getBoundingRadius()
        +
        +
        Specified by:
        +
        getBoundingRadius in interface com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2>
        +
        +
      • +
      + + + +
        +
      • +

        setAngleToTarget

        +
        public void setAngleToTarget(float angleToTarget)
        +
      • +
      + + + +
        +
      • +

        getAngleToTarget

        +
        public float getAngleToTarget()
        +
      • +
      + + + +
        +
      • +

        isTagged

        +
        public boolean isTagged()
        +
        +
        Specified by:
        +
        isTagged in interface com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2>
        +
        +
      • +
      + + + +
        +
      • +

        setTagged

        +
        public void setTagged(boolean tagged)
        +
        +
        Specified by:
        +
        setTagged in interface com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2>
        +
        +
      • +
      + + + +
        +
      • +

        getZeroLinearSpeedThreshold

        +
        public float getZeroLinearSpeedThreshold()
        +
        +
        Specified by:
        +
        getZeroLinearSpeedThreshold in interface com.badlogic.gdx.ai.steer.Limiter
        +
        +
      • +
      + + + +
        +
      • +

        setZeroLinearSpeedThreshold

        +
        public void setZeroLinearSpeedThreshold(float value)
        +
        +
        Specified by:
        +
        setZeroLinearSpeedThreshold in interface com.badlogic.gdx.ai.steer.Limiter
        +
        +
      • +
      + + + +
        +
      • +

        getMaxLinearSpeed

        +
        public float getMaxLinearSpeed()
        +
        +
        Specified by:
        +
        getMaxLinearSpeed in interface com.badlogic.gdx.ai.steer.Limiter
        +
        +
      • +
      + + + +
        +
      • +

        setMaxLinearSpeed

        +
        public void setMaxLinearSpeed(float maxLinearSpeed)
        +
        +
        Specified by:
        +
        setMaxLinearSpeed in interface com.badlogic.gdx.ai.steer.Limiter
        +
        +
      • +
      + + + +
        +
      • +

        getMaxLinearAcceleration

        +
        public float getMaxLinearAcceleration()
        +
        +
        Specified by:
        +
        getMaxLinearAcceleration in interface com.badlogic.gdx.ai.steer.Limiter
        +
        +
      • +
      + + + +
        +
      • +

        setTarget

        +
        public void setTarget(com.badlogic.gdx.physics.box2d.Body body)
        +
      • +
      + + + +
        +
      • +

        getTarget

        +
        public com.badlogic.gdx.physics.box2d.Body getTarget()
        +
      • +
      + + + +
        +
      • +

        setMaxLinearAcceleration

        +
        public void setMaxLinearAcceleration(float maxLinearAcceleration)
        +
        +
        Specified by:
        +
        setMaxLinearAcceleration in interface com.badlogic.gdx.ai.steer.Limiter
        +
        +
      • +
      + + + +
        +
      • +

        getMaxAngularSpeed

        +
        public float getMaxAngularSpeed()
        +
        +
        Specified by:
        +
        getMaxAngularSpeed in interface com.badlogic.gdx.ai.steer.Limiter
        +
        +
      • +
      + + + +
        +
      • +

        setMaxAngularSpeed

        +
        public void setMaxAngularSpeed(float maxAngularSpeed)
        +
        +
        Specified by:
        +
        setMaxAngularSpeed in interface com.badlogic.gdx.ai.steer.Limiter
        +
        +
      • +
      + + + +
        +
      • +

        getMaxAngularAcceleration

        +
        public float getMaxAngularAcceleration()
        +
        +
        Specified by:
        +
        getMaxAngularAcceleration in interface com.badlogic.gdx.ai.steer.Limiter
        +
        +
      • +
      + + + +
        +
      • +

        setMaxAngularAcceleration

        +
        public void setMaxAngularAcceleration(float maxAngularAcceleration)
        +
        +
        Specified by:
        +
        setMaxAngularAcceleration in interface com.badlogic.gdx.ai.steer.Limiter
        +
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        public com.badlogic.gdx.math.Vector2 getPosition()
        +
        +
        Specified by:
        +
        getPosition in interface com.badlogic.gdx.ai.utils.Location<com.badlogic.gdx.math.Vector2>
        +
        +
      • +
      + + + +
        +
      • +

        getOrientation

        +
        public float getOrientation()
        +
        +
        Specified by:
        +
        getOrientation in interface com.badlogic.gdx.ai.utils.Location<com.badlogic.gdx.math.Vector2>
        +
        +
      • +
      + + + +
        +
      • +

        setOrientation

        +
        public void setOrientation(float orientation)
        +
        +
        Specified by:
        +
        setOrientation in interface com.badlogic.gdx.ai.utils.Location<com.badlogic.gdx.math.Vector2>
        +
        +
      • +
      + + + +
        +
      • +

        vectorToAngle

        +
        public float vectorToAngle(com.badlogic.gdx.math.Vector2 vector)
        +
        +
        Specified by:
        +
        vectorToAngle in interface com.badlogic.gdx.ai.utils.Location<com.badlogic.gdx.math.Vector2>
        +
        +
      • +
      + + + +
        +
      • +

        angleToVector

        +
        public com.badlogic.gdx.math.Vector2 angleToVector(com.badlogic.gdx.math.Vector2 outVector,
        +                                                   float angle)
        +
        +
        Specified by:
        +
        angleToVector in interface com.badlogic.gdx.ai.utils.Location<com.badlogic.gdx.math.Vector2>
        +
        +
      • +
      + + + +
        +
      • +

        newLocation

        +
        public com.badlogic.gdx.ai.utils.Location<com.badlogic.gdx.math.Vector2> newLocation()
        +
        +
        Specified by:
        +
        newLocation in interface com.badlogic.gdx.ai.utils.Location<com.badlogic.gdx.math.Vector2>
        +
        +
      • +
      + + + +
        +
      • +

        getBody

        +
        public com.badlogic.gdx.physics.box2d.Body getBody()
        +
      • +
      + + + +
        +
      • +

        setBehavior

        +
        public void setBehavior(com.badlogic.gdx.ai.steer.SteeringBehavior<com.badlogic.gdx.math.Vector2> behavior)
        +
      • +
      + + + +
        +
      • +

        getBehavior

        +
        public com.badlogic.gdx.ai.steer.SteeringBehavior<com.badlogic.gdx.math.Vector2> getBehavior()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/EntityType.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/EntityType.html new file mode 100644 index 0000000..5f2fc9a --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/EntityType.html @@ -0,0 +1,339 @@ + + + + + +EntityType (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity
+

Enum EntityType

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<EntityType>
    • +
    • +
        +
      • net.shipsandgiggles.pirate.entity.EntityType
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<EntityType>
    +
    +
    +
    +
    public enum EntityType
    +extends java.lang.Enum<EntityType>
    +
    creation of types
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      COLLEGE 
      SHIP 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static EntityTypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static EntityType[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static EntityType[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (EntityType c : EntityType.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static EntityType valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/Location.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/Location.html new file mode 100644 index 0000000..60dec61 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/Location.html @@ -0,0 +1,309 @@ + + + + + +Location (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity
+

Class Location

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.entity.Location
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Location
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Location(float xCoordinate, + float yCoordinate) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      floatgetX() 
      floatgetY() 
      voidsetX(float xCoordinate) 
      voidsetY(float yCoordinate) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Location

        +
        public Location(float xCoordinate,
        +                float yCoordinate)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getX

        +
        public float getX()
        +
      • +
      + + + +
        +
      • +

        setX

        +
        public void setX(float xCoordinate)
        +
      • +
      + + + +
        +
      • +

        getY

        +
        public float getY()
        +
      • +
      + + + +
        +
      • +

        setY

        +
        public void setY(float yCoordinate)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/MovableEntity.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/MovableEntity.html new file mode 100644 index 0000000..d86ccfc --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/MovableEntity.html @@ -0,0 +1,355 @@ + + + + + +MovableEntity (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity
+

Class MovableEntity

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    Ship
    +
    +
    +
    +
    public abstract class MovableEntity
    +extends Entity
    +
    assigns the variables to any entity in the game that moves
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MovableEntity

        +
        public MovableEntity(java.util.UUID uuid,
        +                     com.badlogic.gdx.graphics.g2d.Sprite texture,
        +                     Location location,
        +                     EntityType entityType,
        +                     float maximumHealth,
        +                     float spawnSpeed,
        +                     float maximumSpeed,
        +                     float height,
        +                     float width)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSpeed

        +
        public float getSpeed()
        +
      • +
      + + + +
        +
      • +

        setSpeed

        +
        public void setSpeed(float speed)
        +
      • +
      + + + +
        +
      • +

        getOriginalSpeed

        +
        public float getOriginalSpeed()
        +
      • +
      + + + +
        +
      • +

        getMaximumSpeed

        +
        public float getMaximumSpeed()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/Ship.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/Ship.html new file mode 100644 index 0000000..2502d54 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/Ship.html @@ -0,0 +1,873 @@ + + + + + +Ship (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity
+

Class Ship

+
+
+ +
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Ship(com.badlogic.gdx.graphics.g2d.Sprite texture, + float spawnSpeed, + float maxSpeed, + float driftFactor, + float turnSpeed, + Location location, + float height, + float width, + com.badlogic.gdx.graphics.Camera cam) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidburstShoot(com.badlogic.gdx.physics.box2d.World world, + com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite, + com.badlogic.gdx.graphics.Camera cam, + short categoryBits, + short maskBit, + short groupIndex) 
      voiddeath() 
      voiddraw(com.badlogic.gdx.graphics.g2d.Batch batch) +
      Draw the entity onto the batch.
      +
      floatgetDriftFactor() 
      floatgetDriveDirection() 
      com.badlogic.gdx.physics.box2d.BodygetEntityBody() 
      com.badlogic.gdx.math.Vector2getForwardVelocity() 
      com.badlogic.gdx.math.Vector2getLateralVelocity() 
      com.badlogic.gdx.math.Vector2getPosition() +
      gets the position of the player
      +
      com.badlogic.gdx.graphics.g2d.SpritegetSprite() 
      floatgetTurnDirection() 
      floatgetTurnSpeed() 
      com.badlogic.gdx.math.Vector2multiply(float a, + com.badlogic.gdx.math.Vector2 v) 
      voidrapidShot(com.badlogic.gdx.physics.box2d.World world, + com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite, + com.badlogic.gdx.graphics.Camera cam, + short categoryBits, + short maskBit, + short groupIndex) 
      voidsetDriveDirection(float driveDirection) 
      voidsetTexture(com.badlogic.gdx.graphics.g2d.Sprite texture) 
      voidsetTurnDirection(float turnDirection) 
      voidshoot(com.badlogic.gdx.physics.box2d.World world, + com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite, + com.badlogic.gdx.graphics.Camera cam, + short categoryBits, + short maskBit, + short groupIndex) 
      voidshootPlayer(Ship player) 
      voidtakeDamage(float damage) 
      voidupdateShots(com.badlogic.gdx.physics.box2d.World world, + com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite, + com.badlogic.gdx.graphics.Camera cam, + short categoryBits, + short maskBit, + short groupIndex) 
      + + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        rapidShot

        +
        public boolean rapidShot
        +
      • +
      + + + +
        +
      • +

        timeBetweenRapidShots

        +
        public float timeBetweenRapidShots
        +
      • +
      + + + +
        +
      • +

        rapidShotCoolDown

        +
        public float rapidShotCoolDown
        +
      • +
      + + + +
        +
      • +

        numberOfShotsLeft

        +
        public int numberOfShotsLeft
        +
      • +
      + + + +
        +
      • +

        shotsInRapidShot

        +
        public int shotsInRapidShot
        +
      • +
      + + + +
        +
      • +

        shootingCoolDown

        +
        public float shootingCoolDown
        +
      • +
      + + + +
        +
      • +

        burstCoolDown

        +
        public float burstCoolDown
        +
      • +
      + + + +
        +
      • +

        shootingTimer

        +
        public float shootingTimer
        +
      • +
      + + + +
        +
      • +

        burstTimer

        +
        public static float burstTimer
        +
      • +
      + + + +
        +
      • +

        world

        +
        public com.badlogic.gdx.physics.box2d.World world
        +
      • +
      + + + +
        +
      • +

        dead

        +
        public boolean dead
        +
      • +
      + + + +
        +
      • +

        cam

        +
        public com.badlogic.gdx.graphics.Camera cam
        +
      • +
      + + + +
        +
      • +

        deathPosition

        +
        public com.badlogic.gdx.math.Vector2 deathPosition
        +
      • +
      + + + +
        +
      • +

        hitBox

        +
        public com.badlogic.gdx.math.Rectangle hitBox
        +
      • +
      + + + +
        +
      • +

        health

        +
        public static float health
        +
      • +
      + + + +
        +
      • +

        maxHealth

        +
        public static float maxHealth
        +
      • +
      + + + +
        +
      • +

        timeToRegen

        +
        public float timeToRegen
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Ship

        +
        public Ship(com.badlogic.gdx.graphics.g2d.Sprite texture,
        +            float spawnSpeed,
        +            float maxSpeed,
        +            float driftFactor,
        +            float turnSpeed,
        +            Location location,
        +            float height,
        +            float width,
        +            com.badlogic.gdx.graphics.Camera cam)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        draw

        +
        public void draw(com.badlogic.gdx.graphics.g2d.Batch batch)
        +
        Description copied from class: Entity
        +
        Draw the entity onto the batch.
        +
        +
        Specified by:
        +
        draw in class Entity
        +
        +
      • +
      + + + +
        +
      • +

        shootPlayer

        +
        public void shootPlayer(Ship player)
        +
        +
        Specified by:
        +
        shootPlayer in class Entity
        +
        +
      • +
      + + + +
        +
      • +

        death

        +
        public void death()
        +
        +
        Specified by:
        +
        death in class Entity
        +
        +
      • +
      + + + +
        +
      • +

        shoot

        +
        public void shoot(com.badlogic.gdx.physics.box2d.World world,
        +                  com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite,
        +                  com.badlogic.gdx.graphics.Camera cam,
        +                  short categoryBits,
        +                  short maskBit,
        +                  short groupIndex)
        +
      • +
      + + + +
        +
      • +

        burstShoot

        +
        public void burstShoot(com.badlogic.gdx.physics.box2d.World world,
        +                       com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite,
        +                       com.badlogic.gdx.graphics.Camera cam,
        +                       short categoryBits,
        +                       short maskBit,
        +                       short groupIndex)
        +
      • +
      + + + +
        +
      • +

        rapidShot

        +
        public void rapidShot(com.badlogic.gdx.physics.box2d.World world,
        +                      com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite,
        +                      com.badlogic.gdx.graphics.Camera cam,
        +                      short categoryBits,
        +                      short maskBit,
        +                      short groupIndex)
        +
      • +
      + + + +
        +
      • +

        updateShots

        +
        public void updateShots(com.badlogic.gdx.physics.box2d.World world,
        +                        com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite,
        +                        com.badlogic.gdx.graphics.Camera cam,
        +                        short categoryBits,
        +                        short maskBit,
        +                        short groupIndex)
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        public com.badlogic.gdx.math.Vector2 getPosition()
        +
        gets the position of the player
        +
      • +
      + + + +
        +
      • +

        getSprite

        +
        public com.badlogic.gdx.graphics.g2d.Sprite getSprite()
        +
      • +
      + + + +
        +
      • +

        getEntityBody

        +
        public com.badlogic.gdx.physics.box2d.Body getEntityBody()
        +
      • +
      + + + +
        +
      • +

        getForwardVelocity

        +
        public com.badlogic.gdx.math.Vector2 getForwardVelocity()
        +
      • +
      + + + +
        +
      • +

        multiply

        +
        public com.badlogic.gdx.math.Vector2 multiply(float a,
        +                                              com.badlogic.gdx.math.Vector2 v)
        +
      • +
      + + + +
        +
      • +

        getLateralVelocity

        +
        public com.badlogic.gdx.math.Vector2 getLateralVelocity()
        +
      • +
      + + + +
        +
      • +

        setTexture

        +
        public void setTexture(com.badlogic.gdx.graphics.g2d.Sprite texture)
        +
      • +
      + + + +
        +
      • +

        getTurnDirection

        +
        public float getTurnDirection()
        +
      • +
      + + + +
        +
      • +

        setTurnDirection

        +
        public void setTurnDirection(float turnDirection)
        +
      • +
      + + + +
        +
      • +

        getTurnSpeed

        +
        public float getTurnSpeed()
        +
      • +
      + + + +
        +
      • +

        getDriveDirection

        +
        public float getDriveDirection()
        +
      • +
      + + + +
        +
      • +

        setDriveDirection

        +
        public void setDriveDirection(float driveDirection)
        +
      • +
      + + + +
        +
      • +

        getDriftFactor

        +
        public float getDriftFactor()
        +
      • +
      + + + +
        +
      • +

        takeDamage

        +
        public void takeDamage(float damage)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/College.Type.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/College.Type.html new file mode 100644 index 0000000..2e941bf --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/College.Type.html @@ -0,0 +1,348 @@ + + + + + +College.Type (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity.college
+

Enum College.Type

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<College.Type>
    • +
    • +
        +
      • net.shipsandgiggles.pirate.entity.college.College.Type
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<College.Type>
    +
    +
    +
    Enclosing class:
    +
    College
    +
    +
    +
    +
    public static enum College.Type
    +extends java.lang.Enum<College.Type>
    +
    Types of college - allows us to keep track.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      LANGWITH 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.util.UUIDgetId() 
      static College.TypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static College.Type[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        LANGWITH

        +
        public static final College.Type LANGWITH
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static College.Type[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (College.Type c : College.Type.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static College.Type valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getId

        +
        public java.util.UUID getId()
        +
        +
        Returns:
        +
        Unique identifier associated with this UUID.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/College.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/College.html new file mode 100644 index 0000000..c7a518a --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/College.html @@ -0,0 +1,495 @@ + + + + + +College (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity.college
+

Class College

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        body

        +
        public com.badlogic.gdx.physics.box2d.Body body
        +
      • +
      + + + +
        +
      • +

        counter

        +
        public float counter
        +
      • +
      + + + +
        +
      • +

        dead

        +
        public boolean dead
        +
      • +
      + + + +
        +
      • +

        hitBox

        +
        public com.badlogic.gdx.math.Rectangle hitBox
        +
      • +
      + + + +
        +
      • +

        cannonBallSprite

        +
        public com.badlogic.gdx.graphics.g2d.Sprite cannonBallSprite
        +
      • +
      + + + +
        +
      • +

        cooldownTimer

        +
        public float cooldownTimer
        +
      • +
      + + + +
        +
      • +

        timer

        +
        public float timer
        +
      • +
      + + + +
        +
      • +

        healthBar

        +
        public com.badlogic.gdx.graphics.Texture healthBar
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        College

        +
        public College(java.util.UUID uuid,
        +               College.Type type,
        +               com.badlogic.gdx.graphics.g2d.Sprite texture,
        +               Location location,
        +               float maximumHealth,
        +               float height,
        +               float width)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        perform

        +
        public abstract boolean perform()
        +
      • +
      + + + +
        +
      • +

        getBody

        +
        public com.badlogic.gdx.physics.box2d.Body getBody()
        +
      • +
      + + + +
        +
      • +

        death

        +
        public void death()
        +
        +
        Specified by:
        +
        death in class Entity
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/package-frame.html new file mode 100644 index 0000000..22603dd --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/package-frame.html @@ -0,0 +1,23 @@ + + + + + +net.shipsandgiggles.pirate.entity.college (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.entity.college

+
+

Classes

+ +

Enums

+ +
+ + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/package-summary.html new file mode 100644 index 0000000..f972ff2 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/package-summary.html @@ -0,0 +1,158 @@ + + + + + +net.shipsandgiggles.pirate.entity.college (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.entity.college

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    College +
    College data that allows us to perform animations / fights more easily.
    +
    +
  • +
  • + + + + + + + + + + + + +
    Enum Summary 
    EnumDescription
    College.Type +
    Types of college - allows us to keep track.
    +
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/package-tree.html new file mode 100644 index 0000000..3690cef --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/college/package-tree.html @@ -0,0 +1,150 @@ + + + + + +net.shipsandgiggles.pirate.entity.college Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.entity.college

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • net.shipsandgiggles.pirate.entity.Entity +
        +
      • net.shipsandgiggles.pirate.entity.college.College
      • +
      +
    • +
    +
  • +
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/AlcuinCollege.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/AlcuinCollege.html new file mode 100644 index 0000000..0358cbf --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/AlcuinCollege.html @@ -0,0 +1,408 @@ + + + + + +AlcuinCollege (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity.impl.college
+

Class AlcuinCollege

+
+
+ +
+
    +
  • +
    +
    +
    public class AlcuinCollege
    +extends College
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        world

        +
        public com.badlogic.gdx.physics.box2d.World world
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AlcuinCollege

        +
        public AlcuinCollege(com.badlogic.gdx.graphics.g2d.Sprite texture,
        +                     Location location,
        +                     float maximumHealth,
        +                     com.badlogic.gdx.physics.box2d.World world)
        +
        construction of college
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        perform

        +
        public boolean perform()
        +
        +
        Specified by:
        +
        perform in class College
        +
        +
      • +
      + + + +
        +
      • +

        draw

        +
        public void draw(com.badlogic.gdx.graphics.g2d.Batch batch)
        +
        Description copied from class: Entity
        +
        Draw the entity onto the batch.
        +
        +
        Specified by:
        +
        draw in class Entity
        +
        +
      • +
      + + + +
        +
      • +

        shootPlayer

        +
        public void shootPlayer(Ship player)
        +
        +
        Specified by:
        +
        shootPlayer in class Entity
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/ConstantineCollege.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/ConstantineCollege.html new file mode 100644 index 0000000..7413d63 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/ConstantineCollege.html @@ -0,0 +1,405 @@ + + + + + +ConstantineCollege (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity.impl.college
+

Class ConstantineCollege

+
+
+ +
+
    +
  • +
    +
    +
    public class ConstantineCollege
    +extends College
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        world

        +
        public com.badlogic.gdx.physics.box2d.World world
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ConstantineCollege

        +
        public ConstantineCollege(com.badlogic.gdx.graphics.g2d.Sprite texture,
        +                          Location location,
        +                          float maximumHealth,
        +                          com.badlogic.gdx.physics.box2d.World world)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        perform

        +
        public boolean perform()
        +
        +
        Specified by:
        +
        perform in class College
        +
        +
      • +
      + + + +
        +
      • +

        draw

        +
        public void draw(com.badlogic.gdx.graphics.g2d.Batch batch)
        +
        Description copied from class: Entity
        +
        Draw the entity onto the batch.
        +
        +
        Specified by:
        +
        draw in class Entity
        +
        +
      • +
      + + + +
        +
      • +

        shootPlayer

        +
        public void shootPlayer(Ship player)
        +
        +
        Specified by:
        +
        shootPlayer in class Entity
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/GoodrickCollege.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/GoodrickCollege.html new file mode 100644 index 0000000..e4e28cb --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/GoodrickCollege.html @@ -0,0 +1,405 @@ + + + + + +GoodrickCollege (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity.impl.college
+

Class GoodrickCollege

+
+
+ +
+
    +
  • +
    +
    +
    public class GoodrickCollege
    +extends College
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        world

        +
        public com.badlogic.gdx.physics.box2d.World world
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GoodrickCollege

        +
        public GoodrickCollege(com.badlogic.gdx.graphics.g2d.Sprite texture,
        +                       Location location,
        +                       float maximumHealth,
        +                       com.badlogic.gdx.physics.box2d.World world)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        perform

        +
        public boolean perform()
        +
        +
        Specified by:
        +
        perform in class College
        +
        +
      • +
      + + + +
        +
      • +

        draw

        +
        public void draw(com.badlogic.gdx.graphics.g2d.Batch batch)
        +
        Description copied from class: Entity
        +
        Draw the entity onto the batch.
        +
        +
        Specified by:
        +
        draw in class Entity
        +
        +
      • +
      + + + +
        +
      • +

        shootPlayer

        +
        public void shootPlayer(Ship player)
        +
        +
        Specified by:
        +
        shootPlayer in class Entity
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/LangwithCollege.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/LangwithCollege.html new file mode 100644 index 0000000..0bb7443 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/LangwithCollege.html @@ -0,0 +1,405 @@ + + + + + +LangwithCollege (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.entity.impl.college
+

Class LangwithCollege

+
+
+ +
+
    +
  • +
    +
    +
    public class LangwithCollege
    +extends College
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        world

        +
        public com.badlogic.gdx.physics.box2d.World world
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LangwithCollege

        +
        public LangwithCollege(com.badlogic.gdx.graphics.g2d.Sprite texture,
        +                       Location location,
        +                       float maximumHealth,
        +                       com.badlogic.gdx.physics.box2d.World world)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        perform

        +
        public boolean perform()
        +
        +
        Specified by:
        +
        perform in class College
        +
        +
      • +
      + + + +
        +
      • +

        draw

        +
        public void draw(com.badlogic.gdx.graphics.g2d.Batch batch)
        +
        Description copied from class: Entity
        +
        Draw the entity onto the batch.
        +
        +
        Specified by:
        +
        draw in class Entity
        +
        +
      • +
      + + + +
        +
      • +

        shootPlayer

        +
        public void shootPlayer(Ship player)
        +
        +
        Specified by:
        +
        shootPlayer in class Entity
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/package-frame.html new file mode 100644 index 0000000..1c65144 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/package-frame.html @@ -0,0 +1,22 @@ + + + + + +net.shipsandgiggles.pirate.entity.impl.college (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.entity.impl.college

+ + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/package-summary.html new file mode 100644 index 0000000..b801d0b --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/package-summary.html @@ -0,0 +1,151 @@ + + + + + +net.shipsandgiggles.pirate.entity.impl.college (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.entity.impl.college

+
+
+ +
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/package-tree.html new file mode 100644 index 0000000..609c5c2 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/impl/college/package-tree.html @@ -0,0 +1,145 @@ + + + + + +net.shipsandgiggles.pirate.entity.impl.college Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.entity.impl.college

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/package-frame.html new file mode 100644 index 0000000..f20a5dd --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/package-frame.html @@ -0,0 +1,29 @@ + + + + + +net.shipsandgiggles.pirate.entity (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.entity

+ + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/package-summary.html new file mode 100644 index 0000000..ca82ee8 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/package-summary.html @@ -0,0 +1,184 @@ + + + + + +net.shipsandgiggles.pirate.entity (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.entity

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    BallsManager 
    CannonBall 
    Entity +
    Base class of all entities in the game.
    +
    EntityAi 
    Location 
    MovableEntity +
    assigns the variables to any entity in the game that moves
    +
    Ship 
    +
  • +
  • + + + + + + + + + + + + +
    Enum Summary 
    EnumDescription
    EntityType +
    creation of types
    +
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/entity/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/package-tree.html new file mode 100644 index 0000000..de5bcf6 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/entity/package-tree.html @@ -0,0 +1,158 @@ + + + + + +net.shipsandgiggles.pirate.entity Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.entity

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • net.shipsandgiggles.pirate.entity.BallsManager
    • +
    • net.shipsandgiggles.pirate.entity.CannonBall
    • +
    • net.shipsandgiggles.pirate.entity.Entity +
        +
      • net.shipsandgiggles.pirate.entity.MovableEntity +
          +
        • net.shipsandgiggles.pirate.entity.Ship
        • +
        +
      • +
      +
    • +
    • net.shipsandgiggles.pirate.entity.EntityAi (implements com.badlogic.gdx.ai.steer.Steerable<T>)
    • +
    • net.shipsandgiggles.pirate.entity.Location
    • +
    +
  • +
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/listener/WorldContactListener.html b/javadoc/javadoc/net/shipsandgiggles/pirate/listener/WorldContactListener.html new file mode 100644 index 0000000..8b5a690 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/listener/WorldContactListener.html @@ -0,0 +1,335 @@ + + + + + +WorldContactListener (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.listener
+

Class WorldContactListener

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.listener.WorldContactListener
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    com.badlogic.gdx.physics.box2d.ContactListener
    +
    +
    +
    +
    public class WorldContactListener
    +extends java.lang.Object
    +implements com.badlogic.gdx.physics.box2d.ContactListener
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidbeginContact(com.badlogic.gdx.physics.box2d.Contact contact) +
      checks for any collides in the game
      +
      voidendContact(com.badlogic.gdx.physics.box2d.Contact contact) 
      voidpostSolve(com.badlogic.gdx.physics.box2d.Contact contact, + com.badlogic.gdx.physics.box2d.ContactImpulse impulse) 
      voidpreSolve(com.badlogic.gdx.physics.box2d.Contact contact, + com.badlogic.gdx.physics.box2d.Manifold oldManifold) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WorldContactListener

        +
        public WorldContactListener()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        beginContact

        +
        public void beginContact(com.badlogic.gdx.physics.box2d.Contact contact)
        +
        checks for any collides in the game
        +
        +
        Specified by:
        +
        beginContact in interface com.badlogic.gdx.physics.box2d.ContactListener
        +
        +
      • +
      + + + +
        +
      • +

        endContact

        +
        public void endContact(com.badlogic.gdx.physics.box2d.Contact contact)
        +
        +
        Specified by:
        +
        endContact in interface com.badlogic.gdx.physics.box2d.ContactListener
        +
        +
      • +
      + + + +
        +
      • +

        preSolve

        +
        public void preSolve(com.badlogic.gdx.physics.box2d.Contact contact,
        +                     com.badlogic.gdx.physics.box2d.Manifold oldManifold)
        +
        +
        Specified by:
        +
        preSolve in interface com.badlogic.gdx.physics.box2d.ContactListener
        +
        +
      • +
      + + + +
        +
      • +

        postSolve

        +
        public void postSolve(com.badlogic.gdx.physics.box2d.Contact contact,
        +                      com.badlogic.gdx.physics.box2d.ContactImpulse impulse)
        +
        +
        Specified by:
        +
        postSolve in interface com.badlogic.gdx.physics.box2d.ContactListener
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/listener/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/listener/package-frame.html new file mode 100644 index 0000000..59305fb --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/listener/package-frame.html @@ -0,0 +1,19 @@ + + + + + +net.shipsandgiggles.pirate.listener (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.listener

+
+

Classes

+ +
+ + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/listener/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/listener/package-summary.html new file mode 100644 index 0000000..8c2a0fb --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/listener/package-summary.html @@ -0,0 +1,139 @@ + + + + + +net.shipsandgiggles.pirate.listener (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.listener

+
+
+ +
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/listener/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/listener/package-tree.html new file mode 100644 index 0000000..6853ced --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/listener/package-tree.html @@ -0,0 +1,134 @@ + + + + + +net.shipsandgiggles.pirate.listener Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.listener

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • net.shipsandgiggles.pirate.listener.WorldContactListener (implements com.badlogic.gdx.physics.box2d.ContactListener)
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/package-frame.html new file mode 100644 index 0000000..df51324 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/package-frame.html @@ -0,0 +1,24 @@ + + + + + +net.shipsandgiggles.pirate (core 1.0 API) + + + + +

net.shipsandgiggles.pirate

+ + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/package-summary.html new file mode 100644 index 0000000..febc790 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/package-summary.html @@ -0,0 +1,159 @@ + + + + + +net.shipsandgiggles.pirate (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate

+
+
+ +
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/package-tree.html new file mode 100644 index 0000000..9be977f --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/package-tree.html @@ -0,0 +1,143 @@ + + + + + +net.shipsandgiggles.pirate Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/pref/GamePreferences.html b/javadoc/javadoc/net/shipsandgiggles/pirate/pref/GamePreferences.html new file mode 100644 index 0000000..d6dfadb --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/pref/GamePreferences.html @@ -0,0 +1,380 @@ + + + + + +GamePreferences (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.pref
+

Class GamePreferences

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.pref.GamePreferences
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class GamePreferences
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        prefs

        +
        public com.badlogic.gdx.Preferences prefs()
        +
      • +
      + + + +
        +
      • +

        isMusicEnabled

        +
        public boolean isMusicEnabled()
        +
        Check whether the music is enabled (i.e. background noise).
        +
        +
        Returns:
        +
        State of music (true, enabled).
        +
        +
      • +
      + + + +
        +
      • +

        setMusicEnabled

        +
        public void setMusicEnabled(boolean enabled)
        +
        Toggle the state of background music.
        +
        +
        Parameters:
        +
        enabled - Whether to enable or disable it.
        +
        +
      • +
      + + + +
        +
      • +

        isVolumeEnabled

        +
        public boolean isVolumeEnabled()
        +
        Check whether global volume is enabled.
        +
        +
        Returns:
        +
        State of volume (true, enabled).
        +
        +
      • +
      + + + +
        +
      • +

        setVolumeEnabled

        +
        public void setVolumeEnabled(boolean enabled)
        +
        Toggle whether global volume is enabled.
        +
        +
        Parameters:
        +
        enabled - Whether to enable or disable it.
        +
        +
      • +
      + + + +
        +
      • +

        getVolumeLevel

        +
        public float getVolumeLevel()
        +
        Get the volume level, where 1 is 100%, and 0 is 0%.
        +
        +
        Returns:
        +
        Current volume level.
        +
        +
      • +
      + + + +
        +
      • +

        setVolumeLevel

        +
        public void setVolumeLevel(float level)
        +
        Set the volume level for all game noises.
        +
        +
        Parameters:
        +
        level - Floating number to set it to (0 is off, 1 is full).
        +
        +
      • +
      + + + +
        +
      • +

        setMusicVolumeLevel

        +
        public void setMusicVolumeLevel(float value)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/pref/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/pref/package-frame.html new file mode 100644 index 0000000..4c2fd6c --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/pref/package-frame.html @@ -0,0 +1,19 @@ + + + + + +net.shipsandgiggles.pirate.pref (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.pref

+
+

Classes

+ +
+ + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/pref/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/pref/package-summary.html new file mode 100644 index 0000000..fbc488f --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/pref/package-summary.html @@ -0,0 +1,139 @@ + + + + + +net.shipsandgiggles.pirate.pref (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.pref

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    GamePreferences 
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/pref/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/pref/package-tree.html new file mode 100644 index 0000000..4fdeea2 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/pref/package-tree.html @@ -0,0 +1,134 @@ + + + + + +net.shipsandgiggles.pirate.pref Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.pref

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/ScreenType.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/ScreenType.html new file mode 100644 index 0000000..5a7e3ba --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/ScreenType.html @@ -0,0 +1,375 @@ + + + + + +ScreenType (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.screen
+

Enum ScreenType

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<ScreenType>
    • +
    • +
        +
      • net.shipsandgiggles.pirate.screen.ScreenType
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<ScreenType>
    +
    +
    +
    +
    public enum ScreenType
    +extends java.lang.Enum<ScreenType>
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      com.badlogic.gdx.Screencreate() 
      static ScreenTypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ScreenType[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ScreenType[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ScreenType c : ScreenType.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ScreenType valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        create

        +
        public com.badlogic.gdx.Screen create()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/DeathScreen.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/DeathScreen.html new file mode 100644 index 0000000..8629318 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/DeathScreen.html @@ -0,0 +1,374 @@ + + + + + +DeathScreen (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.screen.impl
+

Class DeathScreen

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.screen.impl.DeathScreen
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class DeathScreen
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      com.badlogic.gdx.scenes.scene2d.ui.LabelgameOver 
      com.badlogic.gdx.scenes.scene2d.ui.Labelgold 
      floatGold 
      floatscore 
      com.badlogic.gdx.scenes.scene2d.ui.LabelscoreLabel 
      com.badlogic.gdx.scenes.scene2d.Stagestage +
      adds the ui for the death screen
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      DeathScreen(com.badlogic.gdx.graphics.g2d.SpriteBatch batch) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidupdate(HUDmanager hud, + int victorykind) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        stage

        +
        public com.badlogic.gdx.scenes.scene2d.Stage stage
        +
        adds the ui for the death screen
        +
      • +
      + + + +
        +
      • +

        score

        +
        public float score
        +
      • +
      + + + +
        +
      • +

        Gold

        +
        public float Gold
        +
      • +
      + + + +
        +
      • +

        scoreLabel

        +
        public com.badlogic.gdx.scenes.scene2d.ui.Label scoreLabel
        +
      • +
      + + + +
        +
      • +

        gold

        +
        public com.badlogic.gdx.scenes.scene2d.ui.Label gold
        +
      • +
      + + + +
        +
      • +

        gameOver

        +
        public com.badlogic.gdx.scenes.scene2d.ui.Label gameOver
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DeathScreen

        +
        public DeathScreen(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        update

        +
        public void update(HUDmanager hud,
        +                   int victorykind)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/GameScreen.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/GameScreen.html new file mode 100644 index 0000000..e39adaa --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/GameScreen.html @@ -0,0 +1,721 @@ + + + + + +GameScreen (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.screen.impl
+

Class GameScreen

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.screen.impl.GameScreen
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    com.badlogic.gdx.Screen
    +
    +
    +
    +
    public class GameScreen
    +extends java.lang.Object
    +implements com.badlogic.gdx.Screen
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        collegeSprite

        +
        public com.badlogic.gdx.graphics.g2d.Sprite collegeSprite
        +
      • +
      + + + +
        +
      • +

        collegesKilled

        +
        public static float collegesKilled
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        world

        +
        public static com.badlogic.gdx.physics.box2d.World world
        +
        implement world
        +
      • +
      + + + +
        +
      • +

        playerModel

        +
        public com.badlogic.gdx.graphics.g2d.Sprite playerModel
        +
        batch of images "objects"
        +
      • +
      + + + +
        +
      • +

        water

        +
        public com.badlogic.gdx.graphics.g2d.Sprite water
        +
      • +
      + + + +
        +
      • +

        intro

        +
        public boolean intro
        +
      • +
      + + + +
        +
      • +

        zoomedAmount

        +
        public float zoomedAmount
        +
      • +
      + + + +
        +
      • +

        collegesCaptured

        +
        public static int collegesCaptured
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GameScreen

        +
        public GameScreen()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        show

        +
        public void show()
        +
        +
        Specified by:
        +
        show in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        render

        +
        public void render(float deltaTime)
        +
        +
        Specified by:
        +
        render in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        update

        +
        public void update()
        +
      • +
      + + + +
        +
      • +

        inputUpdate

        +
        public void inputUpdate()
        +
      • +
      + + + +
        +
      • +

        resize

        +
        public void resize(int width,
        +                   int height)
        +
        +
        Specified by:
        +
        resize in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        pause

        +
        public void pause()
        +
        +
        Specified by:
        +
        pause in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        resume

        +
        public void resume()
        +
        +
        Specified by:
        +
        resume in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        hide

        +
        public void hide()
        +
        +
        Specified by:
        +
        hide in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        dispose

        +
        public void dispose()
        +
        +
        Specified by:
        +
        dispose in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        updateCamera

        +
        public void updateCamera()
        +
      • +
      + + + +
        +
      • +

        createEnemy

        +
        public com.badlogic.gdx.physics.box2d.Body createEnemy(int width,
        +                                                       int height,
        +                                                       boolean isStatic,
        +                                                       com.badlogic.gdx.math.Vector2 position)
        +
      • +
      + + + +
        +
      • +

        getWorld

        +
        public static com.badlogic.gdx.physics.box2d.World getWorld()
        +
      • +
      + + + +
        +
      • +

        add

        +
        public static void add(com.badlogic.gdx.math.Vector2 pp)
        +
      • +
      + + + +
        +
      • +

        collegeKilled

        +
        public static void collegeKilled()
        +
      • +
      + + + +
        +
      • +

        collegeCaptured

        +
        public static void collegeCaptured()
        +
        adds college captured to check for victory
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/InformationScreen.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/InformationScreen.html new file mode 100644 index 0000000..d9c724a --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/InformationScreen.html @@ -0,0 +1,430 @@ + + + + + +InformationScreen (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.screen.impl
+

Class InformationScreen

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.screen.impl.InformationScreen
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    com.badlogic.gdx.Screen
    +
    +
    +
    +
    public class InformationScreen
    +extends java.lang.Object
    +implements com.badlogic.gdx.Screen
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      com.badlogic.gdx.graphics.g2d.Spritebackground 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      InformationScreen() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voiddispose() 
      voidhide() 
      voidpause() 
      voidrender(float delta) 
      voidresize(int width, + int height) 
      voidresume() 
      voidshow() 
      voidtakeInput() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        background

        +
        public final com.badlogic.gdx.graphics.g2d.Sprite background
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        InformationScreen

        +
        public InformationScreen()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        show

        +
        public void show()
        +
        +
        Specified by:
        +
        show in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        render

        +
        public void render(float delta)
        +
        +
        Specified by:
        +
        render in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        resize

        +
        public void resize(int width,
        +                   int height)
        +
        +
        Specified by:
        +
        resize in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        pause

        +
        public void pause()
        +
        +
        Specified by:
        +
        pause in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        resume

        +
        public void resume()
        +
        +
        Specified by:
        +
        resume in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        hide

        +
        public void hide()
        +
        +
        Specified by:
        +
        hide in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        dispose

        +
        public void dispose()
        +
        +
        Specified by:
        +
        dispose in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        takeInput

        +
        public void takeInput()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/LoadingScreen.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/LoadingScreen.html new file mode 100644 index 0000000..908f7d6 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/LoadingScreen.html @@ -0,0 +1,433 @@ + + + + + +LoadingScreen (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.screen.impl
+

Class LoadingScreen

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.screen.impl.LoadingScreen
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    com.badlogic.gdx.Screen
    +
    +
    +
    +
    public class LoadingScreen
    +extends java.lang.Object
    +implements com.badlogic.gdx.Screen
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      LoadingScreen() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voiddispose() 
      voidhide() 
      voidpause() 
      voidrender(float delta) 
      voidresize(int width, + int height) 
      voidresume() 
      voidshow() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        soundController

        +
        public static SoundController soundController
        +
        the main screen
        +
      • +
      + + + +
        +
      • +

        background

        +
        public com.badlogic.gdx.graphics.g2d.Sprite background
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LoadingScreen

        +
        public LoadingScreen()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        show

        +
        public void show()
        +
        +
        Specified by:
        +
        show in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        render

        +
        public void render(float delta)
        +
        +
        Specified by:
        +
        render in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        resize

        +
        public void resize(int width,
        +                   int height)
        +
        +
        Specified by:
        +
        resize in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        pause

        +
        public void pause()
        +
        +
        Specified by:
        +
        pause in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        resume

        +
        public void resume()
        +
        +
        Specified by:
        +
        resume in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        hide

        +
        public void hide()
        +
        +
        Specified by:
        +
        hide in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        dispose

        +
        public void dispose()
        +
        +
        Specified by:
        +
        dispose in interface com.badlogic.gdx.Screen
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/PreferenceScreen.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/PreferenceScreen.html new file mode 100644 index 0000000..7907a61 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/PreferenceScreen.html @@ -0,0 +1,381 @@ + + + + + +PreferenceScreen (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.screen.impl
+

Class PreferenceScreen

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.screen.impl.PreferenceScreen
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    com.badlogic.gdx.Screen
    +
    +
    +
    +
    public class PreferenceScreen
    +extends java.lang.Object
    +implements com.badlogic.gdx.Screen
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PreferenceScreen() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voiddispose() 
      voidhide() 
      voidpause() 
      voidrender(float delta) 
      voidresize(int width, + int height) 
      voidresume() 
      voidshow() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PreferenceScreen

        +
        public PreferenceScreen()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        show

        +
        public void show()
        +
        +
        Specified by:
        +
        show in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        render

        +
        public void render(float delta)
        +
        +
        Specified by:
        +
        render in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        resize

        +
        public void resize(int width,
        +                   int height)
        +
        +
        Specified by:
        +
        resize in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        pause

        +
        public void pause()
        +
        +
        Specified by:
        +
        pause in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        resume

        +
        public void resume()
        +
        +
        Specified by:
        +
        resume in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        hide

        +
        public void hide()
        +
        +
        Specified by:
        +
        hide in interface com.badlogic.gdx.Screen
        +
        +
      • +
      + + + +
        +
      • +

        dispose

        +
        public void dispose()
        +
        +
        Specified by:
        +
        dispose in interface com.badlogic.gdx.Screen
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/package-frame.html new file mode 100644 index 0000000..3c04f2f --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/package-frame.html @@ -0,0 +1,23 @@ + + + + + +net.shipsandgiggles.pirate.screen.impl (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.screen.impl

+ + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/package-summary.html new file mode 100644 index 0000000..a4fc52a --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/package-summary.html @@ -0,0 +1,155 @@ + + + + + +net.shipsandgiggles.pirate.screen.impl (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.screen.impl

+
+
+ +
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/package-tree.html new file mode 100644 index 0000000..ffef950 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/impl/package-tree.html @@ -0,0 +1,138 @@ + + + + + +net.shipsandgiggles.pirate.screen.impl Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.screen.impl

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • net.shipsandgiggles.pirate.screen.impl.DeathScreen
    • +
    • net.shipsandgiggles.pirate.screen.impl.GameScreen (implements com.badlogic.gdx.Screen)
    • +
    • net.shipsandgiggles.pirate.screen.impl.InformationScreen (implements com.badlogic.gdx.Screen)
    • +
    • net.shipsandgiggles.pirate.screen.impl.LoadingScreen (implements com.badlogic.gdx.Screen)
    • +
    • net.shipsandgiggles.pirate.screen.impl.PreferenceScreen (implements com.badlogic.gdx.Screen)
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/package-frame.html new file mode 100644 index 0000000..102da1e --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/package-frame.html @@ -0,0 +1,19 @@ + + + + + +net.shipsandgiggles.pirate.screen (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.screen

+
+

Enums

+ +
+ + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/package-summary.html new file mode 100644 index 0000000..e9378f3 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/package-summary.html @@ -0,0 +1,139 @@ + + + + + +net.shipsandgiggles.pirate.screen (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.screen

+
+
+
    +
  • + + + + + + + + + + + + +
    Enum Summary 
    EnumDescription
    ScreenType 
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/screen/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/package-tree.html new file mode 100644 index 0000000..5fa5841 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/screen/package-tree.html @@ -0,0 +1,138 @@ + + + + + +net.shipsandgiggles.pirate.screen Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.screen

+Package Hierarchies: + +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/task/ChangeScreenTask.html b/javadoc/javadoc/net/shipsandgiggles/pirate/task/ChangeScreenTask.html new file mode 100644 index 0000000..6cbb5f0 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/task/ChangeScreenTask.html @@ -0,0 +1,290 @@ + + + + + +ChangeScreenTask (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.task
+

Class ChangeScreenTask

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.badlogic.gdx.utils.Timer.Task
    • +
    • +
        +
      • net.shipsandgiggles.pirate.task.ChangeScreenTask
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class ChangeScreenTask
    +extends com.badlogic.gdx.utils.Timer.Task
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidrun() 
      +
        +
      • + + +

        Methods inherited from class com.badlogic.gdx.utils.Timer.Task

        +cancel, getExecuteTimeMillis, isScheduled
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChangeScreenTask

        +
        public ChangeScreenTask(ScreenType screenType)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        Specified by:
        +
        run in class com.badlogic.gdx.utils.Timer.Task
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/task/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/task/package-frame.html new file mode 100644 index 0000000..e665eae --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/task/package-frame.html @@ -0,0 +1,19 @@ + + + + + +net.shipsandgiggles.pirate.task (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.task

+
+

Classes

+ +
+ + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/task/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/task/package-summary.html new file mode 100644 index 0000000..25dbf5c --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/task/package-summary.html @@ -0,0 +1,139 @@ + + + + + +net.shipsandgiggles.pirate.task (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.task

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    ChangeScreenTask 
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/task/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/task/package-tree.html new file mode 100644 index 0000000..c2ebba2 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/task/package-tree.html @@ -0,0 +1,138 @@ + + + + + +net.shipsandgiggles.pirate.task Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.task

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.badlogic.gdx.utils.Timer.Task (implements java.lang.Runnable) + +
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/util/Preconditions.html b/javadoc/javadoc/net/shipsandgiggles/pirate/util/Preconditions.html new file mode 100644 index 0000000..6be4e2b --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/util/Preconditions.html @@ -0,0 +1,294 @@ + + + + + +Preconditions (core 1.0 API) + + + + + + + + + + + +
+
net.shipsandgiggles.pirate.util
+

Class Preconditions

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • net.shipsandgiggles.pirate.util.Preconditions
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Preconditions
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Preconditions() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static <T> voidcheckArgument(java.util.function.Predicate<T> test, + java.lang.String error, + T value) 
      static <T> voidcheckNotNull(T value, + java.lang.String error) +
      preconditions for the game to check if its null or not
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Preconditions

        +
        public Preconditions()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        checkNotNull

        +
        public static <T> void checkNotNull(T value,
        +                                    java.lang.String error)
        +
        preconditions for the game to check if its null or not
        +
      • +
      + + + + + +
        +
      • +

        checkArgument

        +
        public static <T> void checkArgument(java.util.function.Predicate<T> test,
        +                                     java.lang.String error,
        +                                     T value)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/util/package-frame.html b/javadoc/javadoc/net/shipsandgiggles/pirate/util/package-frame.html new file mode 100644 index 0000000..1958113 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/util/package-frame.html @@ -0,0 +1,19 @@ + + + + + +net.shipsandgiggles.pirate.util (core 1.0 API) + + + + +

net.shipsandgiggles.pirate.util

+
+

Classes

+ +
+ + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/util/package-summary.html b/javadoc/javadoc/net/shipsandgiggles/pirate/util/package-summary.html new file mode 100644 index 0000000..a903bd7 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/util/package-summary.html @@ -0,0 +1,139 @@ + + + + + +net.shipsandgiggles.pirate.util (core 1.0 API) + + + + + + + + + + +
+

Package net.shipsandgiggles.pirate.util

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    Preconditions 
    +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/net/shipsandgiggles/pirate/util/package-tree.html b/javadoc/javadoc/net/shipsandgiggles/pirate/util/package-tree.html new file mode 100644 index 0000000..bedbf90 --- /dev/null +++ b/javadoc/javadoc/net/shipsandgiggles/pirate/util/package-tree.html @@ -0,0 +1,134 @@ + + + + + +net.shipsandgiggles.pirate.util Class Hierarchy (core 1.0 API) + + + + + + + + + + +
+

Hierarchy For Package net.shipsandgiggles.pirate.util

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/javadoc/javadoc/overview-frame.html b/javadoc/javadoc/overview-frame.html new file mode 100644 index 0000000..827bb56 --- /dev/null +++ b/javadoc/javadoc/overview-frame.html @@ -0,0 +1,32 @@ + + + + + +Overview List (core 1.0 API) + + + + + + +

 

+ + diff --git a/javadoc/javadoc/overview-summary.html b/javadoc/javadoc/overview-summary.html new file mode 100644 index 0000000..805eb76 --- /dev/null +++ b/javadoc/javadoc/overview-summary.html @@ -0,0 +1,183 @@ + + + + + +Overview (core 1.0 API) + + + + + + + +
+ + + + + + + +
+ + +
+

core 1.0 API

+
+ + +
+ + + + + + + +
+ + + + diff --git a/javadoc/javadoc/overview-tree.html b/javadoc/javadoc/overview-tree.html new file mode 100644 index 0000000..22a4ee6 --- /dev/null +++ b/javadoc/javadoc/overview-tree.html @@ -0,0 +1,207 @@ + + + + + +Class Hierarchy (core 1.0 API) + + + + + + + +
+ + + + + + + +
+ + + +
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • net.shipsandgiggles.pirate.entity.BallsManager
    • +
    • net.shipsandgiggles.pirate.cache.Cache<K,V>
    • +
    • net.shipsandgiggles.pirate.CameraManager
    • +
    • net.shipsandgiggles.pirate.entity.CannonBall
    • +
    • net.shipsandgiggles.pirate.conf.Configuration
    • +
    • net.shipsandgiggles.pirate.currency.Currency
    • +
    • net.shipsandgiggles.pirate.screen.impl.DeathScreen
    • +
    • net.shipsandgiggles.pirate.entity.Entity + +
    • +
    • net.shipsandgiggles.pirate.entity.EntityAi (implements com.badlogic.gdx.ai.steer.Steerable<T>)
    • +
    • net.shipsandgiggles.pirate.ExplosionController
    • +
    • com.badlogic.gdx.Game (implements com.badlogic.gdx.ApplicationListener) + +
    • +
    • net.shipsandgiggles.pirate.pref.GamePreferences
    • +
    • net.shipsandgiggles.pirate.screen.impl.GameScreen (implements com.badlogic.gdx.Screen)
    • +
    • net.shipsandgiggles.pirate.HUDmanager
    • +
    • net.shipsandgiggles.pirate.screen.impl.InformationScreen (implements com.badlogic.gdx.Screen)
    • +
    • net.shipsandgiggles.pirate.screen.impl.LoadingScreen (implements com.badlogic.gdx.Screen)
    • +
    • net.shipsandgiggles.pirate.entity.Location
    • +
    • net.shipsandgiggles.pirate.util.Preconditions
    • +
    • net.shipsandgiggles.pirate.screen.impl.PreferenceScreen (implements com.badlogic.gdx.Screen)
    • +
    • net.shipsandgiggles.pirate.SoundController
    • +
    • net.shipsandgiggles.pirate.TiledObjectUtil
    • +
    • com.badlogic.gdx.utils.Timer.Task (implements java.lang.Runnable) + +
    • +
    • net.shipsandgiggles.pirate.listener.WorldContactListener (implements com.badlogic.gdx.physics.box2d.ContactListener)
    • +
    +
  • +
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+ +
+ + + + + + + +
+ + + + diff --git a/javadoc/javadoc/package-list b/javadoc/javadoc/package-list new file mode 100644 index 0000000..659befd --- /dev/null +++ b/javadoc/javadoc/package-list @@ -0,0 +1,13 @@ +net.shipsandgiggles.pirate +net.shipsandgiggles.pirate.cache +net.shipsandgiggles.pirate.conf +net.shipsandgiggles.pirate.currency +net.shipsandgiggles.pirate.entity +net.shipsandgiggles.pirate.entity.college +net.shipsandgiggles.pirate.entity.impl.college +net.shipsandgiggles.pirate.listener +net.shipsandgiggles.pirate.pref +net.shipsandgiggles.pirate.screen +net.shipsandgiggles.pirate.screen.impl +net.shipsandgiggles.pirate.task +net.shipsandgiggles.pirate.util diff --git a/javadoc/javadoc/script.js b/javadoc/javadoc/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/javadoc/javadoc/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/javadoc/javadoc/stylesheet.css b/javadoc/javadoc/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/javadoc/javadoc/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/settings.gradle b/settings.gradle index 74fc652..10c177c 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include 'desktop', 'core' \ No newline at end of file +include 'desktop', 'ios', 'html', 'core' \ No newline at end of file