From f38a06fd4035e95347add0d14f2ee762537c3f39 Mon Sep 17 00:00:00 2001 From: Jannik Niebuhr Date: Fri, 27 May 2022 22:49:06 +0200 Subject: [PATCH] 50% HA6 --- spaceinvaders/GameProject/bin/.gitignore | 6 + .../bin/base/MovingObjectsGame.class | Bin 741 -> 1142 bytes spaceinvaders/GameProject/bin/log4j2.xml | 2 +- .../GameProject/doc/allclasses-index.html | 173 +++++++++- .../GameProject/doc/allpackages-index.html | 25 +- .../GameProject/doc/base/BreakoutGame.html | 197 +++++++++++ .../GameProject/doc/base/GameLoop.html | 10 +- .../doc/base/MovingObjectsGame.html | 197 +++++++++++ .../GameProject/doc/base/MultiLevelGame.html | 4 +- .../doc/base/class-use/BreakoutGame.html | 58 ++++ .../doc/base/class-use/GameLoop.html | 14 +- .../doc/base/class-use/MovingObjectsGame.html | 58 ++++ .../doc/base/class-use/MultiLevelGame.html | 4 +- .../GameProject/doc/base/package-summary.html | 14 +- .../GameProject/doc/base/package-tree.html | 6 +- .../GameProject/doc/base/package-use.html | 4 +- .../doc/collider/CircleCollider.html | 4 +- .../GameProject/doc/collider/Collider.html | 4 +- .../doc/collider/RectCollider.html | 4 +- .../collider/class-use/CircleCollider.html | 4 +- .../doc/collider/class-use/Collider.html | 12 +- .../doc/collider/class-use/RectCollider.html | 4 +- .../doc/collider/package-summary.html | 14 +- .../doc/collider/package-tree.html | 4 +- .../GameProject/doc/collider/package-use.html | 12 +- .../GameProject/doc/constant-values.html | 4 +- .../CollisionAwareEgoController.html | 28 +- .../doc/controller/EgoController.html | 64 +++- .../doc/controller/EnemyController.html | 4 +- .../doc/controller/FallingStarController.html | 4 +- .../doc/controller/LimitedTimeController.html | 4 +- .../doc/controller/MineController.html | 4 +- .../doc/controller/ObjectController.html | 6 +- .../doc/controller/ReboundController.html | 19 +- .../doc/controller/ReboundController2.html | 172 ++++++++++ .../doc/controller/SimpleShotController.html | 4 +- .../doc/controller/ZickZackController.html | 4 +- .../CollisionAwareEgoController.html | 4 +- .../controller/class-use/EgoController.html | 4 +- .../controller/class-use/EnemyController.html | 4 +- .../class-use/FallingStarController.html | 4 +- .../class-use/LimitedTimeController.html | 4 +- .../controller/class-use/MineController.html | 4 +- .../class-use/ObjectController.html | 20 +- .../class-use/ReboundController.html | 5 +- .../class-use/ReboundController2.html | 58 ++++ .../class-use/SimpleShotController.html | 4 +- .../class-use/ZickZackController.html | 4 +- .../doc/controller/package-summary.html | 48 ++- .../doc/controller/package-tree.html | 26 +- .../doc/controller/package-use.html | 60 +++- spaceinvaders/GameProject/doc/element-list | 6 + .../doc/gameobjects/AnimatedGameobject.html | 4 +- .../doc/gameobjects/EgoObject.html | 4 +- .../doc/gameobjects/FallingStar.html | 4 +- .../doc/gameobjects/GameObject.html | 4 +- .../doc/gameobjects/RectObject.html | 4 +- .../doc/gameobjects/TextObject.html | 4 +- .../class-use/AnimatedGameobject.html | 4 +- .../doc/gameobjects/class-use/EgoObject.html | 4 +- .../gameobjects/class-use/FallingStar.html | 4 +- .../doc/gameobjects/class-use/GameObject.html | 42 ++- .../doc/gameobjects/class-use/RectObject.html | 8 +- .../doc/gameobjects/class-use/TextObject.html | 8 +- .../doc/gameobjects/package-summary.html | 12 +- .../doc/gameobjects/package-tree.html | 4 +- .../doc/gameobjects/package-use.html | 16 +- spaceinvaders/GameProject/doc/help-doc.html | 17 +- .../GameProject/doc/index-files/index-1.html | 91 ++++- .../GameProject/doc/index-files/index-10.html | 30 +- .../GameProject/doc/index-files/index-11.html | 18 +- .../GameProject/doc/index-files/index-12.html | 30 +- .../GameProject/doc/index-files/index-13.html | 24 +- .../GameProject/doc/index-files/index-14.html | 27 +- .../GameProject/doc/index-files/index-15.html | 12 +- .../GameProject/doc/index-files/index-16.html | 4 +- .../GameProject/doc/index-files/index-17.html | 12 +- .../GameProject/doc/index-files/index-18.html | 4 +- .../GameProject/doc/index-files/index-19.html | 4 +- .../GameProject/doc/index-files/index-2.html | 29 +- .../GameProject/doc/index-files/index-3.html | 86 ++++- .../GameProject/doc/index-files/index-4.html | 12 +- .../GameProject/doc/index-files/index-5.html | 4 +- .../GameProject/doc/index-files/index-6.html | 4 +- .../GameProject/doc/index-files/index-7.html | 13 +- .../GameProject/doc/index-files/index-8.html | 4 +- .../GameProject/doc/index-files/index-9.html | 4 +- spaceinvaders/GameProject/doc/index.html | 87 ++++- .../GameProject/doc/jquery-ui.overrides.css | 42 +-- .../GameProject/doc/member-search-index.js | 2 +- .../GameProject/doc/overview-summary.html | 4 +- .../GameProject/doc/overview-tree.html | 90 ++++- .../GameProject/doc/package-search-index.js | 2 +- .../GameProject/doc/playground/Animation.html | 4 +- .../doc/playground/BreakoutLevelBase.html | 318 ++++++++++++++++++ .../doc/playground/HighscoreManager.html | 4 +- .../GameProject/doc/playground/Level1.html | 4 +- .../GameProject/doc/playground/Level2.html | 6 +- .../GameProject/doc/playground/Level3.html | 4 +- .../GameProject/doc/playground/Level4.html | 6 +- .../GameProject/doc/playground/Level5.html | 4 +- .../GameProject/doc/playground/Level6.html | 4 +- .../GameProject/doc/playground/Level7.html | 4 +- .../GameProject/doc/playground/LevelBoss.html | 4 +- .../doc/playground/LevelHitTwice.html | 4 +- .../doc/playground/LevelMovingHitObjects.html | 195 +++++++++++ .../doc/playground/LevelMovingObjects.html | 194 +++++++++++ .../doc/playground/LevelWithBox.html | 4 +- .../GameProject/doc/playground/Music.html | 4 +- .../doc/playground/Playground.html | 6 +- .../GameProject/doc/playground/SaveGame.html | 4 +- .../doc/playground/SpaceInvadersLevel.html | 6 +- .../doc/playground/SpaceInvadersLevelAua.html | 4 +- .../doc/playground/class-use/Animation.html | 8 +- .../class-use/BreakoutLevelBase.html | 58 ++++ .../class-use/HighscoreManager.html | 4 +- .../doc/playground/class-use/Level1.html | 4 +- .../doc/playground/class-use/Level2.html | 4 +- .../doc/playground/class-use/Level3.html | 4 +- .../doc/playground/class-use/Level4.html | 4 +- .../doc/playground/class-use/Level5.html | 4 +- .../doc/playground/class-use/Level6.html | 4 +- .../doc/playground/class-use/Level7.html | 4 +- .../doc/playground/class-use/LevelBoss.html | 4 +- .../playground/class-use/LevelHitTwice.html | 4 +- .../class-use/LevelMovingHitObjects.html | 58 ++++ .../class-use/LevelMovingObjects.html | 58 ++++ .../playground/class-use/LevelWithBox.html | 4 +- .../doc/playground/class-use/Music.html | 4 +- .../doc/playground/class-use/Playground.html | 84 +++-- .../doc/playground/class-use/SaveGame.html | 4 +- .../class-use/SpaceInvadersLevel.html | 27 +- .../class-use/SpaceInvadersLevelAua.html | 8 +- .../doc/playground/package-summary.html | 89 +++-- .../doc/playground/package-tree.html | 7 +- .../doc/playground/package-use.html | 16 +- .../doc/rendering/AnimationArtist.html | 4 +- .../GameProject/doc/rendering/Artist.html | 4 +- .../doc/rendering/CircleArtist.html | 4 +- .../GameProject/doc/rendering/RectArtist.html | 4 +- .../GameProject/doc/rendering/TextArtist.html | 4 +- .../rendering/class-use/AnimationArtist.html | 4 +- .../doc/rendering/class-use/Artist.html | 8 +- .../doc/rendering/class-use/CircleArtist.html | 4 +- .../doc/rendering/class-use/RectArtist.html | 4 +- .../doc/rendering/class-use/TextArtist.html | 4 +- .../doc/rendering/package-summary.html | 4 +- .../doc/rendering/package-tree.html | 4 +- .../doc/rendering/package-use.html | 8 +- spaceinvaders/GameProject/doc/script.js | 42 +-- spaceinvaders/GameProject/doc/search.js | 34 +- .../GameProject/doc/tag-search-index.js | 2 +- .../GameProject/doc/type-search-index.js | 2 +- spaceinvaders/GameProject/doc/ui/GameUI.html | 4 +- .../GameProject/doc/ui/class-use/GameUI.html | 4 +- .../GameProject/doc/ui/package-summary.html | 4 +- .../GameProject/doc/ui/package-tree.html | 4 +- .../GameProject/doc/ui/package-use.html | 4 +- spaceinvaders/GameProject/log/log4j.log | 59 ++++ .../src/base/MovingObjectsGame.java | 2 +- .../src/playground/LevelMovingHitObjects.java | 34 +- 161 files changed, 3152 insertions(+), 539 deletions(-) create mode 100644 spaceinvaders/GameProject/doc/base/BreakoutGame.html create mode 100644 spaceinvaders/GameProject/doc/base/MovingObjectsGame.html create mode 100644 spaceinvaders/GameProject/doc/base/class-use/BreakoutGame.html create mode 100644 spaceinvaders/GameProject/doc/base/class-use/MovingObjectsGame.html create mode 100644 spaceinvaders/GameProject/doc/controller/ReboundController2.html create mode 100644 spaceinvaders/GameProject/doc/controller/class-use/ReboundController2.html create mode 100644 spaceinvaders/GameProject/doc/playground/BreakoutLevelBase.html create mode 100644 spaceinvaders/GameProject/doc/playground/LevelMovingHitObjects.html create mode 100644 spaceinvaders/GameProject/doc/playground/LevelMovingObjects.html create mode 100644 spaceinvaders/GameProject/doc/playground/class-use/BreakoutLevelBase.html create mode 100644 spaceinvaders/GameProject/doc/playground/class-use/LevelMovingHitObjects.html create mode 100644 spaceinvaders/GameProject/doc/playground/class-use/LevelMovingObjects.html diff --git a/spaceinvaders/GameProject/bin/.gitignore b/spaceinvaders/GameProject/bin/.gitignore index 61c497a..63a551f 100644 --- a/spaceinvaders/GameProject/bin/.gitignore +++ b/spaceinvaders/GameProject/bin/.gitignore @@ -1 +1,7 @@ +/base/ +/collider/ +/controller/ +/gameobjects/ /playground/ +/rendering/ +/ui/ diff --git a/spaceinvaders/GameProject/bin/base/MovingObjectsGame.class b/spaceinvaders/GameProject/bin/base/MovingObjectsGame.class index 078d123a3770ae3286f7a059fe88b248196eba96..b71f4327f3e878cdbac10c50ccf9f46a2dd8a24c 100644 GIT binary patch literal 1142 zcmah|YflqF6g^W)w=D~;MJg1PEe~mnb`^`S5rnL|y*rc7A`#ksD)1SY-{{YZHQ$vEG*y52eH-kghceYvwq8&#sc}HkS zGK?#qd|E-!Wk`8}a?|6~a>L_M)U5s&O$H2Cbc`a! zkh5H0yyhTCV3<^+xPke4Yv@U1j$v&l=3z`}hGgH^4g)9T zoqE0QiFi3Ox*k6=xNjSF;4jAp(PQkpad`}7ENGZ#n7fQzMeHJ$2(Rn!1q@T?IUT~y z5@|&_e?>N9FoN{m~EcquXMS*tf)?@FH3Nu8w<> z+ObeXv}0x0aGybq=!8Mfw@qd4EA*8c4@8>9szk@|K*vKoBE50jR*?*)iX|Buq;C(e z{T=KCy|67_xN`Nye}rF`D=g5U5fpD)UZPS0)f7bI|^KV2=*B< pAi?ITq**(~Dm7>vW9_W^gyLwPdMqM`rE~c61N;n+sX_uzegnWN{0{&C delta 422 zcmZ9G+e!ja6o&sjp2l%f%R_chJDM3Z5M4w>7ezr~cvaD*=|)CmMs$+8h@L@wl5P|d zdVn6FH|Q0DZld2YD!N%~?X}ka*7vTy`LvhMr)L1$$al4^)ShXX&c1*rzkVU$J+!M* zg9pLx$7XL=lyXx7v3j{vHcZ<%DIMKbWYaNiOM^ggw3yJ5M5MQ)oFAukWZ)MFwPag5 zMcI*!b^r?k>1LyRS8LffR@HFZXLiT5YNhMCtT=5A*%3-$S;q=id#}pn14tI|!Os|= ztiddpeT4zkM-~b+#?ct8LX7%&fq8HY)0D|jEc-_} M`mHRGBVWPV7kukEg#Z8m diff --git a/spaceinvaders/GameProject/bin/log4j2.xml b/spaceinvaders/GameProject/bin/log4j2.xml index 21a7607..f21f70a 100644 --- a/spaceinvaders/GameProject/bin/log4j2.xml +++ b/spaceinvaders/GameProject/bin/log4j2.xml @@ -25,6 +25,6 @@ - + \ No newline at end of file diff --git a/spaceinvaders/GameProject/doc/allclasses-index.html b/spaceinvaders/GameProject/doc/allclasses-index.html index f455a99..47f6113 100644 --- a/spaceinvaders/GameProject/doc/allclasses-index.html +++ b/spaceinvaders/GameProject/doc/allclasses-index.html @@ -1,11 +1,11 @@ - + All Classes and Interfaces - + @@ -28,7 +28,8 @@ loadScripts(document, 'script'); diff --git a/spaceinvaders/GameProject/doc/allpackages-index.html b/spaceinvaders/GameProject/doc/allpackages-index.html index 17136e2..97da3b9 100644 --- a/spaceinvaders/GameProject/doc/allpackages-index.html +++ b/spaceinvaders/GameProject/doc/allpackages-index.html @@ -1,11 +1,11 @@ - + All Packages - + @@ -28,7 +28,8 @@ loadScripts(document, 'script'); diff --git a/spaceinvaders/GameProject/doc/base/BreakoutGame.html b/spaceinvaders/GameProject/doc/base/BreakoutGame.html new file mode 100644 index 0000000..3fcbd3c --- /dev/null +++ b/spaceinvaders/GameProject/doc/base/BreakoutGame.html @@ -0,0 +1,197 @@ + + + + +BreakoutGame + + + + + + + + + + + + + + + +
+ +
+
+ +
+
Package base
+

Class BreakoutGame

+
+
java.lang.Object +
base.GameLoop +
base.BreakoutGame
+
+
+
+
+
public class BreakoutGame +extends GameLoop
+
main class to start a game with only one level.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BreakoutGame

      +
      public BreakoutGame()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      defineLevels

      +
      public void defineLevels()
      +
      adds only one level to play (playground.LevelBreakout1).
      +
      +
    • +
    • +
      +

      main

      +
      public static void main(String[] args) + throws IOException
      +
      starts this game.
      +
      +
      Parameters:
      +
      args - command line parameters (forwarded to GameLoop.runGame(String[])).
      +
      Throws:
      +
      IOException - if highscore.txt file cannot be written or accessed, the exception is + thrown (and game ends).
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/spaceinvaders/GameProject/doc/base/GameLoop.html b/spaceinvaders/GameProject/doc/base/GameLoop.html index 5ea681d..4806dda 100644 --- a/spaceinvaders/GameProject/doc/base/GameLoop.html +++ b/spaceinvaders/GameProject/doc/base/GameLoop.html @@ -1,11 +1,11 @@ - + GameLoop - + @@ -78,7 +78,7 @@ loadScripts(document, 'script');
Direct Known Subclasses:
-
MultiLevelGame
+
BreakoutGame, MovingObjectsGame, MultiLevelGame

public class GameLoop @@ -231,8 +231,8 @@ loadScripts(document, 'script');

main

public static void main(String[] args) throws IOException
-
main to start the whole application. - initializes the levels ArrayList of Playground instances (levels) to be played with one level SpaceInvadersLevel in constructor of GameLoop().
+
main to start the whole application. It calls. runGame(String[]). + (levels are automatically added/loaded by constructor of GameLoop()).
Parameters:
args - Java default command line args, forwarded to runGame(String[])
diff --git a/spaceinvaders/GameProject/doc/base/MovingObjectsGame.html b/spaceinvaders/GameProject/doc/base/MovingObjectsGame.html new file mode 100644 index 0000000..af2c927 --- /dev/null +++ b/spaceinvaders/GameProject/doc/base/MovingObjectsGame.html @@ -0,0 +1,197 @@ + + + + +MovingObjectsGame + + + + + + + + + + + + + + + +
+ +
+
+ +
+
Package base
+

Class MovingObjectsGame

+
+
java.lang.Object +
base.GameLoop +
base.MovingObjectsGame
+
+
+
+
+
public class MovingObjectsGame +extends GameLoop
+
main class to start a game with only one level LevelMovingObjects.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MovingObjectsGame

      +
      public MovingObjectsGame()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      main

      +
      public static void main(String[] args) + throws IOException
      +
      starts this game.
      +
      +
      Parameters:
      +
      args - command line parameters (forwarded to GameLoop.runGame(String[])).
      +
      Throws:
      +
      IOException - if highscore.txt file cannot be written or accessed, the exception is + thrown (and game ends).
      +
      +
      +
    • +
    • +
      +

      defineLevels

      +
      public void defineLevels()
      +
      adds only one level to play (LevelMovingObjects).
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/spaceinvaders/GameProject/doc/base/MultiLevelGame.html b/spaceinvaders/GameProject/doc/base/MultiLevelGame.html index f2b590e..e154195 100644 --- a/spaceinvaders/GameProject/doc/base/MultiLevelGame.html +++ b/spaceinvaders/GameProject/doc/base/MultiLevelGame.html @@ -1,11 +1,11 @@ - + MultiLevelGame - + diff --git a/spaceinvaders/GameProject/doc/base/class-use/BreakoutGame.html b/spaceinvaders/GameProject/doc/base/class-use/BreakoutGame.html new file mode 100644 index 0000000..6fc42c3 --- /dev/null +++ b/spaceinvaders/GameProject/doc/base/class-use/BreakoutGame.html @@ -0,0 +1,58 @@ + + + + +Uses of Class base.BreakoutGame + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
base.BreakoutGame

