From 45bf6fa43f607f82a483584a33b151261a874c33 Mon Sep 17 00:00:00 2001 From: wpw503 Date: Tue, 9 Feb 2021 16:05:06 +0000 Subject: [PATCH] javadoc --- .../dragonboatrace/screens/RoundsScreen.java | 1 + docs/allclasses-frame.html | 4 +- docs/allclasses-noframe.html | 4 +- docs/com/dragonboatrace/AssetTest.html | 423 +++++++++--------- docs/com/dragonboatrace/DragonBoatRace.html | 4 +- .../dragonboatrace/DragonBoatRaceTest.html | 82 +++- docs/com/dragonboatrace/SaveLoadTest.html | 20 +- .../dragonboatrace/class-use/AssetTest.html | 4 +- .../class-use/DragonBoatRace.html | 4 +- .../class-use/DragonBoatRaceTest.html | 4 +- .../class-use/SaveLoadTest.html | 4 +- .../desktop/DesktopLauncher.html | 4 +- .../desktop/class-use/DesktopLauncher.html | 4 +- .../dragonboatrace/desktop/package-frame.html | 4 +- .../desktop/package-summary.html | 4 +- .../dragonboatrace/desktop/package-tree.html | 4 +- .../dragonboatrace/desktop/package-use.html | 4 +- docs/com/dragonboatrace/entities/Button.html | 4 +- .../dragonboatrace/entities/ButtonTest.html | 18 +- docs/com/dragonboatrace/entities/Entity.html | 4 +- .../dragonboatrace/entities/EntityType.html | 4 +- .../dragonboatrace/entities/FinishLine.html | 4 +- .../dragonboatrace/entities/MovementTest.html | 12 +- .../com/dragonboatrace/entities/Obstacle.html | 4 +- .../dragonboatrace/entities/ObstacleType.html | 4 +- .../dragonboatrace/entities/PowerUpTest.html | 9 +- .../dragonboatrace/entities/boats/Boat.html | 31 +- .../entities/boats/BoatObstacleTest.html | 39 +- .../entities/boats/BoatType.html | 4 +- .../entities/boats/BoatTypeTest.html | 36 +- .../entities/boats/ComputerBoat.html | 6 +- .../entities/boats/PlayerBoat.html | 6 +- .../entities/boats/class-use/Boat.html | 4 +- .../boats/class-use/BoatObstacleTest.html | 4 +- .../entities/boats/class-use/BoatType.html | 4 +- .../boats/class-use/BoatTypeTest.html | 4 +- .../boats/class-use/ComputerBoat.html | 4 +- .../entities/boats/class-use/PlayerBoat.html | 4 +- .../entities/boats/package-frame.html | 4 +- .../entities/boats/package-summary.html | 12 +- .../entities/boats/package-tree.html | 4 +- .../entities/boats/package-use.html | 4 +- .../entities/class-use/Button.html | 4 +- .../entities/class-use/ButtonTest.html | 4 +- .../entities/class-use/Entity.html | 4 +- .../entities/class-use/EntityType.html | 4 +- .../entities/class-use/FinishLine.html | 4 +- .../entities/class-use/MovementTest.html | 4 +- .../entities/class-use/Obstacle.html | 4 +- .../entities/class-use/ObstacleType.html | 4 +- .../entities/class-use/PowerUpTest.html | 4 +- .../entities/package-frame.html | 4 +- .../entities/package-summary.html | 16 +- .../dragonboatrace/entities/package-tree.html | 6 +- .../dragonboatrace/entities/package-use.html | 4 +- docs/com/dragonboatrace/package-frame.html | 4 +- docs/com/dragonboatrace/package-summary.html | 16 +- docs/com/dragonboatrace/package-tree.html | 4 +- docs/com/dragonboatrace/package-use.html | 4 +- .../screens/BoatSelectScreen.html | 4 +- .../screens/DifficultySelectScreen.html | 4 +- .../dragonboatrace/screens/FinalScreen.html | 4 +- .../screens/GameOverScreen.html | 4 +- .../dragonboatrace/screens/HelpScreen.html | 4 +- .../screens/MainGamePauseScreen.html | 4 +- .../screens/MainGameScreen.html | 4 +- .../screens/MainMenuScreen.html | 4 +- .../dragonboatrace/screens/RoundsScreen.html | 72 ++- .../screens/RoundsScreenTest.html | 18 +- .../screens/class-use/BoatSelectScreen.html | 4 +- .../class-use/DifficultySelectScreen.html | 4 +- .../screens/class-use/FinalScreen.html | 4 +- .../screens/class-use/GameOverScreen.html | 4 +- .../screens/class-use/HelpScreen.html | 4 +- .../class-use/MainGamePauseScreen.html | 4 +- .../screens/class-use/MainGameScreen.html | 4 +- .../screens/class-use/MainMenuScreen.html | 4 +- .../screens/class-use/RoundsScreen.html | 4 +- .../screens/class-use/RoundsScreenTest.html | 4 +- .../dragonboatrace/screens/package-frame.html | 4 +- .../screens/package-summary.html | 8 +- .../dragonboatrace/screens/package-tree.html | 4 +- .../dragonboatrace/screens/package-use.html | 4 +- .../dragonboatrace/tools/Configuration.html | 4 +- .../tools/ConfigurationTest.html | 73 +-- docs/com/dragonboatrace/tools/Hitbox.html | 4 +- docs/com/dragonboatrace/tools/HitboxTest.html | 93 ++-- docs/com/dragonboatrace/tools/Lane.html | 4 +- docs/com/dragonboatrace/tools/LaneTest.html | 21 +- docs/com/dragonboatrace/tools/Race.html | 4 +- .../tools/ScrollingBackground.html | 4 +- .../tools/ScrollingBackgroundTest.html | 57 ++- .../tools/class-use/Configuration.html | 4 +- .../tools/class-use/ConfigurationTest.html | 4 +- .../tools/class-use/Hitbox.html | 4 +- .../tools/class-use/HitboxTest.html | 4 +- .../dragonboatrace/tools/class-use/Lane.html | 4 +- .../tools/class-use/LaneTest.html | 4 +- .../dragonboatrace/tools/class-use/Race.html | 4 +- .../tools/class-use/ScrollingBackground.html | 4 +- .../class-use/ScrollingBackgroundTest.html | 4 +- .../dragonboatrace/tools/package-frame.html | 4 +- .../dragonboatrace/tools/package-summary.html | 21 +- .../dragonboatrace/tools/package-tree.html | 4 +- .../com/dragonboatrace/tools/package-use.html | 4 +- docs/constant-values.html | 4 +- .../de/tomgrill/gdxtesting/GdxTestRunner.html | 4 +- docs/de/tomgrill/gdxtesting/MockGraphics.html | 4 +- .../gdxtesting/class-use/GdxTestRunner.html | 4 +- .../gdxtesting/class-use/MockGraphics.html | 4 +- .../de/tomgrill/gdxtesting/package-frame.html | 4 +- .../tomgrill/gdxtesting/package-summary.html | 4 +- docs/de/tomgrill/gdxtesting/package-tree.html | 4 +- docs/de/tomgrill/gdxtesting/package-use.html | 4 +- docs/deprecated-list.html | 4 +- docs/help-doc.html | 4 +- docs/index-files/index-1.html | 26 +- docs/index-files/index-10.html | 54 +-- docs/index-files/index-11.html | 65 +-- docs/index-files/index-12.html | 72 ++- docs/index-files/index-13.html | 50 +-- docs/index-files/index-14.html | 76 +--- docs/index-files/index-15.html | 206 ++------- docs/index-files/index-16.html | 245 +++++----- docs/index-files/index-17.html | 188 +++++++- docs/index-files/index-18.html | 68 +-- docs/index-files/index-19.html | 73 +-- docs/index-files/index-2.html | 36 +- docs/index-files/index-20.html | 53 ++- docs/index-files/index-21.html | 131 ++++++ docs/index-files/index-3.html | 26 +- docs/index-files/index-4.html | 16 +- docs/index-files/index-5.html | 28 +- docs/index-files/index-6.html | 24 +- docs/index-files/index-7.html | 46 +- docs/index-files/index-8.html | 26 +- docs/index-files/index-9.html | 18 +- docs/index.html | 2 +- docs/overview-frame.html | 4 +- docs/overview-summary.html | 4 +- docs/overview-tree.html | 4 +- .../dragonboatrace/DragonBoatRaceTest.java | 16 +- .../tools/ScrollingBackgroundTest.java | 8 +- 143 files changed, 1781 insertions(+), 1248 deletions(-) create mode 100644 docs/index-files/index-21.html diff --git a/core/src/main/java/com/dragonboatrace/screens/RoundsScreen.java b/core/src/main/java/com/dragonboatrace/screens/RoundsScreen.java index 05de871..e849927 100644 --- a/core/src/main/java/com/dragonboatrace/screens/RoundsScreen.java +++ b/core/src/main/java/com/dragonboatrace/screens/RoundsScreen.java @@ -193,6 +193,7 @@ public void saveGame(){ /** * Created to allow testing without rendering + * @return the leaderboard string */ public String getReason() { return reason; diff --git a/docs/allclasses-frame.html b/docs/allclasses-frame.html index dead0f3..d07a3cd 100644 --- a/docs/allclasses-frame.html +++ b/docs/allclasses-frame.html @@ -2,9 +2,9 @@ - + All Classes - + diff --git a/docs/allclasses-noframe.html b/docs/allclasses-noframe.html index 8762fff..3583b90 100644 --- a/docs/allclasses-noframe.html +++ b/docs/allclasses-noframe.html @@ -2,9 +2,9 @@ - + All Classes - + diff --git a/docs/com/dragonboatrace/AssetTest.html b/docs/com/dragonboatrace/AssetTest.html index 9c00421..8227c22 100644 --- a/docs/com/dragonboatrace/AssetTest.html +++ b/docs/com/dragonboatrace/AssetTest.html @@ -2,9 +2,9 @@ - + AssetTest - + @@ -111,6 +111,9 @@

Class AssetTest


public class AssetTest
 extends java.lang.Object
+
TUA_ASSETS - Check all assets exist and are in the correct place. + + All required assets should be in the assets directory and named according ot the design.
@@ -148,211 +151,211 @@

Method Summary

void -agileButtonActiveExists()  +agileButtonActiveExistsTest()  void -agileButtonInactiveExists()  +agileButtonInactiveExistsTest()  void -agileExists()  +agileExistsTest()  void -agilityPowerUpExists()  +agilityPowerUpExistsTest()  void -allPowerUpExists()  +allPowerUpExistsTest()  void -backButtonActiveExists()  +backButtonActiveExistsTest()  void -backButtonInactiveExists()  +backButtonInactiveExistsTest()  void -backgroundExists()  +backgroundExistsTest()  void -branchExists()  +branchExistsTest()  void -downArrowExists()  +downArrowExistsTest()  void -dragonExists()  +dragonExistsTest()  void -easyButtonActiveExists()  +easyButtonActiveExistsTest()  void -easyButtonInactiveExists()  +easyButtonInactiveExistsTest()  void -easyExists()  +easyExistsTest()  void -enduranceButtonActiveExists()  +enduranceButtonActiveExistsTest()  void -enduranceButtonInactiveExists()  +enduranceButtonInactiveExistsTest()  void -enduranceExists()  +enduranceExistsTest()  void -exitButtonActiveExists()  +exitButtonActiveExistsTest()  void -exitButtonInactiveExists()  +exitButtonInactiveExistsTest()  void -fastButtonActiveExists()  +fastButtonActiveExistsTest()  void -fastButtonInactiveExists()  +fastButtonInactiveExistsTest()  void -fastExists()  +fastExistsTest()  void -finishExists()  +finishExistsTest()  void -hardButtonActiveExists()  +hardButtonActiveExistsTest()  void -hardButtonInactiveExists()  +hardButtonInactiveExistsTest()  void -hardExists()  +hardExistsTest()  void -healthPowerUpExists()  +healthPowerUpExistsTest()  void -helpButtonActiveExists()  +helpButtonActiveExistsTest()  void -helpButtonInactiveExists()  +helpButtonInactiveExistsTest()  void -helpScreenInfoExists()  +helpScreenInfoExistsTest()  void -leafExists()  +leafExistsTest()  void -lineExists()  +lineExistsTest()  void -loadButtonActiveExists()  +loadButtonActiveExistsTest()  void -loadButtonInactiveExists()  +loadButtonInactiveExistsTest()  void -nightmareButtonActiveExists()  +nightmareButtonActiveExistsTest()  void -nightmareButtonInactiveExists()  +nightmareButtonInactiveExistsTest()  void -nightmareExists()  +nightmareExistsTest()  void -normalButtonActiveExists()  +normalButtonActiveExistsTest()  void -normalButtonInactiveExists()  +normalButtonInactiveExistsTest()  void -normalExists()  +normalExistsTest()  void -playButtonActiveExists()  +playButtonActiveExistsTest()  void -playButtonInactiveExists()  +playButtonInactiveExistsTest()  void -rockExists()  +rockExistsTest()  void -settingsButtonActiveExists()  +settingsButtonActiveExistsTest()  void -settingsButtonInactiveExists()  +settingsButtonInactiveExistsTest()  void -speedPowerUpExists()  +speedPowerUpExistsTest()  void -staminaPowerUpExists()  +staminaPowerUpExistsTest()  void -strongButtonActiveExists()  +strongButtonActiveExistsTest()  void -strongButtonInactiveExists()  +strongButtonInactiveExistsTest()  void -strongExists()  +strongExistsTest()  void -testTextureExists()  +textureExistsTest()  void -upArrowExists()  +upArrowExistsTest()  @@ -148,7 +149,27 @@

Method Summary

void -testTesting()  +finishLineTest() +
TI_FINISH_LINE - Check that the game finishes a round when the boat passes the finish line.
+ + + +void +joinFinalTest() +
TI_FINAL - Check the game correctly determines if you should be in the final or not.
+ + + +void +resultPositionTest() +
TI_RESULT_POSITIONS - Check the game gives awards to the correct boats at the end of the final race.
+ + + +void +testingFrameworkInitialTest() +
TUA_FRAMEWORK_TEST - Make sure the unit test framework is running and accurate.
+ @@ -148,11 +150,15 @@

Method Summary

void -invalidFileTest()  +invalidFileTest() +
TU_INVALID_SAVE - Check the game correctly identifies an invalid save.
+ void -saveLoadTest()  +saveLoadTest() +
TI_LOAD_SAVE - Check the state of the game is the same as the savefile when the user loads a savefile.
+ @@ -209,6 +218,9 @@

saveLoadTest

  • invalidFileTest

    public void invalidFileTest()
    +
    TU_INVALID_SAVE - Check the game correctly identifies an invalid save. + + The game should do nothing if the load button is pressed for an invalid save.
  • diff --git a/docs/com/dragonboatrace/class-use/AssetTest.html b/docs/com/dragonboatrace/class-use/AssetTest.html index 278750c..6842d44 100644 --- a/docs/com/dragonboatrace/class-use/AssetTest.html +++ b/docs/com/dragonboatrace/class-use/AssetTest.html @@ -2,9 +2,9 @@ - + Uses of Class com.dragonboatrace.AssetTest - + diff --git a/docs/com/dragonboatrace/class-use/DragonBoatRace.html b/docs/com/dragonboatrace/class-use/DragonBoatRace.html index 58578c0..396a37e 100644 --- a/docs/com/dragonboatrace/class-use/DragonBoatRace.html +++ b/docs/com/dragonboatrace/class-use/DragonBoatRace.html @@ -2,9 +2,9 @@ - + Uses of Class com.dragonboatrace.DragonBoatRace - + diff --git a/docs/com/dragonboatrace/class-use/DragonBoatRaceTest.html b/docs/com/dragonboatrace/class-use/DragonBoatRaceTest.html index 375c11c..717b533 100644 --- a/docs/com/dragonboatrace/class-use/DragonBoatRaceTest.html +++ b/docs/com/dragonboatrace/class-use/DragonBoatRaceTest.html @@ -2,9 +2,9 @@ - + Uses of Class com.dragonboatrace.DragonBoatRaceTest - + diff --git a/docs/com/dragonboatrace/class-use/SaveLoadTest.html b/docs/com/dragonboatrace/class-use/SaveLoadTest.html index 30f5a9d..9d894fc 100644 --- a/docs/com/dragonboatrace/class-use/SaveLoadTest.html +++ b/docs/com/dragonboatrace/class-use/SaveLoadTest.html @@ -2,9 +2,9 @@ - + Uses of Class com.dragonboatrace.SaveLoadTest - + diff --git a/docs/com/dragonboatrace/desktop/DesktopLauncher.html b/docs/com/dragonboatrace/desktop/DesktopLauncher.html index f1f0236..0da5dd4 100644 --- a/docs/com/dragonboatrace/desktop/DesktopLauncher.html +++ b/docs/com/dragonboatrace/desktop/DesktopLauncher.html @@ -2,9 +2,9 @@ - + DesktopLauncher - + diff --git a/docs/com/dragonboatrace/desktop/class-use/DesktopLauncher.html b/docs/com/dragonboatrace/desktop/class-use/DesktopLauncher.html index fe35115..1791609 100644 --- a/docs/com/dragonboatrace/desktop/class-use/DesktopLauncher.html +++ b/docs/com/dragonboatrace/desktop/class-use/DesktopLauncher.html @@ -2,9 +2,9 @@ - + Uses of Class com.dragonboatrace.desktop.DesktopLauncher - + diff --git a/docs/com/dragonboatrace/desktop/package-frame.html b/docs/com/dragonboatrace/desktop/package-frame.html index 6f18894..c64891a 100644 --- a/docs/com/dragonboatrace/desktop/package-frame.html +++ b/docs/com/dragonboatrace/desktop/package-frame.html @@ -2,9 +2,9 @@ - + com.dragonboatrace.desktop - + diff --git a/docs/com/dragonboatrace/desktop/package-summary.html b/docs/com/dragonboatrace/desktop/package-summary.html index 5d5faf5..b00c470 100644 --- a/docs/com/dragonboatrace/desktop/package-summary.html +++ b/docs/com/dragonboatrace/desktop/package-summary.html @@ -2,9 +2,9 @@ - + com.dragonboatrace.desktop - + diff --git a/docs/com/dragonboatrace/desktop/package-tree.html b/docs/com/dragonboatrace/desktop/package-tree.html index 2c300c9..0a0223a 100644 --- a/docs/com/dragonboatrace/desktop/package-tree.html +++ b/docs/com/dragonboatrace/desktop/package-tree.html @@ -2,9 +2,9 @@ - + com.dragonboatrace.desktop Class Hierarchy - + diff --git a/docs/com/dragonboatrace/desktop/package-use.html b/docs/com/dragonboatrace/desktop/package-use.html index 50227f9..41340e7 100644 --- a/docs/com/dragonboatrace/desktop/package-use.html +++ b/docs/com/dragonboatrace/desktop/package-use.html @@ -2,9 +2,9 @@ - + Uses of Package com.dragonboatrace.desktop - + diff --git a/docs/com/dragonboatrace/entities/Button.html b/docs/com/dragonboatrace/entities/Button.html index 8e967cd..7085956 100644 --- a/docs/com/dragonboatrace/entities/Button.html +++ b/docs/com/dragonboatrace/entities/Button.html @@ -2,9 +2,9 @@ - + Button - + diff --git a/docs/com/dragonboatrace/entities/ButtonTest.html b/docs/com/dragonboatrace/entities/ButtonTest.html index 330cd48..933b8f3 100644 --- a/docs/com/dragonboatrace/entities/ButtonTest.html +++ b/docs/com/dragonboatrace/entities/ButtonTest.html @@ -2,9 +2,9 @@ - + ButtonTest - + @@ -111,6 +111,7 @@

    Class ButtonTest


    public class ButtonTest
     extends java.lang.Object
    +
    TU_BUTTON_HOVER - Tests to check that the Button isHovering() method is accurate.
    @@ -148,7 +149,9 @@

    Method Summary

    void -
    isHovering()  +isHoveringTest() +
    Test to check that the Button isHovering() method is accurate.
    + @@ -148,7 +149,9 @@

    Method Summary

    void -boatMovementTest()  +boatMovementTest() +
    TI_ENTITY_MOVEMENT - Check that entities move the expected amount.
    + diff --git a/docs/com/dragonboatrace/entities/Obstacle.html b/docs/com/dragonboatrace/entities/Obstacle.html index 03c0de6..41f2751 100644 --- a/docs/com/dragonboatrace/entities/Obstacle.html +++ b/docs/com/dragonboatrace/entities/Obstacle.html @@ -2,9 +2,9 @@ - + Obstacle - + diff --git a/docs/com/dragonboatrace/entities/ObstacleType.html b/docs/com/dragonboatrace/entities/ObstacleType.html index 34d9c00..c9a38f2 100644 --- a/docs/com/dragonboatrace/entities/ObstacleType.html +++ b/docs/com/dragonboatrace/entities/ObstacleType.html @@ -2,9 +2,9 @@ - + ObstacleType - + diff --git a/docs/com/dragonboatrace/entities/PowerUpTest.html b/docs/com/dragonboatrace/entities/PowerUpTest.html index dccffe3..41c5360 100644 --- a/docs/com/dragonboatrace/entities/PowerUpTest.html +++ b/docs/com/dragonboatrace/entities/PowerUpTest.html @@ -2,9 +2,9 @@ - + PowerUpTest - + @@ -111,6 +111,11 @@

    Class PowerUpTest


    public class PowerUpTest
     extends java.lang.Object
    +
    TI_BOAT_POWERUP - Check that all the powerups function. + + Instantiate Obstacles for each powerup to ensure they are correctly created and check their attributes for effecting + health, speed, agility and stamina for boats. Also test if Powerup's affect attributes of boat when a boat collides + with a powerup.
    diff --git a/docs/com/dragonboatrace/entities/boats/Boat.html b/docs/com/dragonboatrace/entities/boats/Boat.html index bff3051..6813f9e 100644 --- a/docs/com/dragonboatrace/entities/boats/Boat.html +++ b/docs/com/dragonboatrace/entities/boats/Boat.html @@ -2,9 +2,9 @@ - + Boat - + @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -414,36 +414,40 @@

    Method Summary

    void +setDistanceTravelled(int distance)  + + +void setTime(float nowTime)
    Set the boat time
    - + void setTotalTime(float nowTime)
    Set the total boat time.
    - + void update(float deltaTime)
    Update the position of the boat in relation to the amount of time passed.
    - + void updateYPosition(int lineHeight, int raceDistance)
    Update the vertical position of the boat onscreen.
    - + protected float useStamina()
    Get the amount of stamina to use for the current amount of stamina.
    - + protected float velocityPercentage()
    Return a scalar to multiply the velocity by when using stamina.
    @@ -1038,7 +1042,7 @@

    getDistanceTravelled

    - diff --git a/docs/com/dragonboatrace/entities/boats/BoatObstacleTest.html b/docs/com/dragonboatrace/entities/boats/BoatObstacleTest.html index ca6dee8..1befc26 100644 --- a/docs/com/dragonboatrace/entities/boats/BoatObstacleTest.html +++ b/docs/com/dragonboatrace/entities/boats/BoatObstacleTest.html @@ -2,9 +2,9 @@ - + BoatObstacleTest - + @@ -111,6 +111,10 @@

    Class BoatObstacleTest


    public class BoatObstacleTest
     extends java.lang.Object
    +
    TI_BOAT_DAMAGE - Check that the boat takes damage when hitting an obstacle. + TI_BOAT_BREAKING - Check the boat breaks when it has 0 health. + TI_BOAT_STAMINA - Check that moving reduces stamina. + TI_NEW_BOAT - Check that when new boat is created with a BoatType, the correct attributes are assigned.
    @@ -148,19 +152,27 @@

    Method Summary

    void -collisionTest()  +collisionTest() +
    TI_BOAT_DAMAGE - Check that the boat takes damage when hitting an obstacle.
    + void -creationAttributeTest()  +creationAttributeTest() +
    TI_NEW_BOAT - Check that when new boat is created with a BoatType, the correct attributes are assigned.
    + void -gameOverTest()  +gameOverTest() +
    TI_BOAT_BREAKING - Check the boat breaks when it has 0 health.
    + void -staminaUsageTest()  +staminaUsageTest() +
    TI_BOAT_STAMINA - Check that moving reduces stamina.
    + @@ -217,6 +235,9 @@

    creationAttributeTest

  • staminaUsageTest

    public void staminaUsageTest()
    +
    TI_BOAT_STAMINA - Check that moving reduces stamina. + + After moving, the stamina of a boat should always be less than before it moved unless the boat has had time to rest.
  • @@ -226,6 +247,9 @@

    staminaUsageTest

  • collisionTest

    public void collisionTest()
    +
    TI_BOAT_DAMAGE - Check that the boat takes damage when hitting an obstacle. + + The boat takes health is less after hitting an obstacle.
  • @@ -235,6 +259,9 @@

    collisionTest

  • gameOverTest

    public void gameOverTest()
    +
    TI_BOAT_BREAKING - Check the boat breaks when it has 0 health. + + The boat gives a game over screen when it has 0 health.
  • diff --git a/docs/com/dragonboatrace/entities/boats/BoatType.html b/docs/com/dragonboatrace/entities/boats/BoatType.html index a641bf8..f99c7c3 100644 --- a/docs/com/dragonboatrace/entities/boats/BoatType.html +++ b/docs/com/dragonboatrace/entities/boats/BoatType.html @@ -2,9 +2,9 @@ - + BoatType - + diff --git a/docs/com/dragonboatrace/entities/boats/BoatTypeTest.html b/docs/com/dragonboatrace/entities/boats/BoatTypeTest.html index 3c58577..4ceb53e 100644 --- a/docs/com/dragonboatrace/entities/boats/BoatTypeTest.html +++ b/docs/com/dragonboatrace/entities/boats/BoatTypeTest.html @@ -2,9 +2,9 @@ - + BoatTypeTest - + @@ -111,6 +111,7 @@

    Class BoatTypeTest


    public class BoatTypeTest
     extends java.lang.Object
    +
    TUA_BOAT_TYPE - Tests to check all boat type variables are initialised to the correct values.
    @@ -148,23 +149,33 @@

    Method Summary

    void -
    agileBoatTypeTest()  +agileBoatTypeTest() +
    Check attribute values of this boat type are correctly stored in the Enum.
    + void -enduranceBoatTypeTest()  +enduranceBoatTypeTest() +
    Check attribute values of this boat type are correctly stored in the Enum.
    + void -fastBoatTypeTest()  +fastBoatTypeTest() +
    Check attribute values of this boat type are correctly stored in the Enum.
    + void -getSaveString()  +getSaveStringTest() +
    Initial test to check save string returned for each boat type is as expected.
    + void -strongBoatTypeTest()  +strongBoatTypeTest() +
    Check attribute values of this boat type are correctly stored in the Enum.
    + @@ -230,6 +243,7 @@

    fastBoatTypeTest

  • agileBoatTypeTest

    public void agileBoatTypeTest()
    +
    Check attribute values of this boat type are correctly stored in the Enum.
  • @@ -239,6 +253,7 @@

    agileBoatTypeTest

  • enduranceBoatTypeTest

    public void enduranceBoatTypeTest()
    +
    Check attribute values of this boat type are correctly stored in the Enum.
  • @@ -248,6 +263,7 @@

    enduranceBoatTypeTest

  • strongBoatTypeTest

    public void strongBoatTypeTest()
    +
    Check attribute values of this boat type are correctly stored in the Enum.
  • diff --git a/docs/com/dragonboatrace/entities/boats/ComputerBoat.html b/docs/com/dragonboatrace/entities/boats/ComputerBoat.html index dedd3b7..8ccc53a 100644 --- a/docs/com/dragonboatrace/entities/boats/ComputerBoat.html +++ b/docs/com/dragonboatrace/entities/boats/ComputerBoat.html @@ -2,9 +2,9 @@ - + ComputerBoat - + @@ -213,7 +213,7 @@

    Method Summary

    Methods inherited from class com.dragonboatrace.entities.boats.Boat

    -addVelocity, checkCollisions, checkCollisions, dispose, getAgility, getBoatType, getDistanceTravelled, getHealth, getLane, getName, getPenaltyTime, getSpeed, getStamina, getTime, getVelocity, regenerateStamina, setTime, setTotalTime, updateYPosition, useStamina, velocityPercentage +addVelocity, checkCollisions, checkCollisions, dispose, getAgility, getBoatType, getDistanceTravelled, getHealth, getLane, getName, getPenaltyTime, getSpeed, getStamina, getTime, getVelocity, regenerateStamina, setDistanceTravelled, setTime, setTotalTime, updateYPosition, useStamina, velocityPercentage @@ -148,7 +149,9 @@

    Method Summary

    void -saveToFile()  +saveToFileTest() +
    Main test to check if the saveToFile function produces the expected output.
    + @@ -148,27 +151,39 @@

    Method Summary

    void -setFULLSCREEN()  +setFullscreenTest() +
    Test that window is fullscreen when it should be and shouldn't be.
    + void -setObstacleCollisionPenalty()  +setObstacleCollisionPenaltyTest() +
    Test that the velocity penalty given when a collision occurs, is as expected.
    + void -setObstacleCollisionTime()  +setObstacleCollisionTimeTest() +
    Test that the time the boat must wait before moving again after a collision, is as expected.
    + void -setPlayerCount()  +setPlayerCountTest() +
    Test that the number of players, including the player itself, is as expected.
    + void -setResolution()  +setResolutionTest() +
    Test that the resolution of the screen is as expected.
    + void -setStaminaSpeedDivision()  +setStaminaSpeedDivisionTest() +
    Test that that the value that reduces the scalar that stamina gives when accelerating, is as expected.
    + @@ -148,31 +154,45 @@

    Method Summary

    void -collidesWith()  +collidesWithTest() +
    TU_HITBOX_COLLISION - Check that the Hitbox class correctly reports collisions.
    + void -getHeight()  +getHeightTest() +
    Check height of a Hitbox
    + void -getWidth()  +getWidthTest() +
    Check width of a Hitbox
    + void -getX()  +getXTest() +
    Check x position of a Hitbox
    + void -getY()  +getYTest() +
    Check y position of a Hitbox
    + void -leaves()  +leavesTest() +
    TU_HITBOX_LEAVE - Check that the Hitbox class is able to determine if another Hitbox is colliding when moved.
    + void -move()  +moveTest() +
    TU_HITBOX_POSITION - Check that the Hitbox class reports the correct position.
    + @@ -148,11 +153,16 @@

    Method Summary

    void -obstacleDistributionTest()  +obstacleDistributionTest() +
    Checks to make sure the ratio of obstacles to powerups is in the correct bounds.
    + void -obstacleSpawnRateTest()  +obstacleSpawnRateTest() +
    Check that more obstacles spawn on higher difficulties, with a preference for negative + obstacles rather than powerups.
    + @@ -209,6 +221,7 @@

    obstacleSpawnRateTest

  • obstacleDistributionTest

    public void obstacleDistributionTest()
    +
    Checks to make sure the ratio of obstacles to powerups is in the correct bounds.
  • diff --git a/docs/com/dragonboatrace/tools/Race.html b/docs/com/dragonboatrace/tools/Race.html index 8761bf0..13cecea 100644 --- a/docs/com/dragonboatrace/tools/Race.html +++ b/docs/com/dragonboatrace/tools/Race.html @@ -2,9 +2,9 @@ - + Race - + diff --git a/docs/com/dragonboatrace/tools/ScrollingBackground.html b/docs/com/dragonboatrace/tools/ScrollingBackground.html index 9316c2a..44426a7 100644 --- a/docs/com/dragonboatrace/tools/ScrollingBackground.html +++ b/docs/com/dragonboatrace/tools/ScrollingBackground.html @@ -2,9 +2,9 @@ - + ScrollingBackground - + diff --git a/docs/com/dragonboatrace/tools/ScrollingBackgroundTest.html b/docs/com/dragonboatrace/tools/ScrollingBackgroundTest.html index 358c6b6..9a41004 100644 --- a/docs/com/dragonboatrace/tools/ScrollingBackgroundTest.html +++ b/docs/com/dragonboatrace/tools/ScrollingBackgroundTest.html @@ -2,9 +2,9 @@ - + ScrollingBackgroundTest - + @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10}; +var methods = {"i0":10,"i1":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -125,6 +125,8 @@

    Class ScrollingBackgroun
    public class ScrollingBackgroundTest
     extends junit.framework.TestCase
    +
    TUA_SCROLLINGBG - Check ScrollingBackground is created with the correct values. + TU_SCROLLINGBG_UPDATE - Check the background moves on an update.
    @@ -162,15 +164,15 @@

    Method Summary

    void -
    testBackgroundValues()  +backgroundValuesTest() +
    TUA_SCROLLINGBG - Check ScrollingBackground is created with the correct values.
    + void -testResize()  - - -void -testUpdate()  +updateTest() +
    TU_SCROLLINGBG_UPDATE - Check the background moves on an update.
    +