+
+No usage of base.BreakoutGame
+
+
+ + diff --git a/spaceinvaders/GameProject/doc/base/class-use/GameLoop.html b/spaceinvaders/GameProject/doc/base/class-use/GameLoop.html index c99e8e7..9a27069 100644 --- a/spaceinvaders/GameProject/doc/base/class-use/GameLoop.html +++ b/spaceinvaders/GameProject/doc/base/class-use/GameLoop.html @@ -1,11 +1,11 @@ - + Uses of Class base.GameLoop - + @@ -69,6 +69,16 @@ loadScripts(document, 'script');
Class
Description
class 
+ +
+
main class to start a game with only one level.
+
+
class 
+ +
+
main class to start a game with only one level LevelMovingObjects.
+
+
class 
 
diff --git a/spaceinvaders/GameProject/doc/base/class-use/MovingObjectsGame.html b/spaceinvaders/GameProject/doc/base/class-use/MovingObjectsGame.html new file mode 100644 index 0000000..9c8e50e --- /dev/null +++ b/spaceinvaders/GameProject/doc/base/class-use/MovingObjectsGame.html @@ -0,0 +1,58 @@ + + + + +Uses of Class base.MovingObjectsGame + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
base.MovingObjectsGame

+
+No usage of base.MovingObjectsGame
+
+
+ + diff --git a/spaceinvaders/GameProject/doc/base/class-use/MultiLevelGame.html b/spaceinvaders/GameProject/doc/base/class-use/MultiLevelGame.html index aafd4e4..988f3fc 100644 --- a/spaceinvaders/GameProject/doc/base/class-use/MultiLevelGame.html +++ b/spaceinvaders/GameProject/doc/base/class-use/MultiLevelGame.html @@ -1,11 +1,11 @@ - + Uses of Class base.MultiLevelGame - + diff --git a/spaceinvaders/GameProject/doc/base/package-summary.html b/spaceinvaders/GameProject/doc/base/package-summary.html index 7c763fc..6d5f1d5 100644 --- a/spaceinvaders/GameProject/doc/base/package-summary.html +++ b/spaceinvaders/GameProject/doc/base/package-summary.html @@ -1,11 +1,11 @@ - + base - + @@ -69,10 +69,18 @@ loadScripts(document, 'script');
Class
Description
- +
+
main class to start a game with only one level.
+
+ +
Main class starting any game, contains main().
+ +
+
main class to start a game with only one level LevelMovingObjects.
+
 
diff --git a/spaceinvaders/GameProject/doc/base/package-tree.html b/spaceinvaders/GameProject/doc/base/package-tree.html index 5057818..2f0672a 100644 --- a/spaceinvaders/GameProject/doc/base/package-tree.html +++ b/spaceinvaders/GameProject/doc/base/package-tree.html @@ -1,11 +1,11 @@ - + base Class Hierarchy - + @@ -62,6 +62,8 @@ loadScripts(document, 'script');
  • base.GameLoop
  • diff --git a/spaceinvaders/GameProject/doc/base/package-use.html b/spaceinvaders/GameProject/doc/base/package-use.html index 2fbc3be..be8ecdd 100644 --- a/spaceinvaders/GameProject/doc/base/package-use.html +++ b/spaceinvaders/GameProject/doc/base/package-use.html @@ -1,11 +1,11 @@ - + Uses of Package base - + diff --git a/spaceinvaders/GameProject/doc/collider/CircleCollider.html b/spaceinvaders/GameProject/doc/collider/CircleCollider.html index 24d79c6..de038e7 100644 --- a/spaceinvaders/GameProject/doc/collider/CircleCollider.html +++ b/spaceinvaders/GameProject/doc/collider/CircleCollider.html @@ -1,11 +1,11 @@ - + CircleCollider - + diff --git a/spaceinvaders/GameProject/doc/collider/Collider.html b/spaceinvaders/GameProject/doc/collider/Collider.html index 1d68577..633ce88 100644 --- a/spaceinvaders/GameProject/doc/collider/Collider.html +++ b/spaceinvaders/GameProject/doc/collider/Collider.html @@ -1,11 +1,11 @@ - + Collider - + diff --git a/spaceinvaders/GameProject/doc/collider/RectCollider.html b/spaceinvaders/GameProject/doc/collider/RectCollider.html index 005877d..a807749 100644 --- a/spaceinvaders/GameProject/doc/collider/RectCollider.html +++ b/spaceinvaders/GameProject/doc/collider/RectCollider.html @@ -1,11 +1,11 @@ - + RectCollider - + diff --git a/spaceinvaders/GameProject/doc/collider/class-use/CircleCollider.html b/spaceinvaders/GameProject/doc/collider/class-use/CircleCollider.html index 4900660..b0efd00 100644 --- a/spaceinvaders/GameProject/doc/collider/class-use/CircleCollider.html +++ b/spaceinvaders/GameProject/doc/collider/class-use/CircleCollider.html @@ -1,11 +1,11 @@ - + Uses of Class collider.CircleCollider - + diff --git a/spaceinvaders/GameProject/doc/collider/class-use/Collider.html b/spaceinvaders/GameProject/doc/collider/class-use/Collider.html index 87e8f24..4518521 100644 --- a/spaceinvaders/GameProject/doc/collider/class-use/Collider.html +++ b/spaceinvaders/GameProject/doc/collider/class-use/Collider.html @@ -1,11 +1,11 @@ - + Uses of Class collider.Collider - + @@ -56,9 +56,13 @@ loadScripts(document, 'script');
    Package
    Description
    -
     
    +
    +
    The package contains classes implementing a 'bounding box' area around game objects.
    +
    -
     
    +
    +
    The package gameobjects contains all objects with a visual representation on screen.
    +
      diff --git a/spaceinvaders/GameProject/doc/collider/class-use/RectCollider.html b/spaceinvaders/GameProject/doc/collider/class-use/RectCollider.html index e3b9b3b..d890714 100644 --- a/spaceinvaders/GameProject/doc/collider/class-use/RectCollider.html +++ b/spaceinvaders/GameProject/doc/collider/class-use/RectCollider.html @@ -1,11 +1,11 @@ - + Uses of Class collider.RectCollider - + diff --git a/spaceinvaders/GameProject/doc/collider/package-summary.html b/spaceinvaders/GameProject/doc/collider/package-summary.html index 78b4906..a4c1a93 100644 --- a/spaceinvaders/GameProject/doc/collider/package-summary.html +++ b/spaceinvaders/GameProject/doc/collider/package-summary.html @@ -1,11 +1,11 @@ - + collider - + @@ -41,7 +41,7 @@ loadScripts(document, 'script');
      @@ -61,6 +61,14 @@ loadScripts(document, 'script');

      package collider
      +
      +
      The package contains classes implementing a 'bounding box' area around game objects.
      + The abstract base class Collider provides the abstract method Collider.collidesWith(Collider), + which needs to be implemented by child classes to detect and decide whether or not an object with such instance really collides with the other. + Collider instances are to be used for game objects (gameobjects); see constructors.
      + + The benefit of seperating Colliders from visual representations is that the area for collisions can be smaller/bigger/other shape to improve game play experience.
      +
      • diff --git a/spaceinvaders/GameProject/doc/collider/package-tree.html b/spaceinvaders/GameProject/doc/collider/package-tree.html index 5dcd619..ca0f56a 100644 --- a/spaceinvaders/GameProject/doc/collider/package-tree.html +++ b/spaceinvaders/GameProject/doc/collider/package-tree.html @@ -1,11 +1,11 @@ - + collider Class Hierarchy - + diff --git a/spaceinvaders/GameProject/doc/collider/package-use.html b/spaceinvaders/GameProject/doc/collider/package-use.html index b66d88e..55fb4e2 100644 --- a/spaceinvaders/GameProject/doc/collider/package-use.html +++ b/spaceinvaders/GameProject/doc/collider/package-use.html @@ -1,11 +1,11 @@ - + Uses of Package collider - + @@ -56,9 +56,13 @@ loadScripts(document, 'script');
        Package
        Description
        -
         
        +
        +
        The package contains classes implementing a 'bounding box' area around game objects.
        +
        -
         
        +
        +
        The package gameobjects contains all objects with a visual representation on screen.
        +
          diff --git a/spaceinvaders/GameProject/doc/constant-values.html b/spaceinvaders/GameProject/doc/constant-values.html index de29727..3505593 100644 --- a/spaceinvaders/GameProject/doc/constant-values.html +++ b/spaceinvaders/GameProject/doc/constant-values.html @@ -1,11 +1,11 @@ - + Constant Field Values - + diff --git a/spaceinvaders/GameProject/doc/controller/CollisionAwareEgoController.html b/spaceinvaders/GameProject/doc/controller/CollisionAwareEgoController.html index 132284b..2099250 100644 --- a/spaceinvaders/GameProject/doc/controller/CollisionAwareEgoController.html +++ b/spaceinvaders/GameProject/doc/controller/CollisionAwareEgoController.html @@ -1,11 +1,11 @@ - + CollisionAwareEgoController - + @@ -119,18 +119,22 @@ loadScripts(document, 'script');
          -
          behavior for shooting on key space
          +
          calls superclass EgoController.onSpace(KeyEvent, GameObject) only, if the time elapsed since last pressing of space is above 0.1 ms.
          void
          -
           
          +
          +
          Restores formally saved values of x,y position and speed vx,vy from attributes back to the ego object.
          +
          void
          -
           
          +
          +
          Copies current values of x,y position and speed vx,vy into attributes.
          +
          boolean
          -
          checks the position and respects level boundaries and own radius or width/height set on constructor.
          +
          extends parent class implementation by a check whether or not the ego object collides with any other "obstacle" object.
          @@ -189,25 +193,28 @@ loadScripts(document, 'script');

          saveDynamicState

          public void saveDynamicState()
          +
          Copies current values of x,y position and speed vx,vy into attributes. These can be restored by call to restoreDynamicState().
        • restoreDynamicState

          public void restoreDynamicState()
          +
          Restores formally saved values of x,y position and speed vx,vy from attributes back to the ego object. + These values should have been stored before by a call to saveDynamicState(), otherwise all values will be 0.00.
        • stopObject

          public boolean stopObject()
          -
          Description copied from class: EgoController
          -
          checks the position and respects level boundaries and own radius or width/height set on constructor.
          +
          extends parent class implementation by a check whether or not the ego object collides with any other "obstacle" object. + If yes, the position stays fixed (by using saveDynamicState() and restoreDynamicState().
          Overrides:
          stopObject in class EgoController
          Returns:
          -
          true if the object reached the boundaries of the level, false otherwise
          +
          true if the object reached the boundaries of the level, false otherwise.
        • @@ -216,8 +223,7 @@ loadScripts(document, 'script');

          onSpace

          public void onSpace(KeyEvent e, GameObject ego)
          -
          Description copied from class: EgoController
          -
          behavior for shooting on key space
          +
          calls superclass EgoController.onSpace(KeyEvent, GameObject) only, if the time elapsed since last pressing of space is above 0.1 ms.
          Overrides:
          onSpace in class EgoController
          diff --git a/spaceinvaders/GameProject/doc/controller/EgoController.html b/spaceinvaders/GameProject/doc/controller/EgoController.html index defa20e..b6b585a 100644 --- a/spaceinvaders/GameProject/doc/controller/EgoController.html +++ b/spaceinvaders/GameProject/doc/controller/EgoController.html @@ -1,11 +1,11 @@ - + EgoController - + @@ -124,29 +124,39 @@ loadScripts(document, 'script');
          void
          -
           
          +
          +
          moves ego down by SpaceInvadersLevel.EGOSPEED.
          +
          void
          -
           
          +
          +
          moves ego left by SpaceInvadersLevel.EGOSPEED.
          +
          void
          -
           
          +
          +
          moves ego right by SpaceInvadersLevel.EGOSPEED.
          +
          void
          -
          behavior for shooting on key space
          +
          behavior for shooting on key space.
          void
          -
           
          +
          +
          sets speed to 0.0
          +
          void
          -
           
          +
          + +
          boolean
          @@ -155,7 +165,7 @@ loadScripts(document, 'script');
          void
          -
          updates position based on key events (mouse currently ignored)
          +
          updates position based on key events (mouse currently ignored).
          @@ -214,6 +224,12 @@ loadScripts(document, 'script');

          onUp

          public void onUp(KeyEvent kc, GameObject ego)
          + +
          +
          Parameters:
          +
          kc - KeyEvent to process (ignored)
          +
          ego - the ego object
          +
      • @@ -221,6 +237,12 @@ loadScripts(document, 'script');

        onDown

        public void onDown(KeyEvent kc, GameObject ego)
        +
        moves ego down by SpaceInvadersLevel.EGOSPEED.
        +
        +
        Parameters:
        +
        kc - KeyEvent to process (ignored)
        +
        ego - the ego object
        +
    • @@ -228,6 +250,12 @@ loadScripts(document, 'script');

      onLeft

      public void onLeft(KeyEvent kc, GameObject ego)
      +
      moves ego left by SpaceInvadersLevel.EGOSPEED.
      +
      +
      Parameters:
      +
      kc - KeyEvent to process (ignored)
      +
      ego - the ego object
      +
  • @@ -235,6 +263,12 @@ loadScripts(document, 'script');

    onRight

    public void onRight(KeyEvent kc, GameObject ego)
    +
    moves ego right by SpaceInvadersLevel.EGOSPEED.
    +
    +
    Parameters:
    +
    kc - KeyEvent to process (ignored)
    +
    ego - the ego object
    +
  • @@ -242,6 +276,12 @@ loadScripts(document, 'script');

    onStop

    public void onStop(KeyEvent kc, GameObject ego)
    +
    sets speed to 0.0
    +
    +
    Parameters:
    +
    kc - KeyEvent to process (ignored)
    +
    ego - the ego object
    +
  • @@ -251,7 +291,7 @@ loadScripts(document, 'script');
    checks the position and respects level boundaries and own radius or width/height set on constructor.
    Returns:
    -
    true if the object reached the boundaries of the level, false otherwise
    +
    true if the object reached the boundaries of the level, false otherwise.
  • @@ -260,7 +300,7 @@ loadScripts(document, 'script');

    onSpace

    public void onSpace(KeyEvent e, GameObject ego)
    -
    behavior for shooting on key space
    +
    behavior for shooting on key space. Creates a new shot using {#link SimpleShotController} with a RectObject.
    Parameters:
    e - KeyEvent of the space key
    @@ -272,7 +312,7 @@ loadScripts(document, 'script');

    updateObject

    public void updateObject()
    -
    updates position based on key events (mouse currently ignored)
    +
    updates position based on key events (mouse currently ignored).
    Specified by:
    updateObject in class ObjectController
    diff --git a/spaceinvaders/GameProject/doc/controller/EnemyController.html b/spaceinvaders/GameProject/doc/controller/EnemyController.html index 348cf04..373731e 100644 --- a/spaceinvaders/GameProject/doc/controller/EnemyController.html +++ b/spaceinvaders/GameProject/doc/controller/EnemyController.html @@ -1,11 +1,11 @@ - + EnemyController - + diff --git a/spaceinvaders/GameProject/doc/controller/FallingStarController.html b/spaceinvaders/GameProject/doc/controller/FallingStarController.html index b7b3277..83b9507 100644 --- a/spaceinvaders/GameProject/doc/controller/FallingStarController.html +++ b/spaceinvaders/GameProject/doc/controller/FallingStarController.html @@ -1,11 +1,11 @@ - + FallingStarController - + diff --git a/spaceinvaders/GameProject/doc/controller/LimitedTimeController.html b/spaceinvaders/GameProject/doc/controller/LimitedTimeController.html index 69804d8..e22d8be 100644 --- a/spaceinvaders/GameProject/doc/controller/LimitedTimeController.html +++ b/spaceinvaders/GameProject/doc/controller/LimitedTimeController.html @@ -1,11 +1,11 @@ - + LimitedTimeController - + diff --git a/spaceinvaders/GameProject/doc/controller/MineController.html b/spaceinvaders/GameProject/doc/controller/MineController.html index d2c367e..facc8c7 100644 --- a/spaceinvaders/GameProject/doc/controller/MineController.html +++ b/spaceinvaders/GameProject/doc/controller/MineController.html @@ -1,11 +1,11 @@ - + MineController - + diff --git a/spaceinvaders/GameProject/doc/controller/ObjectController.html b/spaceinvaders/GameProject/doc/controller/ObjectController.html index 1076dfc..d1cd6a1 100644 --- a/spaceinvaders/GameProject/doc/controller/ObjectController.html +++ b/spaceinvaders/GameProject/doc/controller/ObjectController.html @@ -1,11 +1,11 @@ - + ObjectController - + @@ -78,7 +78,7 @@ loadScripts(document, 'script');
    Direct Known Subclasses:
    -
    EgoController, EnemyController, FallingStarController, LimitedTimeController, MineController, SimpleShotController
    +
    EgoController, EnemyController, FallingStarController, LimitedTimeController, MineController, ReboundController, ReboundController2, SimpleShotController

    public abstract class ObjectController diff --git a/spaceinvaders/GameProject/doc/controller/ReboundController.html b/spaceinvaders/GameProject/doc/controller/ReboundController.html index fd98b1e..923521e 100644 --- a/spaceinvaders/GameProject/doc/controller/ReboundController.html +++ b/spaceinvaders/GameProject/doc/controller/ReboundController.html @@ -1,11 +1,11 @@ - + ReboundController - + @@ -32,6 +32,7 @@ loadScripts(document, 'script');
    java.lang.Object -
    controller.ObjectController +
    controller.ObjectController
    controller.ReboundController

    public class ReboundController -extends controller.ObjectController
    +extends ObjectController
      @@ -116,8 +117,8 @@ loadScripts(document, 'script');
      -

      Methods inherited from class controller.ObjectController

      -applySpeedVector, getPlayground, getTimestep, getVX, getVY, getX, getY, setDummy, setObject, setPlayground, setVX, setVY, setX, setY
      +

      Methods inherited from class controller.ObjectController

      +applySpeedVector, getPlayground, getTimestep, getVX, getVY, getX, getY, setDummy, setObject, setPlayground, setVX, setVY, setX, setY

      Methods inherited from class java.lang.Object

      equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      @@ -150,18 +151,18 @@ loadScripts(document, 'script');

      updateObject

      public void updateObject()
      -
      Description copied from class: controller.ObjectController
      +
      Description copied from class: ObjectController
      Is called once every game time step by the game itself. NEVER call this directly, not necessary!
      The method can do whatever it likes, including nothing. The attribute ObjectController.gameObject contains a reference to the controlled object, which allows access to the Playground the object belongs to (useful for getting the pixel size in x and y of the playing field.
      Recommended: when implementing this method, call at the end - ObjectController.applySpeedVector() method. This is a helper method that sets the new x,y coordinates + ObjectController.applySpeedVector() method. This is a helper method that sets the new x,y coordinates for the ObjectController.gameObject correctly.
      Specified by:
      -
      updateObject in class controller.ObjectController
      +
      updateObject in class ObjectController
      diff --git a/spaceinvaders/GameProject/doc/controller/ReboundController2.html b/spaceinvaders/GameProject/doc/controller/ReboundController2.html new file mode 100644 index 0000000..ed42fa0 --- /dev/null +++ b/spaceinvaders/GameProject/doc/controller/ReboundController2.html @@ -0,0 +1,172 @@ + + + + +ReboundController2 + + + + + + + + + + + + + + + +
      + +
      +
      + +
      +
      Package controller
      +

      Class ReboundController2

      +
      +
      java.lang.Object +
      controller.ObjectController +
      controller.ReboundController2
      +
      +
      +
      +
      +
      public class ReboundController2 +extends ObjectController
      +
      Controller to let Objects bounce from the outer level limits back and forth.
      +
      +
      + +
      +
      +
        + +
      • +
        +

        Constructor Details

        +
          +
        • +
          +

          ReboundController2

          +
          public ReboundController2()
          +
          +
        • +
        +
        +
      • + +
      • +
        +

        Method Details

        +
          +
        • +
          +

          updateObject

          +
          public void updateObject()
          +
          inverts the x y direction speeds if the outer limits are reached.
          +
          +
          Specified by:
          +
          updateObject in class ObjectController
          +
          +
          +
        • +
        +
        +
      • +
      +
      + +
      +
      +
      + + diff --git a/spaceinvaders/GameProject/doc/controller/SimpleShotController.html b/spaceinvaders/GameProject/doc/controller/SimpleShotController.html index 31bafef..507b287 100644 --- a/spaceinvaders/GameProject/doc/controller/SimpleShotController.html +++ b/spaceinvaders/GameProject/doc/controller/SimpleShotController.html @@ -1,11 +1,11 @@ - + SimpleShotController - + diff --git a/spaceinvaders/GameProject/doc/controller/ZickZackController.html b/spaceinvaders/GameProject/doc/controller/ZickZackController.html index 7a9cc7c..a423bc6 100644 --- a/spaceinvaders/GameProject/doc/controller/ZickZackController.html +++ b/spaceinvaders/GameProject/doc/controller/ZickZackController.html @@ -1,11 +1,11 @@ - + ZickZackController - + diff --git a/spaceinvaders/GameProject/doc/controller/class-use/CollisionAwareEgoController.html b/spaceinvaders/GameProject/doc/controller/class-use/CollisionAwareEgoController.html index f2c2dac..319ca09 100644 --- a/spaceinvaders/GameProject/doc/controller/class-use/CollisionAwareEgoController.html +++ b/spaceinvaders/GameProject/doc/controller/class-use/CollisionAwareEgoController.html @@ -1,11 +1,11 @@ - + Uses of Class controller.CollisionAwareEgoController - + diff --git a/spaceinvaders/GameProject/doc/controller/class-use/EgoController.html b/spaceinvaders/GameProject/doc/controller/class-use/EgoController.html index 0f06522..ab43807 100644 --- a/spaceinvaders/GameProject/doc/controller/class-use/EgoController.html +++ b/spaceinvaders/GameProject/doc/controller/class-use/EgoController.html @@ -1,11 +1,11 @@ - + Uses of Class controller.EgoController - + diff --git a/spaceinvaders/GameProject/doc/controller/class-use/EnemyController.html b/spaceinvaders/GameProject/doc/controller/class-use/EnemyController.html index 3f5a279..610f987 100644 --- a/spaceinvaders/GameProject/doc/controller/class-use/EnemyController.html +++ b/spaceinvaders/GameProject/doc/controller/class-use/EnemyController.html @@ -1,11 +1,11 @@ - + Uses of Class controller.EnemyController - + diff --git a/spaceinvaders/GameProject/doc/controller/class-use/FallingStarController.html b/spaceinvaders/GameProject/doc/controller/class-use/FallingStarController.html index 1eda5c9..e2acbb3 100644 --- a/spaceinvaders/GameProject/doc/controller/class-use/FallingStarController.html +++ b/spaceinvaders/GameProject/doc/controller/class-use/FallingStarController.html @@ -1,11 +1,11 @@ - + Uses of Class controller.FallingStarController - + diff --git a/spaceinvaders/GameProject/doc/controller/class-use/LimitedTimeController.html b/spaceinvaders/GameProject/doc/controller/class-use/LimitedTimeController.html index 05bd939..8b3d5d3 100644 --- a/spaceinvaders/GameProject/doc/controller/class-use/LimitedTimeController.html +++ b/spaceinvaders/GameProject/doc/controller/class-use/LimitedTimeController.html @@ -1,11 +1,11 @@ - + Uses of Class controller.LimitedTimeController - + diff --git a/spaceinvaders/GameProject/doc/controller/class-use/MineController.html b/spaceinvaders/GameProject/doc/controller/class-use/MineController.html index 52cd83c..2892ce0 100644 --- a/spaceinvaders/GameProject/doc/controller/class-use/MineController.html +++ b/spaceinvaders/GameProject/doc/controller/class-use/MineController.html @@ -1,11 +1,11 @@ - + Uses of Class controller.MineController - + diff --git a/spaceinvaders/GameProject/doc/controller/class-use/ObjectController.html b/spaceinvaders/GameProject/doc/controller/class-use/ObjectController.html index 27a7c03..58ddbc5 100644 --- a/spaceinvaders/GameProject/doc/controller/class-use/ObjectController.html +++ b/spaceinvaders/GameProject/doc/controller/class-use/ObjectController.html @@ -1,11 +1,11 @@ - + Uses of Class controller.ObjectController - + @@ -56,14 +56,18 @@ loadScripts(document, 'script');
      Package
      Description
      -
       
      +
      +
      The package contains classes implementing a 'bounding box' area around game objects.
      +
      The controller package contains Object controllers that govern an objects behavior, without being involved in its collision or drawing properties.
      -
       
      +
      +
      The package gameobjects contains all objects with a visual representation on screen.
      +
        @@ -122,6 +126,14 @@ loadScripts(document, 'script');
         
        class 
        + +
         
        +
        class 
        + +
        +
        Controller to let Objects bounce from the outer level limits back and forth.
        +
        +
        class 
         
        class 
        diff --git a/spaceinvaders/GameProject/doc/controller/class-use/ReboundController.html b/spaceinvaders/GameProject/doc/controller/class-use/ReboundController.html index 70a8ab8..f0642e4 100644 --- a/spaceinvaders/GameProject/doc/controller/class-use/ReboundController.html +++ b/spaceinvaders/GameProject/doc/controller/class-use/ReboundController.html @@ -1,11 +1,11 @@ - + Uses of Class controller.ReboundController - + @@ -28,6 +28,7 @@ loadScripts(document, 'script');
        @@ -78,7 +79,44 @@ loadScripts(document, 'script');
        Class
        Description
        - + +
        +
        An EgoController which cannot move through obstacle objects (is collission aware).
        +
        + +
        +
        Controller using key events for up, down, left, right and space (shooting) to control the ego + object behavior.
        +
        + +
        +
        This class controls the space invaders.
        +
        + +
        +
        Controls background stars.
        +
        + +
        +
        Controls and abject that is deleted after a lifetime specified in the constructor, and when it + leaves the display.
        +
        + +
         
        + +
        +
        Class that controls the LOGICAL behavior of an object independently of how it is displayed or + drawn.
        +
        + +
         
        + +
        +
        Controller to let Objects bounce from the outer level limits back and forth.
        +
        + +
         
        +
         
        diff --git a/spaceinvaders/GameProject/doc/controller/package-tree.html b/spaceinvaders/GameProject/doc/controller/package-tree.html index 7545a9a..7cead62 100644 --- a/spaceinvaders/GameProject/doc/controller/package-tree.html +++ b/spaceinvaders/GameProject/doc/controller/package-tree.html @@ -1,11 +1,11 @@ - + controller Class Hierarchy - + @@ -28,6 +28,7 @@ loadScripts(document, 'script'); @@ -123,33 +129,45 @@ loadScripts(document, 'script');
        void
        EgoController.onDown(KeyEvent kc, GameObject ego)
        -
         
        +
        +
        moves ego down by SpaceInvadersLevel.EGOSPEED.
        +
        void
        EgoController.onLeft(KeyEvent kc, GameObject ego)
        -
         
        +
        +
        moves ego left by SpaceInvadersLevel.EGOSPEED.
        +
        void
        EgoController.onRight(KeyEvent kc, GameObject ego)
        -
         
        +
        +
        moves ego right by SpaceInvadersLevel.EGOSPEED.
        +
        void
        CollisionAwareEgoController.onSpace(KeyEvent e, GameObject ego)
        -
         
        +
        +
        calls superclass EgoController.onSpace(KeyEvent, GameObject) only, if the time elapsed since last pressing of space is above 0.1 ms.
        +
        void
        EgoController.onSpace(KeyEvent e, GameObject ego)
        -
        behavior for shooting on key space
        +
        behavior for shooting on key space.
        void
        EgoController.onStop(KeyEvent kc, GameObject ego)
        -
         
        +
        +
        sets speed to 0.0
        +
        void
        EgoController.onUp(KeyEvent kc, GameObject ego)
        -
         
        +
        + +
        void
        ObjectController.setObject(GameObject gameObject)
         
        diff --git a/spaceinvaders/GameProject/doc/gameobjects/class-use/RectObject.html b/spaceinvaders/GameProject/doc/gameobjects/class-use/RectObject.html index 5ba76e5..0221069 100644 --- a/spaceinvaders/GameProject/doc/gameobjects/class-use/RectObject.html +++ b/spaceinvaders/GameProject/doc/gameobjects/class-use/RectObject.html @@ -1,11 +1,11 @@ - + Uses of Class gameobjects.RectObject - + @@ -56,7 +56,9 @@ loadScripts(document, 'script');
        Package
        Description
        -
         
        +
        +
        The package gameobjects contains all objects with a visual representation on screen.
        +
          diff --git a/spaceinvaders/GameProject/doc/gameobjects/class-use/TextObject.html b/spaceinvaders/GameProject/doc/gameobjects/class-use/TextObject.html index 5d61b12..9f18454 100644 --- a/spaceinvaders/GameProject/doc/gameobjects/class-use/TextObject.html +++ b/spaceinvaders/GameProject/doc/gameobjects/class-use/TextObject.html @@ -1,11 +1,11 @@ - + Uses of Class gameobjects.TextObject - + @@ -56,7 +56,9 @@ loadScripts(document, 'script');
          Package
          Description
          -
           
          +
          +
          The package gameobjects contains all objects with a visual representation on screen.
          +
            diff --git a/spaceinvaders/GameProject/doc/gameobjects/package-summary.html b/spaceinvaders/GameProject/doc/gameobjects/package-summary.html index 18a8ba1..546a130 100644 --- a/spaceinvaders/GameProject/doc/gameobjects/package-summary.html +++ b/spaceinvaders/GameProject/doc/gameobjects/package-summary.html @@ -1,11 +1,11 @@ - + gameobjects - + @@ -41,7 +41,7 @@ loadScripts(document, 'script');
            @@ -61,6 +61,12 @@ loadScripts(document, 'script');

            package gameobjects
            +
            +
            The package gameobjects contains all objects with a visual representation on screen. + They can be combined to use controller instances for their behavior (subclasses of ObjectController). + The abstract base class is GameObject, which forces child-classes to implement the method + GameObject.updateObject().
            +
            • diff --git a/spaceinvaders/GameProject/doc/gameobjects/package-tree.html b/spaceinvaders/GameProject/doc/gameobjects/package-tree.html index a71281f..14744f0 100644 --- a/spaceinvaders/GameProject/doc/gameobjects/package-tree.html +++ b/spaceinvaders/GameProject/doc/gameobjects/package-tree.html @@ -1,11 +1,11 @@ - + gameobjects Class Hierarchy - + diff --git a/spaceinvaders/GameProject/doc/gameobjects/package-use.html b/spaceinvaders/GameProject/doc/gameobjects/package-use.html index edda1ab..a857a25 100644 --- a/spaceinvaders/GameProject/doc/gameobjects/package-use.html +++ b/spaceinvaders/GameProject/doc/gameobjects/package-use.html @@ -1,11 +1,11 @@ - + Uses of Package gameobjects - + @@ -56,16 +56,22 @@ loadScripts(document, 'script');
              Package
              Description
              -
               
              +
              +
              The package contains classes implementing a 'bounding box' area around game objects.
              +
              The controller package contains Object controllers that govern an objects behavior, without being involved in its collision or drawing properties.
              -
               
              +
              +
              The package gameobjects contains all objects with a visual representation on screen.
              +
              -
               
              +
              +
              The package playground contains all level specific logic and control of level logic.
              +
               
              diff --git a/spaceinvaders/GameProject/doc/help-doc.html b/spaceinvaders/GameProject/doc/help-doc.html index 733e571..fd9950a 100644 --- a/spaceinvaders/GameProject/doc/help-doc.html +++ b/spaceinvaders/GameProject/doc/help-doc.html @@ -1,11 +1,11 @@ - + API Help - + @@ -28,7 +28,8 @@ loadScripts(document, 'script');
            +
            +

            Constant Field Values

            +

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

            +

            All Packages

            The All Packages page contains an alphabetic index of all packages contained in the documentation.

            diff --git a/spaceinvaders/GameProject/doc/index-files/index-1.html b/spaceinvaders/GameProject/doc/index-files/index-1.html index ec48665..30c9fc0 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-1.html +++ b/spaceinvaders/GameProject/doc/index-files/index-1.html @@ -1,12 +1,12 @@ - -C-Index + +A-Index - - + + @@ -28,7 +28,8 @@ loadScripts(document, 'script'); diff --git a/spaceinvaders/GameProject/doc/index-files/index-10.html b/spaceinvaders/GameProject/doc/index-files/index-10.html index 3e75db5..7033bac 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-10.html +++ b/spaceinvaders/GameProject/doc/index-files/index-10.html @@ -1,11 +1,11 @@ - + L-Index - + @@ -62,7 +62,7 @@ loadScripts(document, 'script');
             
            Level2 - Class in playground
            -
            extends extends SpaceInvadersLevel with a different startup message.
            +
            extends SpaceInvadersLevel with a different startup message.
            Level2() - Constructor for class playground.Level2
             
            @@ -76,11 +76,7 @@ loadScripts(document, 'script');
             
            Level4 - Class in playground
            -
            extends extends SpaceInvadersLevel - - Hit aliens twice to kill them - they say AUA when not destroyed -
            +
            extends SpaceInvadersLevel with aliens that need two hits to be destroyed.
            Level4() - Constructor for class playground.Level4
             
            @@ -102,6 +98,11 @@ loadScripts(document, 'script');
            LevelBoss() - Constructor for class playground.LevelBoss
             
            +
            levelFinished() - Method in class playground.BreakoutLevelBase
            +
            +
            signals to game engine that the game has finished by success. called every game loop. default + implementation is always false.
            +
            levelFinished() - Method in class playground.Playground
             
            levelFinished() - Method in class playground.SpaceInvadersLevel
            @@ -114,6 +115,19 @@ loadScripts(document, 'script');
            constructor setting internal name to 'hitTwice'
            +
            LevelMovingHitObjects - Class in playground
            +
            +
            Level that creates two RectObjects moving around and if ego is hit by them game is directly lost + (lives = 0).
            +
            +
            LevelMovingHitObjects() - Constructor for class playground.LevelMovingHitObjects
            +
             
            +
            LevelMovingObjects - Class in playground
            +
            +
            This level adds two distracting objects to the canvas that cannot collide but bounce around all the time.
            +
            +
            LevelMovingObjects() - Constructor for class playground.LevelMovingObjects
            +
             
            LevelWithBox - Class in playground
            extends SpaceInvadersLevel with a red box.
            diff --git a/spaceinvaders/GameProject/doc/index-files/index-11.html b/spaceinvaders/GameProject/doc/index-files/index-11.html index 78f31ed..a90ff09 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-11.html +++ b/spaceinvaders/GameProject/doc/index-files/index-11.html @@ -1,11 +1,11 @@ - + M-Index - + @@ -54,10 +54,18 @@ loadScripts(document, 'script'); A B C D E F G H I L M O P R S T U W Z 
            All Classes and Interfaces|All Packages|Constant Field Values

            M

            +
            main(String[]) - Static method in class base.BreakoutGame
            +
            +
            starts this game.
            +
            main(String[]) - Static method in class base.GameLoop
            main to start the whole application.
            +
            main(String[]) - Static method in class base.MovingObjectsGame
            +
            +
            starts this game.
            +
            main(String[]) - Static method in class base.MultiLevelGame
             
            MASK - Static variable in class gameobjects.GameObject
            @@ -74,6 +82,12 @@ loadScripts(document, 'script');
             
            MineController(double) - Constructor for class controller.MineController
             
            +
            MovingObjectsGame - Class in base
            +
            +
            main class to start a game with only one level LevelMovingObjects.
            +
            +
            MovingObjectsGame() - Constructor for class base.MovingObjectsGame
            +
             
            MultiLevelGame - Class in base
             
            MultiLevelGame() - Constructor for class base.MultiLevelGame
            diff --git a/spaceinvaders/GameProject/doc/index-files/index-12.html b/spaceinvaders/GameProject/doc/index-files/index-12.html index 496446c..ea85083 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-12.html +++ b/spaceinvaders/GameProject/doc/index-files/index-12.html @@ -1,11 +1,11 @@ - + O-Index - + @@ -62,21 +62,33 @@ loadScripts(document, 'script');
            ObjectController() - Constructor for class controller.ObjectController
             
            onDown(KeyEvent, GameObject) - Method in class controller.EgoController
            -
             
            +
            +
            moves ego down by SpaceInvadersLevel.EGOSPEED.
            +
            onLeft(KeyEvent, GameObject) - Method in class controller.EgoController
            -
             
            +
            +
            moves ego left by SpaceInvadersLevel.EGOSPEED.
            +
            onRight(KeyEvent, GameObject) - Method in class controller.EgoController
            -
             
            +
            +
            moves ego right by SpaceInvadersLevel.EGOSPEED.
            +
            onSpace(KeyEvent, GameObject) - Method in class controller.CollisionAwareEgoController
            -
             
            +
            +
            calls superclass EgoController.onSpace(KeyEvent, GameObject) only, if the time elapsed since last pressing of space is above 0.1 ms.
            +
            onSpace(KeyEvent, GameObject) - Method in class controller.EgoController
            -
            behavior for shooting on key space
            +
            behavior for shooting on key space.
            onStop(KeyEvent, GameObject) - Method in class controller.EgoController
            -
             
            +
            +
            sets speed to 0.0
            +
            onUp(KeyEvent, GameObject) - Method in class controller.EgoController
            -
             
            +
            + +
            A B C D E F G H I L M O P R S T U W Z 
            All Classes and Interfaces|All Packages|Constant Field Values diff --git a/spaceinvaders/GameProject/doc/index-files/index-13.html b/spaceinvaders/GameProject/doc/index-files/index-13.html index 9d148be..1be8f10 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-13.html +++ b/spaceinvaders/GameProject/doc/index-files/index-13.html @@ -1,11 +1,11 @@ - + P-Index - + @@ -55,7 +55,9 @@ loadScripts(document, 'script');

            P

            playground - package playground
            -
             
            +
            +
            The package playground contains all level specific logic and control of level logic.
            +
            Playground - Class in playground
            Playground represents a level of the game, focusing on the game LOGIC, i.e., not so much on the @@ -63,18 +65,34 @@ loadScripts(document, 'script');
            Playground() - Constructor for class playground.Playground
             
            +
            preferredSizeX() - Method in class playground.BreakoutLevelBase
            +
            +
            Signal that the level has a size of 700x700 pixels.
            +
            preferredSizeX() - Method in class playground.Playground
             
            preferredSizeX() - Method in class playground.SpaceInvadersLevel
            calculates and returns the preferred size of the level (in pixel) for X-direction
            +
            preferredSizeY() - Method in class playground.BreakoutLevelBase
            +
            +
            Signal that the level has a size of 700x700 pixels.
            +
            preferredSizeY() - Method in class playground.Playground
             
            preferredSizeY() - Method in class playground.SpaceInvadersLevel
            calculates and returns the preferred size of the level (in pixel) for Y-direction
            +
            prepareLevel(String) - Method in class playground.BreakoutLevelBase
            +
            +
            Prepares a generic Breakout-Type level.
            +
            +
            prepareLevel(String) - Method in class playground.LevelMovingHitObjects
            +
             
            +
            prepareLevel(String) - Method in class playground.LevelMovingObjects
            +
             
            prepareLevel(String) - Method in class playground.LevelWithBox
            Method creates a new Object RectObject named RedBox.
            diff --git a/spaceinvaders/GameProject/doc/index-files/index-14.html b/spaceinvaders/GameProject/doc/index-files/index-14.html index d9d5e12..980a7e8 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-14.html +++ b/spaceinvaders/GameProject/doc/index-files/index-14.html @@ -1,11 +1,11 @@ - + R-Index - + @@ -58,6 +58,16 @@ loadScripts(document, 'script');
             
            readHSFromFile() - Method in class playground.HighscoreManager
             
            +
            ReboundController - Class in controller
            +
             
            +
            ReboundController() - Constructor for class controller.ReboundController
            +
             
            +
            ReboundController2 - Class in controller
            +
            +
            Controller to let Objects bounce from the outer level limits back and forth.
            +
            +
            ReboundController2() - Constructor for class controller.ReboundController2
            +
             
            RECTANGLE - Static variable in class gameobjects.GameObject
             
            RectArtist - Class in rendering
            @@ -84,6 +94,10 @@ loadScripts(document, 'script');
            Internal, do not call directly.
            +
            redrawLevel(Graphics2D) - Method in class playground.BreakoutLevelBase
            +
            +
            unimplemented empty method called by game engine every loop.
            +
            redrawLevel(Graphics2D) - Method in class playground.Playground
            To be redefined!!
            @@ -106,8 +120,15 @@ loadScripts(document, 'script');
            mode can be: FLAGS_ALL (all), FLAGS_GLOBAL(global), FLAGs_LEVEL(level)
            +
            resetRequested() - Method in class playground.BreakoutLevelBase
            +
            +
            signals to game engine that the game has been requested to be reseted (restart). called every + game loop. default implementation is always false.
            +
            restoreDynamicState() - Method in class controller.CollisionAwareEgoController
            -
             
            +
            +
            Restores formally saved values of x,y position and speed vx,vy from attributes back to the ego object.
            +
            runGame(String[]) - Method in class base.GameLoop
            loops over all GameLoop.levels and implements the game loop to update continuously the level diff --git a/spaceinvaders/GameProject/doc/index-files/index-15.html b/spaceinvaders/GameProject/doc/index-files/index-15.html index 623b0d8..f26f69c 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-15.html +++ b/spaceinvaders/GameProject/doc/index-files/index-15.html @@ -1,11 +1,11 @@ - + S-Index - + @@ -57,7 +57,9 @@ loadScripts(document, 'script');
            save() - Static method in class playground.SaveGame
             
            saveDynamicState() - Method in class controller.CollisionAwareEgoController
            -
             
            +
            +
            Copies current values of x,y position and speed vx,vy into attributes.
            +
            SaveGame - Class in playground
             
            SaveGame() - Constructor for class playground.SaveGame
            @@ -182,7 +184,9 @@ loadScripts(document, 'script');
            SpaceInvadersLevelAua() - Constructor for class playground.SpaceInvadersLevelAua
             
            stopObject() - Method in class controller.CollisionAwareEgoController
            -
             
            +
            +
            extends parent class implementation by a check whether or not the ego object collides with any other "obstacle" object.
            +
            stopObject() - Method in class controller.EgoController
            checks the position and respects level boundaries and own radius or width/height set on constructor.
            diff --git a/spaceinvaders/GameProject/doc/index-files/index-16.html b/spaceinvaders/GameProject/doc/index-files/index-16.html index 6a6ca92..2e5d241 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-16.html +++ b/spaceinvaders/GameProject/doc/index-files/index-16.html @@ -1,11 +1,11 @@ - + T-Index - + diff --git a/spaceinvaders/GameProject/doc/index-files/index-17.html b/spaceinvaders/GameProject/doc/index-files/index-17.html index b150c31..c45fdf7 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-17.html +++ b/spaceinvaders/GameProject/doc/index-files/index-17.html @@ -1,11 +1,11 @@ - + U-Index - + @@ -58,7 +58,7 @@ loadScripts(document, 'script');
             
            updateObject() - Method in class controller.EgoController
            -
            updates position based on key events (mouse currently ignored)
            +
            updates position based on key events (mouse currently ignored).
            updateObject() - Method in class controller.EnemyController
             
            @@ -72,6 +72,12 @@ loadScripts(document, 'script');
            Is called once every game time step by the game itself.
            +
            updateObject() - Method in class controller.ReboundController
            +
             
            +
            updateObject() - Method in class controller.ReboundController2
            +
            +
            inverts the x y direction speeds if the outer limits are reached.
            +
            updateObject() - Method in class controller.SimpleShotController
             
            updateObject() - Method in class controller.ZickZackController
            diff --git a/spaceinvaders/GameProject/doc/index-files/index-18.html b/spaceinvaders/GameProject/doc/index-files/index-18.html index 36030a7..4a2c8d8 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-18.html +++ b/spaceinvaders/GameProject/doc/index-files/index-18.html @@ -1,11 +1,11 @@ - + W-Index - + diff --git a/spaceinvaders/GameProject/doc/index-files/index-19.html b/spaceinvaders/GameProject/doc/index-files/index-19.html index 3128c1d..12dda55 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-19.html +++ b/spaceinvaders/GameProject/doc/index-files/index-19.html @@ -1,11 +1,11 @@ - + Z-Index - + diff --git a/spaceinvaders/GameProject/doc/index-files/index-2.html b/spaceinvaders/GameProject/doc/index-files/index-2.html index 22eff4b..773cc97 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-2.html +++ b/spaceinvaders/GameProject/doc/index-files/index-2.html @@ -1,12 +1,12 @@ - -R-Index + +B-Index - - + + @@ -28,7 +28,8 @@ loadScripts(document, 'script'); diff --git a/spaceinvaders/GameProject/doc/index-files/index-3.html b/spaceinvaders/GameProject/doc/index-files/index-3.html index 97955ba..d0315f7 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-3.html +++ b/spaceinvaders/GameProject/doc/index-files/index-3.html @@ -1,12 +1,12 @@ - -U-Index + +C-Index - - + + @@ -28,7 +28,8 @@ loadScripts(document, 'script'); diff --git a/spaceinvaders/GameProject/doc/index-files/index-4.html b/spaceinvaders/GameProject/doc/index-files/index-4.html index bc508a7..d10cc4a 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-4.html +++ b/spaceinvaders/GameProject/doc/index-files/index-4.html @@ -1,11 +1,11 @@ - + D-Index - + @@ -54,6 +54,14 @@ loadScripts(document, 'script'); A B C D E F G H I L M O P R S T U W Z 
            All Classes and Interfaces|All Packages|Constant Field Values

            D

            +
            defineLevels() - Method in class base.BreakoutGame
            +
            +
            adds only one level to play (playground.LevelBreakout1).
            +
            +
            defineLevels() - Method in class base.MovingObjectsGame
            +
            +
            adds only one level to play (LevelMovingObjects).
            +
            deleteObject(String) - Method in class playground.Playground
            Removes a graphics object from a level.
            diff --git a/spaceinvaders/GameProject/doc/index-files/index-5.html b/spaceinvaders/GameProject/doc/index-files/index-5.html index d3b0bf3..8ec742c 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-5.html +++ b/spaceinvaders/GameProject/doc/index-files/index-5.html @@ -1,11 +1,11 @@ - + E-Index - + diff --git a/spaceinvaders/GameProject/doc/index-files/index-6.html b/spaceinvaders/GameProject/doc/index-files/index-6.html index 67c2e9e..1f4428a 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-6.html +++ b/spaceinvaders/GameProject/doc/index-files/index-6.html @@ -1,11 +1,11 @@ - + F-Index - + diff --git a/spaceinvaders/GameProject/doc/index-files/index-7.html b/spaceinvaders/GameProject/doc/index-files/index-7.html index 7b1a798..223c112 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-7.html +++ b/spaceinvaders/GameProject/doc/index-files/index-7.html @@ -1,11 +1,11 @@ - + G-Index - + @@ -78,7 +78,14 @@ loadScripts(document, 'script'); GameObject belongs to.
            gameobjects - package gameobjects
            -
             
            +
            +
            The package gameobjects contains all objects with a visual representation on screen.
            +
            +
            gameOver() - Method in class playground.BreakoutLevelBase
            +
            +
            signals to game engine that the game has finished by game over. called every game loop. default + implementation is always false.
            +
            gameOver() - Method in class playground.Playground
             
            gameOver() - Method in class playground.SpaceInvadersLevel
            diff --git a/spaceinvaders/GameProject/doc/index-files/index-8.html b/spaceinvaders/GameProject/doc/index-files/index-8.html index d813929..9eaa9a0 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-8.html +++ b/spaceinvaders/GameProject/doc/index-files/index-8.html @@ -1,11 +1,11 @@ - + H-Index - + diff --git a/spaceinvaders/GameProject/doc/index-files/index-9.html b/spaceinvaders/GameProject/doc/index-files/index-9.html index c261f2c..faf9509 100644 --- a/spaceinvaders/GameProject/doc/index-files/index-9.html +++ b/spaceinvaders/GameProject/doc/index-files/index-9.html @@ -1,11 +1,11 @@ - + I-Index - + diff --git a/spaceinvaders/GameProject/doc/index.html b/spaceinvaders/GameProject/doc/index.html index b98bc3a..3368504 100644 --- a/spaceinvaders/GameProject/doc/index.html +++ b/spaceinvaders/GameProject/doc/index.html @@ -1,26 +1,85 @@ - -Generated Documentation (Untitled) + +Overview - - - - + + + - - + + + + + - -
            + + -

            controller/package-summary.html

            +
            + +
            +
            +
            +
            Packages
            +
            +
            Package
            +
            Description
            + +
             
            + +
            +
            The package contains classes implementing a 'bounding box' area around game objects.
            +
            + +
            +
            The controller package contains Object controllers that govern an objects behavior, without being + involved in its collision or drawing properties.
            +
            + +
            +
            The package gameobjects contains all objects with a visual representation on screen.
            +
            + +
            +
            The package playground contains all level specific logic and control of level logic.
            +
            + +
             
            + +
             
            +
            +
            +
            +
            diff --git a/spaceinvaders/GameProject/doc/jquery-ui.overrides.css b/spaceinvaders/GameProject/doc/jquery-ui.overrides.css index f89acb6..1abff95 100644 --- a/spaceinvaders/GameProject/doc/jquery-ui.overrides.css +++ b/spaceinvaders/GameProject/doc/jquery-ui.overrides.css @@ -1,26 +1,26 @@ /* * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * */ .ui-state-active, diff --git a/spaceinvaders/GameProject/doc/member-search-index.js b/spaceinvaders/GameProject/doc/member-search-index.js index d62b223..344facf 100644 --- a/spaceinvaders/GameProject/doc/member-search-index.js +++ b/spaceinvaders/GameProject/doc/member-search-index.js @@ -1 +1 @@ -memberSearchIndex = [{"p":"controller","c":"ReboundController","l":"ReboundController()","u":"%3Cinit%3E()"},{"p":"controller","c":"ReboundController","l":"updateObject()"}];updateSearchResults(); \ No newline at end of file +memberSearchIndex = [{"p":"ui","c":"GameUI","l":"ACTION_ABOUT"},{"p":"ui","c":"GameUI","l":"ACTION_BUTTON"},{"p":"ui","c":"GameUI","l":"ACTION_LOAD"},{"p":"ui","c":"GameUI","l":"ACTION_NEW"},{"p":"ui","c":"GameUI","l":"ACTION_PAUSE"},{"p":"ui","c":"GameUI","l":"ACTION_QUIT"},{"p":"ui","c":"GameUI","l":"ACTION_RESET"},{"p":"ui","c":"GameUI","l":"ACTION_SAVE"},{"p":"ui","c":"GameUI","l":"actionPerformed(ActionEvent)","u":"actionPerformed(java.awt.event.ActionEvent)"},{"p":"gameobjects","c":"GameObject","l":"addArtist(Artist)","u":"addArtist(rendering.Artist)"},{"p":"gameobjects","c":"GameObject","l":"addCollider(Collider)","u":"addCollider(collider.Collider)"},{"p":"gameobjects","c":"GameObject","l":"addController(ObjectController)","u":"addController(controller.ObjectController)"},{"p":"playground","c":"Playground","l":"addObject(GameObject)","u":"addObject(gameobjects.GameObject)"},{"p":"playground","c":"Playground","l":"addObjectNow(GameObject)","u":"addObjectNow(gameobjects.GameObject)"},{"p":"gameobjects","c":"AnimatedGameobject","l":"AnimatedGameobject(String, Playground, double, double, double, double, double, Animation, double, String)","u":"%3Cinit%3E(java.lang.String,playground.Playground,double,double,double,double,double,playground.Animation,double,java.lang.String)"},{"p":"playground","c":"Animation","l":"Animation(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"rendering","c":"AnimationArtist","l":"AnimationArtist(GameObject, Animation, double, String, double)","u":"%3Cinit%3E(gameobjects.GameObject,playground.Animation,double,java.lang.String,double)"},{"p":"playground","c":"BreakoutLevelBase","l":"applyGameLogic()"},{"p":"playground","c":"Playground","l":"applyGameLogic()"},{"p":"playground","c":"SpaceInvadersLevel","l":"applyGameLogic()"},{"p":"controller","c":"ObjectController","l":"applySpeedVector()"},{"p":"base","c":"BreakoutGame","l":"BreakoutGame()","u":"%3Cinit%3E()"},{"p":"playground","c":"BreakoutLevelBase","l":"BreakoutLevelBase()","u":"%3Cinit%3E()"},{"p":"collider","c":"CircleCollider","l":"checkCollisionCircCirc(Collider)","u":"checkCollisionCircCirc(collider.Collider)"},{"p":"collider","c":"RectCollider","l":"checkCollisionRectCirc(Collider)","u":"checkCollisionRectCirc(collider.Collider)"},{"p":"collider","c":"RectCollider","l":"checkCollisionRectRect(Collider)","u":"checkCollisionRectRect(collider.Collider)"},{"p":"rendering","c":"CircleArtist","l":"CircleArtist(GameObject)","u":"%3Cinit%3E(gameobjects.GameObject)"},{"p":"rendering","c":"CircleArtist","l":"CircleArtist(GameObject, double, Color)","u":"%3Cinit%3E(gameobjects.GameObject,double,java.awt.Color)"},{"p":"collider","c":"CircleCollider","l":"CircleCollider(String, GameObject, double)","u":"%3Cinit%3E(java.lang.String,gameobjects.GameObject,double)"},{"p":"playground","c":"HighscoreManager","l":"closeFile()"},{"p":"playground","c":"Playground","l":"collectObjects(String, boolean)","u":"collectObjects(java.lang.String,boolean)"},{"p":"collider","c":"Collider","l":"Collider(String, GameObject)","u":"%3Cinit%3E(java.lang.String,gameobjects.GameObject)"},{"p":"collider","c":"CircleCollider","l":"collidesWith(Collider)","u":"collidesWith(collider.Collider)"},{"p":"collider","c":"Collider","l":"collidesWith(Collider)","u":"collidesWith(collider.Collider)"},{"p":"collider","c":"RectCollider","l":"collidesWith(Collider)","u":"collidesWith(collider.Collider)"},{"p":"controller","c":"CollisionAwareEgoController","l":"CollisionAwareEgoController(double)","u":"%3Cinit%3E(double)"},{"p":"controller","c":"CollisionAwareEgoController","l":"CollisionAwareEgoController(double, File)","u":"%3Cinit%3E(double,java.io.File)"},{"p":"gameobjects","c":"GameObject","l":"collisionDetection(GameObject)","u":"collisionDetection(gameobjects.GameObject)"},{"p":"base","c":"BreakoutGame","l":"defineLevels()"},{"p":"base","c":"MovingObjectsGame","l":"defineLevels()"},{"p":"playground","c":"Playground","l":"deleteObject(String)","u":"deleteObject(java.lang.String)"},{"p":"playground","c":"Playground","l":"deleteObjectNow(String)","u":"deleteObjectNow(java.lang.String)"},{"p":"gameobjects","c":"GameObject","l":"draw(Graphics2D)","u":"draw(java.awt.Graphics2D)"},{"p":"rendering","c":"AnimationArtist","l":"draw(Graphics2D)","u":"draw(java.awt.Graphics2D)"},{"p":"rendering","c":"Artist","l":"draw(Graphics2D)","u":"draw(java.awt.Graphics2D)"},{"p":"rendering","c":"CircleArtist","l":"draw(Graphics2D)","u":"draw(java.awt.Graphics2D)"},{"p":"rendering","c":"RectArtist","l":"draw(Graphics2D)","u":"draw(java.awt.Graphics2D)"},{"p":"rendering","c":"TextArtist","l":"draw(Graphics2D)","u":"draw(java.awt.Graphics2D)"},{"p":"controller","c":"EgoController","l":"EgoController(double)","u":"%3Cinit%3E(double)"},{"p":"controller","c":"EgoController","l":"EgoController(double, double)","u":"%3Cinit%3E(double,double)"},{"p":"gameobjects","c":"EgoObject","l":"EgoObject(String, Playground, double, double, double, double, double)","u":"%3Cinit%3E(java.lang.String,playground.Playground,double,double,double,double,double)"},{"p":"playground","c":"SpaceInvadersLevel","l":"EGOSPEED"},{"p":"controller","c":"EnemyController","l":"EnemyController()","u":"%3Cinit%3E()"},{"p":"gameobjects","c":"FallingStar","l":"FallingStar(String, Playground, double, double, double, double, Color, double)","u":"%3Cinit%3E(java.lang.String,playground.Playground,double,double,double,double,java.awt.Color,double)"},{"p":"controller","c":"FallingStarController","l":"FallingStarController()","u":"%3Cinit%3E()"},{"p":"playground","c":"Animation","l":"fileList"},{"p":"playground","c":"Playground","l":"FLAGS_ALL"},{"p":"playground","c":"Playground","l":"FLAGS_GLOBAL"},{"p":"playground","c":"Playground","l":"FLAGS_LEVEL"},{"p":"base","c":"GameLoop","l":"GameLoop()","u":"%3Cinit%3E()"},{"p":"gameobjects","c":"GameObject","l":"GameObject(String, Playground, double, double, double, double)","u":"%3Cinit%3E(java.lang.String,playground.Playground,double,double,double,double)"},{"p":"gameobjects","c":"GameObject","l":"GameObject(String, Playground, ObjectController, double, double, double, double)","u":"%3Cinit%3E(java.lang.String,playground.Playground,controller.ObjectController,double,double,double,double)"},{"p":"playground","c":"BreakoutLevelBase","l":"gameOver()"},{"p":"playground","c":"Playground","l":"gameOver()"},{"p":"playground","c":"SpaceInvadersLevel","l":"gameOver()"},{"p":"ui","c":"GameUI","l":"GameUI(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"gameobjects","c":"AnimatedGameobject","l":"generateColliders()"},{"p":"gameobjects","c":"EgoObject","l":"generateColliders()"},{"p":"gameobjects","c":"GameObject","l":"generateColliders()"},{"p":"gameobjects","c":"RectObject","l":"generateColliders()"},{"p":"gameobjects","c":"TextObject","l":"generateColliders()"},{"p":"ui","c":"GameUI","l":"getCurrentKey()"},{"p":"playground","c":"Animation","l":"getFileList()"},{"p":"gameobjects","c":"GameObject","l":"getGameTime()"},{"p":"playground","c":"Playground","l":"getGameTime()"},{"p":"rendering","c":"Artist","l":"getGameTime()"},{"p":"playground","c":"Playground","l":"getGlobalFlag(String)","u":"getGlobalFlag(java.lang.String)"},{"p":"rendering","c":"AnimationArtist","l":"getH()"},{"p":"gameobjects","c":"RectObject","l":"getHeight()"},{"p":"collider","c":"Collider","l":"getId()"},{"p":"gameobjects","c":"GameObject","l":"getId()"},{"p":"playground","c":"Animation","l":"getImageList()"},{"p":"playground","c":"Playground","l":"getKeyEvents()"},{"p":"ui","c":"GameUI","l":"getKeyEvents()"},{"p":"playground","c":"Playground","l":"getLevelFlag(String)","u":"getLevelFlag(java.lang.String)"},{"p":"playground","c":"Playground","l":"getMouseEvents()"},{"p":"ui","c":"GameUI","l":"getMouseEvents()"},{"p":"ui","c":"GameUI","l":"getNewAction()"},{"p":"playground","c":"Playground","l":"getObject(String)","u":"getObject(java.lang.String)"},{"p":"gameobjects","c":"GameObject","l":"getObjectController()"},{"p":"gameobjects","c":"GameObject","l":"getObjectFlag(String)","u":"getObjectFlag(java.lang.String)"},{"p":"playground","c":"Playground","l":"getOrCreateGlobalFlag(String, Object)","u":"getOrCreateGlobalFlag(java.lang.String,java.lang.Object)"},{"p":"playground","c":"Playground","l":"getOrCreateLevelFlag(String, Object)","u":"getOrCreateLevelFlag(java.lang.String,java.lang.Object)"},{"p":"gameobjects","c":"GameObject","l":"getOrCreateObjectFlag(String, Object)","u":"getOrCreateObjectFlag(java.lang.String,java.lang.Object)"},{"p":"controller","c":"ObjectController","l":"getPlayground()"},{"p":"gameobjects","c":"GameObject","l":"getPlayground()"},{"p":"playground","c":"Animation","l":"getShowtimeList()"},{"p":"playground","c":"Playground","l":"getSizeX()"},{"p":"playground","c":"Playground","l":"getSizeY()"},{"p":"gameobjects","c":"TextObject","l":"getText()"},{"p":"rendering","c":"TextArtist","l":"getText()"},{"p":"rendering","c":"TextArtist","l":"getTextHeight()"},{"p":"rendering","c":"TextArtist","l":"getTextWidth()"},{"p":"controller","c":"ObjectController","l":"getTimestep()"},{"p":"playground","c":"Playground","l":"getTimestep()"},{"p":"controller","c":"ObjectController","l":"getVX()"},{"p":"gameobjects","c":"GameObject","l":"getVX()"},{"p":"rendering","c":"Artist","l":"getVX()"},{"p":"controller","c":"ObjectController","l":"getVY()"},{"p":"gameobjects","c":"GameObject","l":"getVY()"},{"p":"rendering","c":"Artist","l":"getVY()"},{"p":"rendering","c":"AnimationArtist","l":"getW()"},{"p":"gameobjects","c":"RectObject","l":"getWidth()"},{"p":"collider","c":"Collider","l":"getX()"},{"p":"controller","c":"ObjectController","l":"getX()"},{"p":"gameobjects","c":"GameObject","l":"getX()"},{"p":"rendering","c":"Artist","l":"getX()"},{"p":"collider","c":"Collider","l":"getY()"},{"p":"controller","c":"ObjectController","l":"getY()"},{"p":"gameobjects","c":"GameObject","l":"getY()"},{"p":"rendering","c":"Artist","l":"getY()"},{"p":"ui","c":"GameUI","l":"grabFocus()"},{"p":"playground","c":"HighscoreManager","l":"HighscoreManager()","u":"%3Cinit%3E()"},{"p":"collider","c":"Collider","l":"id"},{"p":"gameobjects","c":"GameObject","l":"id"},{"p":"playground","c":"Animation","l":"imageList"},{"p":"gameobjects","c":"GameObject","l":"isActive()"},{"p":"ui","c":"GameUI","l":"isPainting()"},{"p":"playground","c":"Playground","l":"isPaused()"},{"p":"playground","c":"Level1","l":"Level1()","u":"%3Cinit%3E()"},{"p":"playground","c":"Level2","l":"Level2()","u":"%3Cinit%3E()"},{"p":"playground","c":"Level3","l":"Level3()","u":"%3Cinit%3E()"},{"p":"playground","c":"Level4","l":"Level4()","u":"%3Cinit%3E()"},{"p":"playground","c":"Level5","l":"Level5()","u":"%3Cinit%3E()"},{"p":"playground","c":"Level6","l":"Level6()","u":"%3Cinit%3E()"},{"p":"playground","c":"Level7","l":"Level7()","u":"%3Cinit%3E()"},{"p":"playground","c":"LevelBoss","l":"LevelBoss()","u":"%3Cinit%3E()"},{"p":"playground","c":"BreakoutLevelBase","l":"levelFinished()"},{"p":"playground","c":"Playground","l":"levelFinished()"},{"p":"playground","c":"SpaceInvadersLevel","l":"levelFinished()"},{"p":"playground","c":"LevelHitTwice","l":"LevelHitTwice()","u":"%3Cinit%3E()"},{"p":"playground","c":"LevelMovingHitObjects","l":"LevelMovingHitObjects()","u":"%3Cinit%3E()"},{"p":"playground","c":"LevelMovingObjects","l":"LevelMovingObjects()","u":"%3Cinit%3E()"},{"p":"playground","c":"LevelWithBox","l":"LevelWithBox()","u":"%3Cinit%3E()"},{"p":"controller","c":"LimitedTimeController","l":"LimitedTimeController(double, double)","u":"%3Cinit%3E(double,double)"},{"p":"base","c":"BreakoutGame","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"base","c":"GameLoop","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"base","c":"MovingObjectsGame","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"base","c":"MultiLevelGame","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"gameobjects","c":"GameObject","l":"MASK"},{"p":"playground","c":"Level4","l":"MAX_HITS"},{"p":"playground","c":"LevelHitTwice","l":"MAX_HITS"},{"p":"controller","c":"MineController","l":"MineController(double)","u":"%3Cinit%3E(double)"},{"p":"base","c":"MovingObjectsGame","l":"MovingObjectsGame()","u":"%3Cinit%3E()"},{"p":"base","c":"MultiLevelGame","l":"MultiLevelGame()","u":"%3Cinit%3E()"},{"p":"playground","c":"Music","l":"Music()","u":"%3Cinit%3E()"},{"p":"playground","c":"Music","l":"music(File)","u":"music(java.io.File)"},{"p":"controller","c":"ObjectController","l":"ObjectController()","u":"%3Cinit%3E()"},{"p":"controller","c":"EgoController","l":"onDown(KeyEvent, GameObject)","u":"onDown(java.awt.event.KeyEvent,gameobjects.GameObject)"},{"p":"controller","c":"EgoController","l":"onLeft(KeyEvent, GameObject)","u":"onLeft(java.awt.event.KeyEvent,gameobjects.GameObject)"},{"p":"controller","c":"EgoController","l":"onRight(KeyEvent, GameObject)","u":"onRight(java.awt.event.KeyEvent,gameobjects.GameObject)"},{"p":"controller","c":"CollisionAwareEgoController","l":"onSpace(KeyEvent, GameObject)","u":"onSpace(java.awt.event.KeyEvent,gameobjects.GameObject)"},{"p":"controller","c":"EgoController","l":"onSpace(KeyEvent, GameObject)","u":"onSpace(java.awt.event.KeyEvent,gameobjects.GameObject)"},{"p":"controller","c":"EgoController","l":"onStop(KeyEvent, GameObject)","u":"onStop(java.awt.event.KeyEvent,gameobjects.GameObject)"},{"p":"controller","c":"EgoController","l":"onUp(KeyEvent, GameObject)","u":"onUp(java.awt.event.KeyEvent,gameobjects.GameObject)"},{"p":"playground","c":"Playground","l":"Playground()","u":"%3Cinit%3E()"},{"p":"playground","c":"BreakoutLevelBase","l":"preferredSizeX()"},{"p":"playground","c":"Playground","l":"preferredSizeX()"},{"p":"playground","c":"SpaceInvadersLevel","l":"preferredSizeX()"},{"p":"playground","c":"BreakoutLevelBase","l":"preferredSizeY()"},{"p":"playground","c":"Playground","l":"preferredSizeY()"},{"p":"playground","c":"SpaceInvadersLevel","l":"preferredSizeY()"},{"p":"playground","c":"BreakoutLevelBase","l":"prepareLevel(String)","u":"prepareLevel(java.lang.String)"},{"p":"playground","c":"LevelMovingHitObjects","l":"prepareLevel(String)","u":"prepareLevel(java.lang.String)"},{"p":"playground","c":"LevelMovingObjects","l":"prepareLevel(String)","u":"prepareLevel(java.lang.String)"},{"p":"playground","c":"LevelWithBox","l":"prepareLevel(String)","u":"prepareLevel(java.lang.String)"},{"p":"playground","c":"Playground","l":"prepareLevel(String)","u":"prepareLevel(java.lang.String)"},{"p":"playground","c":"SpaceInvadersLevel","l":"prepareLevel(String)","u":"prepareLevel(java.lang.String)"},{"p":"playground","c":"Playground","l":"processKeyEvents(Stack)","u":"processKeyEvents(java.util.Stack)"},{"p":"playground","c":"Playground","l":"processMouseEvents(Stack)","u":"processMouseEvents(java.util.Stack)"},{"p":"gameobjects","c":"GameObject","l":"RADIUS"},{"p":"playground","c":"HighscoreManager","l":"readHSFromFile()"},{"p":"controller","c":"ReboundController","l":"ReboundController()","u":"%3Cinit%3E()"},{"p":"controller","c":"ReboundController2","l":"ReboundController2()","u":"%3Cinit%3E()"},{"p":"gameobjects","c":"GameObject","l":"RECTANGLE"},{"p":"rendering","c":"RectArtist","l":"RectArtist(GameObject, double, double, Color)","u":"%3Cinit%3E(gameobjects.GameObject,double,double,java.awt.Color)"},{"p":"collider","c":"RectCollider","l":"RectCollider(String, GameObject, double, double)","u":"%3Cinit%3E(java.lang.String,gameobjects.GameObject,double,double)"},{"p":"gameobjects","c":"RectObject","l":"RectObject(String, Playground, double, double, double, double, double, double, Color)","u":"%3Cinit%3E(java.lang.String,playground.Playground,double,double,double,double,double,double,java.awt.Color)"},{"p":"playground","c":"Playground","l":"redraw(Graphics2D)","u":"redraw(java.awt.Graphics2D)"},{"p":"playground","c":"BreakoutLevelBase","l":"redrawLevel(Graphics2D)","u":"redrawLevel(java.awt.Graphics2D)"},{"p":"playground","c":"Playground","l":"redrawLevel(Graphics2D)","u":"redrawLevel(java.awt.Graphics2D)"},{"p":"playground","c":"SpaceInvadersLevel","l":"redrawLevel(Graphics2D)","u":"redrawLevel(java.awt.Graphics2D)"},{"p":"ui","c":"GameUI","l":"repaint()"},{"p":"playground","c":"Playground","l":"reset()"},{"p":"ui","c":"GameUI","l":"resetAction()"},{"p":"playground","c":"Playground","l":"resetFlags(int)"},{"p":"playground","c":"BreakoutLevelBase","l":"resetRequested()"},{"p":"controller","c":"CollisionAwareEgoController","l":"restoreDynamicState()"},{"p":"base","c":"GameLoop","l":"runGame(String[])","u":"runGame(java.lang.String[])"},{"p":"playground","c":"SaveGame","l":"save()"},{"p":"controller","c":"CollisionAwareEgoController","l":"saveDynamicState()"},{"p":"playground","c":"SaveGame","l":"SaveGame()","u":"%3Cinit%3E()"},{"p":"gameobjects","c":"GameObject","l":"scol"},{"p":"gameobjects","c":"GameObject","l":"setActive(boolean)"},{"p":"gameobjects","c":"GameObject","l":"setColliders(LinkedList)","u":"setColliders(java.util.LinkedList)"},{"p":"gameobjects","c":"GameObject","l":"setComponentProperty(String, String, Object)","u":"setComponentProperty(java.lang.String,java.lang.String,java.lang.Object)"},{"p":"collider","c":"Collider","l":"setController(ObjectController)","u":"setController(controller.ObjectController)"},{"p":"controller","c":"ObjectController","l":"setDummy(String)","u":"setDummy(java.lang.String)"},{"p":"playground","c":"Playground","l":"setGameTime(double)"},{"p":"playground","c":"Playground","l":"setGlobalFlag(String, Object)","u":"setGlobalFlag(java.lang.String,java.lang.Object)"},{"p":"playground","c":"Playground","l":"setLevelFlag(String, Object)","u":"setLevelFlag(java.lang.String,java.lang.Object)"},{"p":"collider","c":"Collider","l":"setObject(GameObject)","u":"setObject(gameobjects.GameObject)"},{"p":"controller","c":"ObjectController","l":"setObject(GameObject)","u":"setObject(gameobjects.GameObject)"},{"p":"gameobjects","c":"GameObject","l":"setObjectController(ObjectController)","u":"setObjectController(controller.ObjectController)"},{"p":"gameobjects","c":"GameObject","l":"setObjectFlag(String, Object)","u":"setObjectFlag(java.lang.String,java.lang.Object)"},{"p":"collider","c":"Collider","l":"setOffsets(double, double)","u":"setOffsets(double,double)"},{"p":"ui","c":"GameUI","l":"setPainting()"},{"p":"playground","c":"Playground","l":"setPaused(boolean)"},{"p":"collider","c":"Collider","l":"setPlayground(Playground)","u":"setPlayground(playground.Playground)"},{"p":"controller","c":"ObjectController","l":"setPlayground(Playground)","u":"setPlayground(playground.Playground)"},{"p":"gameobjects","c":"GameObject","l":"setPlayground(Playground)","u":"setPlayground(playground.Playground)"},{"p":"ui","c":"GameUI","l":"setPlayground(Playground)","u":"setPlayground(playground.Playground)"},{"p":"gameobjects","c":"TextObject","l":"setText(String)","u":"setText(java.lang.String)"},{"p":"rendering","c":"TextArtist","l":"setText(String)","u":"setText(java.lang.String)"},{"p":"rendering","c":"TextArtist","l":"setTextHeight(double)"},{"p":"rendering","c":"TextArtist","l":"setTextWidth(double)"},{"p":"playground","c":"Playground","l":"setTimestep(double)"},{"p":"controller","c":"ObjectController","l":"setVX(double)"},{"p":"gameobjects","c":"GameObject","l":"setVX(double)"},{"p":"controller","c":"ObjectController","l":"setVY(double)"},{"p":"gameobjects","c":"GameObject","l":"setVY(double)"},{"p":"controller","c":"ObjectController","l":"setX(double)"},{"p":"gameobjects","c":"GameObject","l":"setX(double)"},{"p":"controller","c":"ObjectController","l":"setY(double)"},{"p":"gameobjects","c":"GameObject","l":"setY(double)"},{"p":"playground","c":"SpaceInvadersLevel","l":"SHOTSPEED"},{"p":"playground","c":"Animation","l":"showtimeList"},{"p":"controller","c":"SimpleShotController","l":"SimpleShotController()","u":"%3Cinit%3E()"},{"p":"base","c":"GameLoop","l":"SIZEX"},{"p":"base","c":"GameLoop","l":"SIZEY"},{"p":"playground","c":"SpaceInvadersLevel","l":"SpaceInvadersLevel()","u":"%3Cinit%3E()"},{"p":"playground","c":"SpaceInvadersLevelAua","l":"SpaceInvadersLevelAua()","u":"%3Cinit%3E()"},{"p":"controller","c":"CollisionAwareEgoController","l":"stopObject()"},{"p":"controller","c":"EgoController","l":"stopObject()"},{"p":"rendering","c":"TextArtist","l":"TextArtist(GameObject, String, int, Color)","u":"%3Cinit%3E(gameobjects.GameObject,java.lang.String,int,java.awt.Color)"},{"p":"gameobjects","c":"TextObject","l":"TextObject(String, Playground, double, double, double, double, String, int, Color)","u":"%3Cinit%3E(java.lang.String,playground.Playground,double,double,double,double,java.lang.String,int,java.awt.Color)"},{"p":"playground","c":"Playground","l":"togglePause()"},{"p":"collider","c":"CircleCollider","l":"toString()"},{"p":"collider","c":"Collider","l":"toString()"},{"p":"collider","c":"RectCollider","l":"toString()"},{"p":"controller","c":"EgoController","l":"updateObject()"},{"p":"controller","c":"EnemyController","l":"updateObject()"},{"p":"controller","c":"FallingStarController","l":"updateObject()"},{"p":"controller","c":"LimitedTimeController","l":"updateObject()"},{"p":"controller","c":"MineController","l":"updateObject()"},{"p":"controller","c":"ObjectController","l":"updateObject()"},{"p":"controller","c":"ReboundController","l":"updateObject()"},{"p":"controller","c":"ReboundController2","l":"updateObject()"},{"p":"controller","c":"SimpleShotController","l":"updateObject()"},{"p":"controller","c":"ZickZackController","l":"updateObject()"},{"p":"gameobjects","c":"GameObject","l":"updateObject()"},{"p":"playground","c":"Playground","l":"updateObjects()"},{"p":"ui","c":"GameUI","l":"waitWhilePainting()"},{"p":"playground","c":"HighscoreManager","l":"writeHSToFile(Integer, Integer)","u":"writeHSToFile(java.lang.Integer,java.lang.Integer)"},{"p":"controller","c":"ZickZackController","l":"ZickZackController(double, double)","u":"%3Cinit%3E(double,double)"}];updateSearchResults(); \ No newline at end of file diff --git a/spaceinvaders/GameProject/doc/overview-summary.html b/spaceinvaders/GameProject/doc/overview-summary.html index 31860dc..a0fc0ee 100644 --- a/spaceinvaders/GameProject/doc/overview-summary.html +++ b/spaceinvaders/GameProject/doc/overview-summary.html @@ -1,11 +1,11 @@ - + Generated Documentation (Untitled) - + diff --git a/spaceinvaders/GameProject/doc/overview-tree.html b/spaceinvaders/GameProject/doc/overview-tree.html index 4d94a1f..16557cf 100644 --- a/spaceinvaders/GameProject/doc/overview-tree.html +++ b/spaceinvaders/GameProject/doc/overview-tree.html @@ -1,11 +1,11 @@ - + Class Hierarchy - + @@ -28,6 +28,7 @@ loadScripts(document, 'script');
            @@ -59,11 +66,86 @@ loadScripts(document, 'script'); diff --git a/spaceinvaders/GameProject/doc/package-search-index.js b/spaceinvaders/GameProject/doc/package-search-index.js index 1faf515..f6dca23 100644 --- a/spaceinvaders/GameProject/doc/package-search-index.js +++ b/spaceinvaders/GameProject/doc/package-search-index.js @@ -1 +1 @@ -packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"controller"}];updateSearchResults(); \ No newline at end of file +packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"base"},{"l":"collider"},{"l":"controller"},{"l":"gameobjects"},{"l":"playground"},{"l":"rendering"},{"l":"ui"}];updateSearchResults(); \ No newline at end of file diff --git a/spaceinvaders/GameProject/doc/playground/Animation.html b/spaceinvaders/GameProject/doc/playground/Animation.html index a7836fb..f683215 100644 --- a/spaceinvaders/GameProject/doc/playground/Animation.html +++ b/spaceinvaders/GameProject/doc/playground/Animation.html @@ -1,11 +1,11 @@ - + Animation - + diff --git a/spaceinvaders/GameProject/doc/playground/BreakoutLevelBase.html b/spaceinvaders/GameProject/doc/playground/BreakoutLevelBase.html new file mode 100644 index 0000000..848e413 --- /dev/null +++ b/spaceinvaders/GameProject/doc/playground/BreakoutLevelBase.html @@ -0,0 +1,318 @@ + + + + +BreakoutLevelBase + + + + + + + + + + + + + + + +
            + +
            +
            + +
            +
            Package playground
            +

            Class BreakoutLevelBase

            +
            +
            java.lang.Object +
            playground.Playground +
            playground.BreakoutLevelBase
            +
            +
            +
            +
            +
            public abstract class BreakoutLevelBase +extends Playground
            +
            +
            + +
            +
            +
              + +
            • +
              +

              Constructor Details

              +
                +
              • +
                +

                BreakoutLevelBase

                +
                public BreakoutLevelBase()
                +
                +
              • +
              +
              +
            • + +
            • +
              +

              Method Details

              +
                +
              • +
                +

                gameOver

                +
                public boolean gameOver()
                +
                signals to game engine that the game has finished by game over. called every game loop. default + implementation is always false.
                +
                +
                Specified by:
                +
                gameOver in class Playground
                +
                Returns:
                +
                false
                +
                +
                +
              • +
              • +
                +

                levelFinished

                +
                public boolean levelFinished()
                +
                signals to game engine that the game has finished by success. called every game loop. default + implementation is always false.
                +
                +
                Specified by:
                +
                levelFinished in class Playground
                +
                Returns:
                +
                false
                +
                +
                +
              • +
              • +
                +

                resetRequested

                +
                public boolean resetRequested()
                +
                signals to game engine that the game has been requested to be reseted (restart). called every + game loop. default implementation is always false.
                +
                +
                Returns:
                +
                false
                +
                +
                +
              • +
              • +
                +

                redrawLevel

                +
                public void redrawLevel(Graphics2D g)
                +
                unimplemented empty method called by game engine every loop.
                +
                +
                Specified by:
                +
                redrawLevel in class Playground
                +
                Parameters:
                +
                g - Graphics2D abstract drawing object of java Swing, used to carry out all drawing + operations.
                +
                +
                +
              • +
              • +
                +

                preferredSizeX

                +
                public int preferredSizeX()
                +
                Signal that the level has a size of 700x700 pixels.
                +
                +
                Specified by:
                +
                preferredSizeX in class Playground
                +
                Returns:
                +
                x size of level 700
                +
                +
                +
              • +
              • +
                +

                preferredSizeY

                +
                public int preferredSizeY()
                +
                Signal that the level has a size of 700x700 pixels.
                +
                +
                Specified by:
                +
                preferredSizeY in class Playground
                +
                Returns:
                +
                y size of level 700
                +
                +
                +
              • +
              • +
                +

                applyGameLogic

                +
                public void applyGameLogic()
                +
                checks for interactions between GameObjects; notably ball with ego and ball with brick. + In case of detected collisions, it calls either actionIfBallHitsBrick(GameObject, GameObject) + or actionIfBallHitsEgo(GameObject, GameObject). + Called every game loop.
                +
                +
                Specified by:
                +
                applyGameLogic in class Playground
                +
                +
                +
              • +
              • +
                +

                prepareLevel

                +
                public abstract void prepareLevel(String level)
                +
                Prepares a generic Breakout-Type level. This method relies on the methods createEgoObject(), + createBall() and createBrick(int, int), among others, which are meant to be overwritten + in subclasses.
                + Attention: the attributes ball and ego need to be set properly to GameObject + instances when implementing this method prepareLevel(String).
                +
                +
                Specified by:
                +
                prepareLevel in class Playground
                +
                Parameters:
                +
                level - String passes by the game engine (not used currently and can be ignored).
                +
                +
                +
              • +
              +
              +
            • +
            +
            + +
            +
            +
            + + diff --git a/spaceinvaders/GameProject/doc/playground/HighscoreManager.html b/spaceinvaders/GameProject/doc/playground/HighscoreManager.html index e31b781..46ffd05 100644 --- a/spaceinvaders/GameProject/doc/playground/HighscoreManager.html +++ b/spaceinvaders/GameProject/doc/playground/HighscoreManager.html @@ -1,11 +1,11 @@ - + HighscoreManager - + diff --git a/spaceinvaders/GameProject/doc/playground/Level1.html b/spaceinvaders/GameProject/doc/playground/Level1.html index 5d85ae2..fa3bf9b 100644 --- a/spaceinvaders/GameProject/doc/playground/Level1.html +++ b/spaceinvaders/GameProject/doc/playground/Level1.html @@ -1,11 +1,11 @@ - + Level1 - + diff --git a/spaceinvaders/GameProject/doc/playground/Level2.html b/spaceinvaders/GameProject/doc/playground/Level2.html index ad3d4e0..cf40dad 100644 --- a/spaceinvaders/GameProject/doc/playground/Level2.html +++ b/spaceinvaders/GameProject/doc/playground/Level2.html @@ -1,11 +1,11 @@ - + Level2 - + @@ -79,7 +79,7 @@ loadScripts(document, 'script');
            public class Level2 extends SpaceInvadersLevel
            -
            extends extends SpaceInvadersLevel with a different startup message.
            +
            extends SpaceInvadersLevel with a different startup message.
              diff --git a/spaceinvaders/GameProject/doc/playground/Level3.html b/spaceinvaders/GameProject/doc/playground/Level3.html index 2b9d23b..3272732 100644 --- a/spaceinvaders/GameProject/doc/playground/Level3.html +++ b/spaceinvaders/GameProject/doc/playground/Level3.html @@ -1,11 +1,11 @@ - + Level3 - + diff --git a/spaceinvaders/GameProject/doc/playground/Level4.html b/spaceinvaders/GameProject/doc/playground/Level4.html index 643a60f..7127231 100644 --- a/spaceinvaders/GameProject/doc/playground/Level4.html +++ b/spaceinvaders/GameProject/doc/playground/Level4.html @@ -1,11 +1,11 @@ - + Level4 - + @@ -79,7 +79,7 @@ loadScripts(document, 'script');
              public class Level4 extends SpaceInvadersLevel
              -
              extends extends SpaceInvadersLevel +
              extends SpaceInvadersLevel with aliens that need two hits to be destroyed.
              • Hit aliens twice to kill them
              • they say AUA when not destroyed diff --git a/spaceinvaders/GameProject/doc/playground/Level5.html b/spaceinvaders/GameProject/doc/playground/Level5.html index 91490af..8e33274 100644 --- a/spaceinvaders/GameProject/doc/playground/Level5.html +++ b/spaceinvaders/GameProject/doc/playground/Level5.html @@ -1,11 +1,11 @@ - + Level5 - + diff --git a/spaceinvaders/GameProject/doc/playground/Level6.html b/spaceinvaders/GameProject/doc/playground/Level6.html index 9a6ecd3..e55376d 100644 --- a/spaceinvaders/GameProject/doc/playground/Level6.html +++ b/spaceinvaders/GameProject/doc/playground/Level6.html @@ -1,11 +1,11 @@ - + Level6 - + diff --git a/spaceinvaders/GameProject/doc/playground/Level7.html b/spaceinvaders/GameProject/doc/playground/Level7.html index 613b41d..95c20f0 100644 --- a/spaceinvaders/GameProject/doc/playground/Level7.html +++ b/spaceinvaders/GameProject/doc/playground/Level7.html @@ -1,11 +1,11 @@ - + Level7 - + diff --git a/spaceinvaders/GameProject/doc/playground/LevelBoss.html b/spaceinvaders/GameProject/doc/playground/LevelBoss.html index 8adab96..6555c6b 100644 --- a/spaceinvaders/GameProject/doc/playground/LevelBoss.html +++ b/spaceinvaders/GameProject/doc/playground/LevelBoss.html @@ -1,11 +1,11 @@ - + LevelBoss - + diff --git a/spaceinvaders/GameProject/doc/playground/LevelHitTwice.html b/spaceinvaders/GameProject/doc/playground/LevelHitTwice.html index d0ae817..66cf59a 100644 --- a/spaceinvaders/GameProject/doc/playground/LevelHitTwice.html +++ b/spaceinvaders/GameProject/doc/playground/LevelHitTwice.html @@ -1,11 +1,11 @@ - + LevelHitTwice - + diff --git a/spaceinvaders/GameProject/doc/playground/LevelMovingHitObjects.html b/spaceinvaders/GameProject/doc/playground/LevelMovingHitObjects.html new file mode 100644 index 0000000..2e072b0 --- /dev/null +++ b/spaceinvaders/GameProject/doc/playground/LevelMovingHitObjects.html @@ -0,0 +1,195 @@ + + + + +LevelMovingHitObjects + + + + + + + + + + + + + + + +
                + +
                +
                + +
                +
                Package playground
                +

                Class LevelMovingHitObjects

                +
                +
                java.lang.Object +
                playground.Playground +
                playground.SpaceInvadersLevel +
                playground.LevelMovingHitObjects
                +
                +
                +
                +
                +
                +
                public class LevelMovingHitObjects +extends SpaceInvadersLevel
                +
                Level that creates two RectObjects moving around and if ego is hit by them game is directly lost + (lives = 0).
                +
                +
                + +
                +
                +
                  + +
                • +
                  +

                  Constructor Details

                  +
                    +
                  • +
                    +

                    LevelMovingHitObjects

                    +
                    public LevelMovingHitObjects()
                    +
                    +
                  • +
                  +
                  +
                • + +
                • +
                  +

                  Method Details

                  +
                    +
                  • +
                    +

                    prepareLevel

                    +
                    public void prepareLevel(String id)
                    +
                    Description copied from class: SpaceInvadersLevel
                    +
                    initially sets up the level. Not called by user interaction, but called every time a layer is + restarted from scratch. So make sure that this is possible. Here, resources are loaded only + once even if method is called several times.
                    +
                    +
                    Overrides:
                    +
                    prepareLevel in class SpaceInvadersLevel
                    +
                    Parameters:
                    +
                    id - String identifies level.
                    +
                    +
                    +
                  • +
                  +
                  +
                • +
                +
                + +
                +
                +
                + + diff --git a/spaceinvaders/GameProject/doc/playground/LevelMovingObjects.html b/spaceinvaders/GameProject/doc/playground/LevelMovingObjects.html new file mode 100644 index 0000000..6d26227 --- /dev/null +++ b/spaceinvaders/GameProject/doc/playground/LevelMovingObjects.html @@ -0,0 +1,194 @@ + + + + +LevelMovingObjects + + + + + + + + + + + + + + + +
                + +
                +
                + +
                +
                Package playground
                +

                Class LevelMovingObjects

                +
                + +
                +
                +
                public class LevelMovingObjects +extends SpaceInvadersLevel
                +
                This level adds two distracting objects to the canvas that cannot collide but bounce around all the time.
                +
                +
                + +
                +
                +
                  + +
                • +
                  +

                  Constructor Details

                  +
                    +
                  • +
                    +

                    LevelMovingObjects

                    +
                    public LevelMovingObjects()
                    +
                    +
                  • +
                  +
                  +
                • + +
                • +
                  +

                  Method Details

                  +
                    +
                  • +
                    +

                    prepareLevel

                    +
                    public void prepareLevel(String id)
                    +
                    Description copied from class: SpaceInvadersLevel
                    +
                    initially sets up the level. Not called by user interaction, but called every time a layer is + restarted from scratch. So make sure that this is possible. Here, resources are loaded only + once even if method is called several times.
                    +
                    +
                    Overrides:
                    +
                    prepareLevel in class SpaceInvadersLevel
                    +
                    Parameters:
                    +
                    id - String identifies level.
                    +
                    +
                    +
                  • +
                  +
                  +
                • +
                +
                + +
                +
                +
                + + diff --git a/spaceinvaders/GameProject/doc/playground/LevelWithBox.html b/spaceinvaders/GameProject/doc/playground/LevelWithBox.html index d3795cc..0d92830 100644 --- a/spaceinvaders/GameProject/doc/playground/LevelWithBox.html +++ b/spaceinvaders/GameProject/doc/playground/LevelWithBox.html @@ -1,11 +1,11 @@ - + LevelWithBox - + diff --git a/spaceinvaders/GameProject/doc/playground/Music.html b/spaceinvaders/GameProject/doc/playground/Music.html index 7351834..e688267 100644 --- a/spaceinvaders/GameProject/doc/playground/Music.html +++ b/spaceinvaders/GameProject/doc/playground/Music.html @@ -1,11 +1,11 @@ - + Music - + diff --git a/spaceinvaders/GameProject/doc/playground/Playground.html b/spaceinvaders/GameProject/doc/playground/Playground.html index 56e9e2c..9af8766 100644 --- a/spaceinvaders/GameProject/doc/playground/Playground.html +++ b/spaceinvaders/GameProject/doc/playground/Playground.html @@ -1,11 +1,11 @@ - + Playground - + @@ -78,7 +78,7 @@ loadScripts(document, 'script');
                Direct Known Subclasses:
                -
                SpaceInvadersLevel
                +
                BreakoutLevelBase, SpaceInvadersLevel

                public abstract class Playground diff --git a/spaceinvaders/GameProject/doc/playground/SaveGame.html b/spaceinvaders/GameProject/doc/playground/SaveGame.html index 5ba5b0a..66a1e89 100644 --- a/spaceinvaders/GameProject/doc/playground/SaveGame.html +++ b/spaceinvaders/GameProject/doc/playground/SaveGame.html @@ -1,11 +1,11 @@ - + SaveGame - + diff --git a/spaceinvaders/GameProject/doc/playground/SpaceInvadersLevel.html b/spaceinvaders/GameProject/doc/playground/SpaceInvadersLevel.html index e534aff..d0214a7 100644 --- a/spaceinvaders/GameProject/doc/playground/SpaceInvadersLevel.html +++ b/spaceinvaders/GameProject/doc/playground/SpaceInvadersLevel.html @@ -1,11 +1,11 @@ - + SpaceInvadersLevel - + @@ -80,7 +80,7 @@ loadScripts(document, 'script');
                Direct Known Subclasses:
                -
                Level1, Level2, Level3, Level4, LevelBoss, LevelHitTwice, LevelWithBox, SpaceInvadersLevelAua
                +
                Level1, Level2, Level3, Level4, LevelBoss, LevelHitTwice, LevelMovingHitObjects, LevelMovingObjects, LevelWithBox, SpaceInvadersLevelAua

                public class SpaceInvadersLevel diff --git a/spaceinvaders/GameProject/doc/playground/SpaceInvadersLevelAua.html b/spaceinvaders/GameProject/doc/playground/SpaceInvadersLevelAua.html index a30193b..f106525 100644 --- a/spaceinvaders/GameProject/doc/playground/SpaceInvadersLevelAua.html +++ b/spaceinvaders/GameProject/doc/playground/SpaceInvadersLevelAua.html @@ -1,11 +1,11 @@ - + SpaceInvadersLevelAua - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/Animation.html b/spaceinvaders/GameProject/doc/playground/class-use/Animation.html index d973de0..b07b63c 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/Animation.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/Animation.html @@ -1,11 +1,11 @@ - + Uses of Class playground.Animation - + @@ -56,7 +56,9 @@ loadScripts(document, 'script');
                Package
                Description
                -
                 
                +
                +
                The package gameobjects contains all objects with a visual representation on screen.
                +
                 
                diff --git a/spaceinvaders/GameProject/doc/playground/class-use/BreakoutLevelBase.html b/spaceinvaders/GameProject/doc/playground/class-use/BreakoutLevelBase.html new file mode 100644 index 0000000..09cc22b --- /dev/null +++ b/spaceinvaders/GameProject/doc/playground/class-use/BreakoutLevelBase.html @@ -0,0 +1,58 @@ + + + + +Uses of Class playground.BreakoutLevelBase + + + + + + + + + + + + + + + +
                + +
                +
                +
                +

                Uses of Class
                playground.BreakoutLevelBase

                +
                +No usage of playground.BreakoutLevelBase
                +
                +
                + + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/HighscoreManager.html b/spaceinvaders/GameProject/doc/playground/class-use/HighscoreManager.html index eefc6d1..1bf7512 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/HighscoreManager.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/HighscoreManager.html @@ -1,11 +1,11 @@ - + Uses of Class playground.HighscoreManager - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/Level1.html b/spaceinvaders/GameProject/doc/playground/class-use/Level1.html index 71f17bd..2e3953e 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/Level1.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/Level1.html @@ -1,11 +1,11 @@ - + Uses of Class playground.Level1 - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/Level2.html b/spaceinvaders/GameProject/doc/playground/class-use/Level2.html index a023519..3a3d8f0 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/Level2.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/Level2.html @@ -1,11 +1,11 @@ - + Uses of Class playground.Level2 - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/Level3.html b/spaceinvaders/GameProject/doc/playground/class-use/Level3.html index c646486..a20ff21 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/Level3.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/Level3.html @@ -1,11 +1,11 @@ - + Uses of Class playground.Level3 - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/Level4.html b/spaceinvaders/GameProject/doc/playground/class-use/Level4.html index 2274685..fc998a6 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/Level4.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/Level4.html @@ -1,11 +1,11 @@ - + Uses of Class playground.Level4 - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/Level5.html b/spaceinvaders/GameProject/doc/playground/class-use/Level5.html index 0b4949a..ec288dc 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/Level5.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/Level5.html @@ -1,11 +1,11 @@ - + Uses of Class playground.Level5 - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/Level6.html b/spaceinvaders/GameProject/doc/playground/class-use/Level6.html index 733b852..20a79b0 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/Level6.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/Level6.html @@ -1,11 +1,11 @@ - + Uses of Class playground.Level6 - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/Level7.html b/spaceinvaders/GameProject/doc/playground/class-use/Level7.html index 6e4ce92..96af8ae 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/Level7.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/Level7.html @@ -1,11 +1,11 @@ - + Uses of Class playground.Level7 - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/LevelBoss.html b/spaceinvaders/GameProject/doc/playground/class-use/LevelBoss.html index 6173682..29846ad 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/LevelBoss.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/LevelBoss.html @@ -1,11 +1,11 @@ - + Uses of Class playground.LevelBoss - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/LevelHitTwice.html b/spaceinvaders/GameProject/doc/playground/class-use/LevelHitTwice.html index 5fcb439..335a8c9 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/LevelHitTwice.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/LevelHitTwice.html @@ -1,11 +1,11 @@ - + Uses of Class playground.LevelHitTwice - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/LevelMovingHitObjects.html b/spaceinvaders/GameProject/doc/playground/class-use/LevelMovingHitObjects.html new file mode 100644 index 0000000..f037cc0 --- /dev/null +++ b/spaceinvaders/GameProject/doc/playground/class-use/LevelMovingHitObjects.html @@ -0,0 +1,58 @@ + + + + +Uses of Class playground.LevelMovingHitObjects + + + + + + + + + + + + + + + +
                + +
                +
                +
                +

                Uses of Class
                playground.LevelMovingHitObjects

                +
                +No usage of playground.LevelMovingHitObjects
                +
                +
                + + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/LevelMovingObjects.html b/spaceinvaders/GameProject/doc/playground/class-use/LevelMovingObjects.html new file mode 100644 index 0000000..9c2fb0e --- /dev/null +++ b/spaceinvaders/GameProject/doc/playground/class-use/LevelMovingObjects.html @@ -0,0 +1,58 @@ + + + + +Uses of Class playground.LevelMovingObjects + + + + + + + + + + + + + + + +
                + +
                +
                +
                +

                Uses of Class
                playground.LevelMovingObjects

                +
                +No usage of playground.LevelMovingObjects
                +
                +
                + + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/LevelWithBox.html b/spaceinvaders/GameProject/doc/playground/class-use/LevelWithBox.html index 32c2aad..2f44a5a 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/LevelWithBox.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/LevelWithBox.html @@ -1,11 +1,11 @@ - + Uses of Class playground.LevelWithBox - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/Music.html b/spaceinvaders/GameProject/doc/playground/class-use/Music.html index 447ddbc..583451e 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/Music.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/Music.html @@ -1,11 +1,11 @@ - + Uses of Class playground.Music - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/Playground.html b/spaceinvaders/GameProject/doc/playground/class-use/Playground.html index 6605928..4240ecc 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/Playground.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/Playground.html @@ -1,11 +1,11 @@ - + Uses of Class playground.Playground - + @@ -56,16 +56,22 @@ loadScripts(document, 'script');
                Package
                Description
                -
                 
                +
                +
                The package contains classes implementing a 'bounding box' area around game objects.
                +
                The controller package contains Object controllers that govern an objects behavior, without being involved in its collision or drawing properties.
                -
                 
                +
                +
                The package gameobjects contains all objects with a visual representation on screen.
                +
                -
                 
                +
                +
                The package playground contains all level specific logic and control of level logic.
                +
                 
                @@ -228,63 +234,73 @@ loadScripts(document, 'script');
                Class
                Description
                class 
                - -
                -
                extends SpaceInvadersLevel with a boring start message
                -
                + +
                 
                class 
                - +
                -
                extends extends SpaceInvadersLevel with a different startup message.
                +
                extends SpaceInvadersLevel with a boring start message
                class 
                - +
                +
                extends SpaceInvadersLevel with a different startup message.
                +
                +
                class 
                + +
                extends SpaceInvadersLevel with a ZigZack move of the enemies in Level3.createSingleEnemy(String, double, double, double, double, ObjectController, double) and sets a different Level3.getStartupMessage().
                -
                class 
                - -
                -
                extends extends SpaceInvadersLevel - - Hit aliens twice to kill them - they say AUA when not destroyed -
                +
                class 
                + +
                +
                extends SpaceInvadersLevel with aliens that need two hits to be destroyed.
                +
                class 
                + +
                 
                class 
                - +
                 
                class 
                - +
                 
                class 
                - -
                 
                + +
                +
                Class that realizes all the game logic of a very simple game level.
                +
                class 
                - +
                -
                Class that realizes all the game logic of a very simple game level.
                +
                extends SpaceInvadersLevel with 10 enemies that need two shots each to be destroyed.
                class 
                - +
                -
                extends SpaceInvadersLevel with 10 enemies that need two shots each to be destroyed.
                +
                Level that creates two RectObjects moving around and if ego is hit by them game is directly lost + (lives = 0).
                class 
                - +
                -
                extends SpaceInvadersLevel with a red box.
                +
                This level adds two distracting objects to the canvas that cannot collide but bounce around all the time.
                class 
                - +
                -
                Class that realizes all the game logic of a very simple game level.
                +
                extends SpaceInvadersLevel with a red box.
                class 
                - -
                 
                + +
                +
                Class that realizes all the game logic of a very simple game level.
                +
                +
                class 
                + +
                 
              • diff --git a/spaceinvaders/GameProject/doc/playground/class-use/SaveGame.html b/spaceinvaders/GameProject/doc/playground/class-use/SaveGame.html index d71c958..509fc78 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/SaveGame.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/SaveGame.html @@ -1,11 +1,11 @@ - + Uses of Class playground.SaveGame - + diff --git a/spaceinvaders/GameProject/doc/playground/class-use/SpaceInvadersLevel.html b/spaceinvaders/GameProject/doc/playground/class-use/SpaceInvadersLevel.html index f0296ce..0a74c05 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/SpaceInvadersLevel.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/SpaceInvadersLevel.html @@ -1,11 +1,11 @@ - + Uses of Class playground.SpaceInvadersLevel - + @@ -56,7 +56,9 @@ loadScripts(document, 'script');
                Package
                Description
                -
                 
                +
                +
                The package playground contains all level specific logic and control of level logic.
                +
                @@ -76,7 +78,7 @@ loadScripts(document, 'script');
                class 
                -
                extends extends SpaceInvadersLevel with a different startup message.
                +
                extends SpaceInvadersLevel with a different startup message.
                class 
                @@ -88,11 +90,7 @@ loadScripts(document, 'script');
                class 
                -
                extends extends SpaceInvadersLevel - - Hit aliens twice to kill them - they say AUA when not destroyed -
                +
                extends SpaceInvadersLevel with aliens that need two hits to be destroyed.
                class 
                @@ -114,6 +112,17 @@ loadScripts(document, 'script');
                extends SpaceInvadersLevel with 10 enemies that need two shots each to be destroyed.
              class 
              + +
              +
              Level that creates two RectObjects moving around and if ego is hit by them game is directly lost + (lives = 0).
              +
              +
              class 
              + +
              +
              This level adds two distracting objects to the canvas that cannot collide but bounce around all the time.
              +
              +
              class 
              extends SpaceInvadersLevel with a red box.
              diff --git a/spaceinvaders/GameProject/doc/playground/class-use/SpaceInvadersLevelAua.html b/spaceinvaders/GameProject/doc/playground/class-use/SpaceInvadersLevelAua.html index 2aea2e7..fab2949 100644 --- a/spaceinvaders/GameProject/doc/playground/class-use/SpaceInvadersLevelAua.html +++ b/spaceinvaders/GameProject/doc/playground/class-use/SpaceInvadersLevelAua.html @@ -1,11 +1,11 @@ - + Uses of Class playground.SpaceInvadersLevelAua - + @@ -56,7 +56,9 @@ loadScripts(document, 'script');
              Package
              Description
              -
               
              +
              +
              The package playground contains all level specific logic and control of level logic.
              +
                diff --git a/spaceinvaders/GameProject/doc/playground/package-summary.html b/spaceinvaders/GameProject/doc/playground/package-summary.html index 14d96fd..dea2b28 100644 --- a/spaceinvaders/GameProject/doc/playground/package-summary.html +++ b/spaceinvaders/GameProject/doc/playground/package-summary.html @@ -1,11 +1,11 @@ - + playground - + @@ -41,7 +41,7 @@ loadScripts(document, 'script');
                @@ -61,6 +61,14 @@ loadScripts(document, 'script');

                package playground
                +
                +
                The package playground contains all level specific logic and control of level logic. + The structure and general logic (with global and local flags to be stored/used) + is provided in abstract base class Playground.
                + Child-classes implement specific logic for one level and game type (e.g. SpaceInvadersLevel).
                + + Generally, the base class Playground supports totally different game types to be implemented.
                +
                • @@ -71,63 +79,70 @@ loadScripts(document, 'script');
                  Description
                   
                  - +
                   
                  - -
                  -
                  extends SpaceInvadersLevel with a boring start message
                  -
                  - + +
                   
                  +
                  -
                  extends extends SpaceInvadersLevel with a different startup message.
                  +
                  extends SpaceInvadersLevel with a boring start message
                  - +
                  +
                  extends SpaceInvadersLevel with a different startup message.
                  +
                  + +
                  extends SpaceInvadersLevel with a ZigZack move of the enemies in Level3.createSingleEnemy(String, double, double, double, double, ObjectController, double) and sets a different Level3.getStartupMessage().
                  - -
                  -
                  extends extends SpaceInvadersLevel - - Hit aliens twice to kill them - they say AUA when not destroyed -
                  + +
                  +
                  extends SpaceInvadersLevel with aliens that need two hits to be destroyed.
                  - -
                   
                  - +
                   
                  - +
                   
                  - -
                  + +
                   
                  + +
                  Class that realizes all the game logic of a very simple game level.
                  - -
                  + +
                  extends SpaceInvadersLevel with 10 enemies that need two shots each to be destroyed.
                  - + +
                  +
                  Level that creates two RectObjects moving around and if ego is hit by them game is directly lost + (lives = 0).
                  +
                  +
                  +
                  This level adds two distracting objects to the canvas that cannot collide but bounce around all the time.
                  +
                  + +
                  extends SpaceInvadersLevel with a red box.
                  - -
                   
                  - -
                  + +
                   
                  + +
                  Playground represents a level of the game, focusing on the game LOGIC, i.e., not so much on the graphical representation.
                  - -
                   
                  - -
                  + +
                   
                  + +
                  Class that realizes all the game logic of a very simple game level.
                  - -
                   
                  + +
                   
                • diff --git a/spaceinvaders/GameProject/doc/playground/package-tree.html b/spaceinvaders/GameProject/doc/playground/package-tree.html index f80c58f..4976816 100644 --- a/spaceinvaders/GameProject/doc/playground/package-tree.html +++ b/spaceinvaders/GameProject/doc/playground/package-tree.html @@ -1,11 +1,11 @@ - + playground Class Hierarchy - + @@ -65,6 +65,7 @@ loadScripts(document, 'script');
                • playground.Music
                • playground.Playground
                    +
                  • playground.BreakoutLevelBase
                  • playground.SpaceInvadersLevel
                    • playground.Level1
                    • @@ -73,6 +74,8 @@ loadScripts(document, 'script');
                    • playground.Level4
                    • playground.LevelBoss
                    • playground.LevelHitTwice
                    • +
                    • playground.LevelMovingHitObjects
                    • +
                    • playground.LevelMovingObjects
                    • playground.LevelWithBox
                    • playground.SpaceInvadersLevelAua
                        diff --git a/spaceinvaders/GameProject/doc/playground/package-use.html b/spaceinvaders/GameProject/doc/playground/package-use.html index 69901c1..a3fc897 100644 --- a/spaceinvaders/GameProject/doc/playground/package-use.html +++ b/spaceinvaders/GameProject/doc/playground/package-use.html @@ -1,11 +1,11 @@ - + Uses of Package playground - + @@ -56,16 +56,22 @@ loadScripts(document, 'script');
                        Package
                        Description
                        -
                         
                        +
                        +
                        The package contains classes implementing a 'bounding box' area around game objects.
                        +
                        The controller package contains Object controllers that govern an objects behavior, without being involved in its collision or drawing properties.
                        -
                         
                        +
                        +
                        The package gameobjects contains all objects with a visual representation on screen.
                        +
                        -
                         
                        +
                        +
                        The package playground contains all level specific logic and control of level logic.
                        +
                         
                        diff --git a/spaceinvaders/GameProject/doc/rendering/AnimationArtist.html b/spaceinvaders/GameProject/doc/rendering/AnimationArtist.html index 1f9d55e..0e26719 100644 --- a/spaceinvaders/GameProject/doc/rendering/AnimationArtist.html +++ b/spaceinvaders/GameProject/doc/rendering/AnimationArtist.html @@ -1,11 +1,11 @@ - + AnimationArtist - + diff --git a/spaceinvaders/GameProject/doc/rendering/Artist.html b/spaceinvaders/GameProject/doc/rendering/Artist.html index 6faba48..08a3abc 100644 --- a/spaceinvaders/GameProject/doc/rendering/Artist.html +++ b/spaceinvaders/GameProject/doc/rendering/Artist.html @@ -1,11 +1,11 @@ - + Artist - + diff --git a/spaceinvaders/GameProject/doc/rendering/CircleArtist.html b/spaceinvaders/GameProject/doc/rendering/CircleArtist.html index 5ab380a..eb1a3fe 100644 --- a/spaceinvaders/GameProject/doc/rendering/CircleArtist.html +++ b/spaceinvaders/GameProject/doc/rendering/CircleArtist.html @@ -1,11 +1,11 @@ - + CircleArtist - + diff --git a/spaceinvaders/GameProject/doc/rendering/RectArtist.html b/spaceinvaders/GameProject/doc/rendering/RectArtist.html index 07e59c1..c9a764e 100644 --- a/spaceinvaders/GameProject/doc/rendering/RectArtist.html +++ b/spaceinvaders/GameProject/doc/rendering/RectArtist.html @@ -1,11 +1,11 @@ - + RectArtist - + diff --git a/spaceinvaders/GameProject/doc/rendering/TextArtist.html b/spaceinvaders/GameProject/doc/rendering/TextArtist.html index 2418f66..0887368 100644 --- a/spaceinvaders/GameProject/doc/rendering/TextArtist.html +++ b/spaceinvaders/GameProject/doc/rendering/TextArtist.html @@ -1,11 +1,11 @@ - + TextArtist - + diff --git a/spaceinvaders/GameProject/doc/rendering/class-use/AnimationArtist.html b/spaceinvaders/GameProject/doc/rendering/class-use/AnimationArtist.html index d884cc3..e8a320e 100644 --- a/spaceinvaders/GameProject/doc/rendering/class-use/AnimationArtist.html +++ b/spaceinvaders/GameProject/doc/rendering/class-use/AnimationArtist.html @@ -1,11 +1,11 @@ - + Uses of Class rendering.AnimationArtist - + diff --git a/spaceinvaders/GameProject/doc/rendering/class-use/Artist.html b/spaceinvaders/GameProject/doc/rendering/class-use/Artist.html index 05f9860..568d396 100644 --- a/spaceinvaders/GameProject/doc/rendering/class-use/Artist.html +++ b/spaceinvaders/GameProject/doc/rendering/class-use/Artist.html @@ -1,11 +1,11 @@ - + Uses of Class rendering.Artist - + @@ -56,7 +56,9 @@ loadScripts(document, 'script');
                        Package
                        Description
                        -
                         
                        +
                        +
                        The package gameobjects contains all objects with a visual representation on screen.
                        +
                         
                        diff --git a/spaceinvaders/GameProject/doc/rendering/class-use/CircleArtist.html b/spaceinvaders/GameProject/doc/rendering/class-use/CircleArtist.html index 77008b6..bf99110 100644 --- a/spaceinvaders/GameProject/doc/rendering/class-use/CircleArtist.html +++ b/spaceinvaders/GameProject/doc/rendering/class-use/CircleArtist.html @@ -1,11 +1,11 @@ - + Uses of Class rendering.CircleArtist - + diff --git a/spaceinvaders/GameProject/doc/rendering/class-use/RectArtist.html b/spaceinvaders/GameProject/doc/rendering/class-use/RectArtist.html index cfef84f..ea0f624 100644 --- a/spaceinvaders/GameProject/doc/rendering/class-use/RectArtist.html +++ b/spaceinvaders/GameProject/doc/rendering/class-use/RectArtist.html @@ -1,11 +1,11 @@ - + Uses of Class rendering.RectArtist - + diff --git a/spaceinvaders/GameProject/doc/rendering/class-use/TextArtist.html b/spaceinvaders/GameProject/doc/rendering/class-use/TextArtist.html index 6b8b970..e4e1bac 100644 --- a/spaceinvaders/GameProject/doc/rendering/class-use/TextArtist.html +++ b/spaceinvaders/GameProject/doc/rendering/class-use/TextArtist.html @@ -1,11 +1,11 @@ - + Uses of Class rendering.TextArtist - + diff --git a/spaceinvaders/GameProject/doc/rendering/package-summary.html b/spaceinvaders/GameProject/doc/rendering/package-summary.html index fec4bdd..95f3465 100644 --- a/spaceinvaders/GameProject/doc/rendering/package-summary.html +++ b/spaceinvaders/GameProject/doc/rendering/package-summary.html @@ -1,11 +1,11 @@ - + rendering - + diff --git a/spaceinvaders/GameProject/doc/rendering/package-tree.html b/spaceinvaders/GameProject/doc/rendering/package-tree.html index 92eb77a..13fe09a 100644 --- a/spaceinvaders/GameProject/doc/rendering/package-tree.html +++ b/spaceinvaders/GameProject/doc/rendering/package-tree.html @@ -1,11 +1,11 @@ - + rendering Class Hierarchy - + diff --git a/spaceinvaders/GameProject/doc/rendering/package-use.html b/spaceinvaders/GameProject/doc/rendering/package-use.html index 30f09a0..62b5237 100644 --- a/spaceinvaders/GameProject/doc/rendering/package-use.html +++ b/spaceinvaders/GameProject/doc/rendering/package-use.html @@ -1,11 +1,11 @@ - + Uses of Package rendering - + @@ -56,7 +56,9 @@ loadScripts(document, 'script');
                        Package
                        Description
                        -
                         
                        +
                        +
                        The package gameobjects contains all objects with a visual representation on screen.
                        +
                         
                        diff --git a/spaceinvaders/GameProject/doc/script.js b/spaceinvaders/GameProject/doc/script.js index 864989c..0765364 100644 --- a/spaceinvaders/GameProject/doc/script.js +++ b/spaceinvaders/GameProject/doc/script.js @@ -1,26 +1,26 @@ /* * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * */ var moduleSearchIndex; diff --git a/spaceinvaders/GameProject/doc/search.js b/spaceinvaders/GameProject/doc/search.js index 2246cdd..df0e6fb 100644 --- a/spaceinvaders/GameProject/doc/search.js +++ b/spaceinvaders/GameProject/doc/search.js @@ -1,26 +1,26 @@ /* * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. */ var noResult = {l: "No results found"}; diff --git a/spaceinvaders/GameProject/doc/tag-search-index.js b/spaceinvaders/GameProject/doc/tag-search-index.js index 0367dae..f2a440c 100644 --- a/spaceinvaders/GameProject/doc/tag-search-index.js +++ b/spaceinvaders/GameProject/doc/tag-search-index.js @@ -1 +1 @@ -tagSearchIndex = [];updateSearchResults(); \ No newline at end of file +tagSearchIndex = [{"l":"Constant Field Values","h":"","u":"constant-values.html"}];updateSearchResults(); \ No newline at end of file diff --git a/spaceinvaders/GameProject/doc/type-search-index.js b/spaceinvaders/GameProject/doc/type-search-index.js index 74569fd..e111866 100644 --- a/spaceinvaders/GameProject/doc/type-search-index.js +++ b/spaceinvaders/GameProject/doc/type-search-index.js @@ -1 +1 @@ -typeSearchIndex = [{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"controller","l":"ReboundController"}];updateSearchResults(); \ No newline at end of file +typeSearchIndex = [{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"gameobjects","l":"AnimatedGameobject"},{"p":"playground","l":"Animation"},{"p":"rendering","l":"AnimationArtist"},{"p":"rendering","l":"Artist"},{"p":"base","l":"BreakoutGame"},{"p":"playground","l":"BreakoutLevelBase"},{"p":"rendering","l":"CircleArtist"},{"p":"collider","l":"CircleCollider"},{"p":"collider","l":"Collider"},{"p":"controller","l":"CollisionAwareEgoController"},{"p":"controller","l":"EgoController"},{"p":"gameobjects","l":"EgoObject"},{"p":"controller","l":"EnemyController"},{"p":"gameobjects","l":"FallingStar"},{"p":"controller","l":"FallingStarController"},{"p":"base","l":"GameLoop"},{"p":"gameobjects","l":"GameObject"},{"p":"ui","l":"GameUI"},{"p":"playground","l":"HighscoreManager"},{"p":"playground","l":"Level1"},{"p":"playground","l":"Level2"},{"p":"playground","l":"Level3"},{"p":"playground","l":"Level4"},{"p":"playground","l":"Level5"},{"p":"playground","l":"Level6"},{"p":"playground","l":"Level7"},{"p":"playground","l":"LevelBoss"},{"p":"playground","l":"LevelHitTwice"},{"p":"playground","l":"LevelMovingHitObjects"},{"p":"playground","l":"LevelMovingObjects"},{"p":"playground","l":"LevelWithBox"},{"p":"controller","l":"LimitedTimeController"},{"p":"controller","l":"MineController"},{"p":"base","l":"MovingObjectsGame"},{"p":"base","l":"MultiLevelGame"},{"p":"playground","l":"Music"},{"p":"controller","l":"ObjectController"},{"p":"playground","l":"Playground"},{"p":"controller","l":"ReboundController"},{"p":"controller","l":"ReboundController2"},{"p":"rendering","l":"RectArtist"},{"p":"collider","l":"RectCollider"},{"p":"gameobjects","l":"RectObject"},{"p":"playground","l":"SaveGame"},{"p":"controller","l":"SimpleShotController"},{"p":"playground","l":"SpaceInvadersLevel"},{"p":"playground","l":"SpaceInvadersLevelAua"},{"p":"rendering","l":"TextArtist"},{"p":"gameobjects","l":"TextObject"},{"p":"controller","l":"ZickZackController"}];updateSearchResults(); \ No newline at end of file diff --git a/spaceinvaders/GameProject/doc/ui/GameUI.html b/spaceinvaders/GameProject/doc/ui/GameUI.html index a2a7c21..29951e1 100644 --- a/spaceinvaders/GameProject/doc/ui/GameUI.html +++ b/spaceinvaders/GameProject/doc/ui/GameUI.html @@ -1,11 +1,11 @@ - + GameUI - + diff --git a/spaceinvaders/GameProject/doc/ui/class-use/GameUI.html b/spaceinvaders/GameProject/doc/ui/class-use/GameUI.html index d730a96..ac68d72 100644 --- a/spaceinvaders/GameProject/doc/ui/class-use/GameUI.html +++ b/spaceinvaders/GameProject/doc/ui/class-use/GameUI.html @@ -1,11 +1,11 @@ - + Uses of Class ui.GameUI - + diff --git a/spaceinvaders/GameProject/doc/ui/package-summary.html b/spaceinvaders/GameProject/doc/ui/package-summary.html index ca586c8..5f7f405 100644 --- a/spaceinvaders/GameProject/doc/ui/package-summary.html +++ b/spaceinvaders/GameProject/doc/ui/package-summary.html @@ -1,11 +1,11 @@ - + ui - + diff --git a/spaceinvaders/GameProject/doc/ui/package-tree.html b/spaceinvaders/GameProject/doc/ui/package-tree.html index 3799561..f8a158e 100644 --- a/spaceinvaders/GameProject/doc/ui/package-tree.html +++ b/spaceinvaders/GameProject/doc/ui/package-tree.html @@ -1,11 +1,11 @@ - + ui Class Hierarchy - + diff --git a/spaceinvaders/GameProject/doc/ui/package-use.html b/spaceinvaders/GameProject/doc/ui/package-use.html index 2ad4761..f2122f6 100644 --- a/spaceinvaders/GameProject/doc/ui/package-use.html +++ b/spaceinvaders/GameProject/doc/ui/package-use.html @@ -1,11 +1,11 @@ - + Uses of Package ui - + diff --git a/spaceinvaders/GameProject/log/log4j.log b/spaceinvaders/GameProject/log/log4j.log index 8af9426..9c3e258 100644 --- a/spaceinvaders/GameProject/log/log4j.log +++ b/spaceinvaders/GameProject/log/log4j.log @@ -1226,3 +1226,62 @@ 2022-05-19 14:04:49,855 INFO playground.SpaceInvadersLevel - no enemies left, level done. 2022-05-19 14:04:49,856 INFO base.GameLoop - reached end of levels 2022-05-19 14:04:49,856 INFO base.GameLoop - Game ends. Bye. +2022-05-27 22:05:10,869 INFO base.GameLoop - GUI starts +2022-05-27 22:05:16,446 INFO base.GameLoop - GUI NEW +2022-05-27 22:05:16,447 INFO playground.SpaceInvadersLevel - PREPARE +2022-05-27 22:05:16,602 INFO playground.Animation - img added .\video/sweetAlien0.png +2022-05-27 22:05:16,626 INFO playground.Animation - img added .\video/sweetAlien1.png +2022-05-27 22:05:16,636 INFO playground.Animation - img added .\video/sweetAlien2.png +2022-05-27 22:05:16,650 INFO playground.Animation - img added .\video/sweetAlien3.png +2022-05-27 22:05:16,666 INFO playground.Animation - img added .\video/sweetAlien4.png +2022-05-27 22:05:16,682 INFO playground.Animation - img added .\video/sweetAlien5.png +2022-05-27 22:05:16,693 INFO playground.Animation - img added .\video/sweetAlien6.png +2022-05-27 22:05:16,705 INFO playground.Animation - img added .\video/sweetAlien7.png +2022-05-27 22:05:16,744 INFO playground.Animation - img added .\video/heart0.png +2022-05-27 22:05:16,754 INFO playground.Animation - img added .\video/heart1.png +2022-05-27 22:05:16,776 INFO playground.SpaceInvadersLevel - HIGHSCORE17200 +2022-05-27 22:16:28,011 INFO base.GameLoop - GUI starts +2022-05-27 22:16:33,395 INFO base.GameLoop - GUI NEW +2022-05-27 22:16:33,397 INFO playground.SpaceInvadersLevel - PREPARE +2022-05-27 22:16:33,528 INFO playground.Animation - img added .\video/sweetAlien0.png +2022-05-27 22:16:33,552 INFO playground.Animation - img added .\video/sweetAlien1.png +2022-05-27 22:16:33,562 INFO playground.Animation - img added .\video/sweetAlien2.png +2022-05-27 22:16:33,577 INFO playground.Animation - img added .\video/sweetAlien3.png +2022-05-27 22:16:33,593 INFO playground.Animation - img added .\video/sweetAlien4.png +2022-05-27 22:16:33,607 INFO playground.Animation - img added .\video/sweetAlien5.png +2022-05-27 22:16:33,618 INFO playground.Animation - img added .\video/sweetAlien6.png +2022-05-27 22:16:33,628 INFO playground.Animation - img added .\video/sweetAlien7.png +2022-05-27 22:16:33,665 INFO playground.Animation - img added .\video/heart0.png +2022-05-27 22:16:33,675 INFO playground.Animation - img added .\video/heart1.png +2022-05-27 22:16:33,690 INFO playground.SpaceInvadersLevel - HIGHSCORE17200 +2022-05-27 22:16:38,380 INFO base.GameLoop - Game ends. Bye. +2022-05-27 22:30:39,422 INFO base.GameLoop - GUI starts +2022-05-27 22:30:41,525 INFO base.GameLoop - GUI NEW +2022-05-27 22:30:41,527 INFO playground.SpaceInvadersLevel - PREPARE +2022-05-27 22:30:41,662 INFO playground.Animation - img added .\video/sweetAlien0.png +2022-05-27 22:30:41,688 INFO playground.Animation - img added .\video/sweetAlien1.png +2022-05-27 22:30:41,697 INFO playground.Animation - img added .\video/sweetAlien2.png +2022-05-27 22:30:41,712 INFO playground.Animation - img added .\video/sweetAlien3.png +2022-05-27 22:30:41,730 INFO playground.Animation - img added .\video/sweetAlien4.png +2022-05-27 22:30:41,745 INFO playground.Animation - img added .\video/sweetAlien5.png +2022-05-27 22:30:41,756 INFO playground.Animation - img added .\video/sweetAlien6.png +2022-05-27 22:30:41,767 INFO playground.Animation - img added .\video/sweetAlien7.png +2022-05-27 22:30:41,802 INFO playground.Animation - img added .\video/heart0.png +2022-05-27 22:30:41,816 INFO playground.Animation - img added .\video/heart1.png +2022-05-27 22:30:41,833 INFO playground.SpaceInvadersLevel - HIGHSCORE17200 +2022-05-27 22:30:45,443 INFO base.GameLoop - Game ends. Bye. +2022-05-27 22:30:57,375 INFO base.GameLoop - GUI starts +2022-05-27 22:31:01,040 INFO base.GameLoop - GUI NEW +2022-05-27 22:31:01,042 INFO playground.SpaceInvadersLevel - PREPARE +2022-05-27 22:31:01,178 INFO playground.Animation - img added .\video/sweetAlien0.png +2022-05-27 22:31:01,204 INFO playground.Animation - img added .\video/sweetAlien1.png +2022-05-27 22:31:01,214 INFO playground.Animation - img added .\video/sweetAlien2.png +2022-05-27 22:31:01,227 INFO playground.Animation - img added .\video/sweetAlien3.png +2022-05-27 22:31:01,241 INFO playground.Animation - img added .\video/sweetAlien4.png +2022-05-27 22:31:01,254 INFO playground.Animation - img added .\video/sweetAlien5.png +2022-05-27 22:31:01,266 INFO playground.Animation - img added .\video/sweetAlien6.png +2022-05-27 22:31:01,276 INFO playground.Animation - img added .\video/sweetAlien7.png +2022-05-27 22:31:01,313 INFO playground.Animation - img added .\video/heart0.png +2022-05-27 22:31:01,322 INFO playground.Animation - img added .\video/heart1.png +2022-05-27 22:31:01,338 INFO playground.SpaceInvadersLevel - HIGHSCORE17200 +2022-05-27 22:31:33,238 INFO base.GameLoop - Game ends. Bye. diff --git a/spaceinvaders/GameProject/src/base/MovingObjectsGame.java b/spaceinvaders/GameProject/src/base/MovingObjectsGame.java index 6086e9f..7191923 100644 --- a/spaceinvaders/GameProject/src/base/MovingObjectsGame.java +++ b/spaceinvaders/GameProject/src/base/MovingObjectsGame.java @@ -32,7 +32,7 @@ public class MovingObjectsGame extends GameLoop { @Override public void defineLevels() { this.resetLevels(); - this.addLevel(new LevelMovingObjects()); + //this.addLevel(new LevelMovingObjects()); this.addLevel(new LevelMovingHitObjects()); } diff --git a/spaceinvaders/GameProject/src/playground/LevelMovingHitObjects.java b/spaceinvaders/GameProject/src/playground/LevelMovingHitObjects.java index 533b41a..580d97a 100644 --- a/spaceinvaders/GameProject/src/playground/LevelMovingHitObjects.java +++ b/spaceinvaders/GameProject/src/playground/LevelMovingHitObjects.java @@ -1,5 +1,11 @@ package playground; +import java.awt.Color; + +import controller.ReboundController; +import gameobjects.GameObject; +import gameobjects.RectObject; +import collider.*; /** * Level that creates two RectObjects moving around and if ego is hit by them game is directly lost @@ -11,7 +17,33 @@ public class LevelMovingHitObjects extends SpaceInvadersLevel { // FIXME add logger here - //FIXME add your method overrides here + @Override + public void prepareLevel(String id) { + super.prepareLevel(id); + RectObject blueBox = new RectObject("fly_enemy1", this, 300, 300, 75, 40, 40, 40, Color.BLUE); + this.addObject(blueBox); + ReboundController boxControl = new ReboundController(); + blueBox.addController(boxControl); + RectCollider colliderBlue = new RectCollider("ColliderBlue", blueBox, 40, 40); + blueBox.addCollider(colliderBlue); + RectObject greenBox = new RectObject("fly_enemy2", this, 200, 200, 20, 90, 40, 40, Color.GREEN); + this.addObject(greenBox); + ReboundController boxControl_2 = new ReboundController(); + greenBox.addController(boxControl_2); + RectCollider colliderGreen = new RectCollider("ColliderGreen", greenBox, 40, 40); + greenBox.addCollider(colliderGreen); + } + + @Override + void actionIfEgoCollidesWithEnemy(GameObject enemy, GameObject ego) { + super.actionIfEgoCollidesWithEnemy(enemy, ego); + if(enemy.id.equals("fly_enemy1") || enemy.id.equals("fly_enemy2")) { + this.lost = true; + HighscoreManager.writeHSToFile((Integer) Playground.getGlobalFlag("points"), + (Integer) Playground.getGlobalFlag("highscore")); + } + } +