You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

341 lines
24 KiB

3 years ago
  1. <!DOCTYPE HTML>
  2. <html lang="de">
  3. <head>
  4. <!-- Generated by javadoc (17) on Fri Jun 17 12:42:43 CEST 2022 -->
  5. <title>SpaceInvadersLevel</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  8. <meta name="dc.created" content="2022-06-17">
  9. <meta name="description" content="declaration: package: playground, class: SpaceInvadersLevel">
  10. <meta name="generator" content="javadoc/ClassWriterImpl">
  11. <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
  12. <link rel="stylesheet" type="text/css" href="../script-dir/jquery-ui.min.css" title="Style">
  13. <link rel="stylesheet" type="text/css" href="../jquery-ui.overrides.css" title="Style">
  14. <script type="text/javascript" src="../script.js"></script>
  15. <script type="text/javascript" src="../script-dir/jquery-3.5.1.min.js"></script>
  16. <script type="text/javascript" src="../script-dir/jquery-ui.min.js"></script>
  17. </head>
  18. <body class="class-declaration-page">
  19. <script type="text/javascript">var evenRowColor = "even-row-color";
  20. var oddRowColor = "odd-row-color";
  21. var tableTab = "table-tab";
  22. var activeTableTab = "active-table-tab";
  23. var pathtoroot = "../";
  24. loadScripts(document, 'script');</script>
  25. <noscript>
  26. <div>JavaScript is disabled on your browser.</div>
  27. </noscript>
  28. <div class="flex-box">
  29. <header role="banner" class="flex-header">
  30. <nav role="navigation">
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="top-nav" id="navbar-top">
  33. <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
  34. <ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
  35. <li><a href="../index.html">Overview</a></li>
  36. <li><a href="package-summary.html">Package</a></li>
  37. <li class="nav-bar-cell1-rev">Class</li>
  38. <li><a href="class-use/SpaceInvadersLevel.html">Use</a></li>
  39. <li><a href="package-tree.html">Tree</a></li>
  40. <li><a href="../index-files/index-1.html">Index</a></li>
  41. <li><a href="../help-doc.html#class">Help</a></li>
  42. </ul>
  43. </div>
  44. <div class="sub-nav">
  45. <div>
  46. <ul class="sub-nav-list">
  47. <li>Summary:&nbsp;</li>
  48. <li>Nested&nbsp;|&nbsp;</li>
  49. <li><a href="#field-summary">Field</a>&nbsp;|&nbsp;</li>
  50. <li><a href="#constructor-summary">Constr</a>&nbsp;|&nbsp;</li>
  51. <li><a href="#method-summary">Method</a></li>
  52. </ul>
  53. <ul class="sub-nav-list">
  54. <li>Detail:&nbsp;</li>
  55. <li><a href="#field-detail">Field</a>&nbsp;|&nbsp;</li>
  56. <li><a href="#constructor-detail">Constr</a>&nbsp;|&nbsp;</li>
  57. <li><a href="#method-detail">Method</a></li>
  58. </ul>
  59. </div>
  60. <div class="nav-list-search"><label for="search-input">SEARCH:</label>
  61. <input type="text" id="search-input" value="search" disabled="disabled">
  62. <input type="reset" id="reset-button" value="reset" disabled="disabled">
  63. </div>
  64. </div>
  65. <!-- ========= END OF TOP NAVBAR ========= -->
  66. <span class="skip-nav" id="skip-navbar-top"></span></nav>
  67. </header>
  68. <div class="flex-content">
  69. <main role="main">
  70. <!-- ======== START OF CLASS DATA ======== -->
  71. <div class="header">
  72. <div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">playground</a></div>
  73. <h1 title="Class SpaceInvadersLevel" class="title">Class SpaceInvadersLevel</h1>
  74. </div>
  75. <div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
  76. <div class="inheritance"><a href="Playground.html" title="class in playground">playground.Playground</a>
  77. <div class="inheritance">playground.SpaceInvadersLevel</div>
  78. </div>
  79. </div>
  80. <section class="class-description" id="class-description">
  81. <dl class="notes">
  82. <dt>Direct Known Subclasses:</dt>
  83. <dd><code><a href="Level1.html" title="class in playground">Level1</a></code>, <code><a href="Level2.html" title="class in playground">Level2</a></code>, <code><a href="Level3.html" title="class in playground">Level3</a></code>, <code><a href="Level4.html" title="class in playground">Level4</a></code>, <code><a href="LevelBoss.html" title="class in playground">LevelBoss</a></code>, <code><a href="LevelHitTwice.html" title="class in playground">LevelHitTwice</a></code>, <code><a href="LevelMovingHitObjects.html" title="class in playground">LevelMovingHitObjects</a></code>, <code><a href="LevelMovingObjects.html" title="class in playground">LevelMovingObjects</a></code>, <code><a href="LevelWithBox.html" title="class in playground">LevelWithBox</a></code>, <code><a href="SpaceInvadersLevelAua.html" title="class in playground">SpaceInvadersLevelAua</a></code></dd>
  84. </dl>
  85. <hr>
  86. <div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">SpaceInvadersLevel</span>
  87. <span class="extends-implements">extends <a href="Playground.html" title="class in playground">Playground</a></span></div>
  88. <div class="block">Class that realizes all the game logic of a very simple game level. The level contains for now
  89. only two objects that are <a href="../gameobjects/GameObject.html" title="class in gameobjects"><code>GameObject</code></a> subclasses: <a href="../gameobjects/FallingStar.html" title="class in gameobjects"><code>FallingStar</code></a> and
  90. <a href="../gameobjects/EgoObject.html" title="class in gameobjects"><code>EgoObject</code></a>. Functions performed by this class are:
  91. <ul>
  92. <li>initially set up the level, spawn all object etc., in method <a href="#prepareLevel(java.lang.String)"><code>prepareLevel(java.lang.String)</code></a>
  93. <li>React to game events in <code>actionIfEgoCollidesWithCollect(GameObject, GameObject)</code> ,
  94. <code>actionIfEgoCollidesWithEnemy(GameObject, GameObject)</code>, etc.
  95. <li>define basic object movement rules for all objects in the level in the various
  96. ObjectController subclasses: <a href="../controller/EgoController.html" title="class in controller"><code>EgoController</code></a> and <a href="../controller/FallingStarController.html" title="class in controller"><code>FallingStarController</code></a>.
  97. </ul></div>
  98. </section>
  99. <section class="summary">
  100. <ul class="summary-list">
  101. <!-- =========== FIELD SUMMARY =========== -->
  102. <li>
  103. <section class="field-summary" id="field-summary">
  104. <h2>Field Summary</h2>
  105. <div class="caption"><span>Fields</span></div>
  106. <div class="summary-table three-column-summary">
  107. <div class="table-header col-first">Modifier and Type</div>
  108. <div class="table-header col-second">Field</div>
  109. <div class="table-header col-last">Description</div>
  110. <div class="col-first even-row-color"><code>static final double</code></div>
  111. <div class="col-second even-row-color"><code><a href="#EGOSPEED" class="member-name-link">EGOSPEED</a></code></div>
  112. <div class="col-last even-row-color">&nbsp;</div>
  113. <div class="col-first odd-row-color"><code>static final double</code></div>
  114. <div class="col-second odd-row-color"><code><a href="#SHOTSPEED" class="member-name-link">SHOTSPEED</a></code></div>
  115. <div class="col-last odd-row-color">&nbsp;</div>
  116. </div>
  117. <div class="inherited-list">
  118. <h3 id="fields-inherited-from-class-playground.Playground">Fields inherited from class&nbsp;playground.<a href="Playground.html" title="class in playground">Playground</a></h3>
  119. <code><a href="Playground.html#FLAGS_ALL">FLAGS_ALL</a>, <a href="Playground.html#FLAGS_GLOBAL">FLAGS_GLOBAL</a>, <a href="Playground.html#FLAGS_LEVEL">FLAGS_LEVEL</a></code></div>
  120. </section>
  121. </li>
  122. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  123. <li>
  124. <section class="constructor-summary" id="constructor-summary">
  125. <h2>Constructor Summary</h2>
  126. <div class="caption"><span>Constructors</span></div>
  127. <div class="summary-table two-column-summary">
  128. <div class="table-header col-first">Constructor</div>
  129. <div class="table-header col-last">Description</div>
  130. <div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" class="member-name-link">SpaceInvadersLevel</a>()</code></div>
  131. <div class="col-last even-row-color">&nbsp;</div>
  132. </div>
  133. </section>
  134. </li>
  135. <!-- ========== METHOD SUMMARY =========== -->
  136. <li>
  137. <section class="method-summary" id="method-summary">
  138. <h2>Method Summary</h2>
  139. <div id="method-summary-table">
  140. <div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
  141. <div id="method-summary-table.tabpanel" role="tabpanel">
  142. <div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
  143. <div class="table-header col-first">Modifier and Type</div>
  144. <div class="table-header col-second">Method</div>
  145. <div class="table-header col-last">Description</div>
  146. <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
  147. <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#applyGameLogic()" class="member-name-link">applyGameLogic</a>()</code></div>
  148. <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
  149. <div class="block">applies the logic of the level: For now, this is just about deleting shots that are leaving the
  150. screen and calling methods 'actionIf..' in case objects collide.</div>
  151. </div>
  152. <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div>
  153. <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#gameOver()" class="member-name-link">gameOver</a>()</code></div>
  154. <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">&nbsp;</div>
  155. <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div>
  156. <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#levelFinished()" class="member-name-link">levelFinished</a>()</code></div>
  157. <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">&nbsp;</div>
  158. <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div>
  159. <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#preferredSizeX()" class="member-name-link">preferredSizeX</a>()</code></div>
  160. <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
  161. <div class="block">calculates and returns the preferred size of the level (in pixel) for X-direction</div>
  162. </div>
  163. <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div>
  164. <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#preferredSizeY()" class="member-name-link">preferredSizeY</a>()</code></div>
  165. <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
  166. <div class="block">calculates and returns the preferred size of the level (in pixel) for Y-direction</div>
  167. </div>
  168. <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
  169. <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#prepareLevel(java.lang.String)" class="member-name-link">prepareLevel</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;id)</code></div>
  170. <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
  171. <div class="block">initially sets up the level.</div>
  172. </div>
  173. <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
  174. <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#redrawLevel(java.awt.Graphics2D)" class="member-name-link">redrawLevel</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/awt/Graphics2D.html" title="class or interface in java.awt" class="external-link">Graphics2D</a>&nbsp;g2)</code></div>
  175. <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
  176. <div class="block">(re)draws the level but NOT the objects, they draw themselves.</div>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <div class="inherited-list">
  182. <h3 id="methods-inherited-from-class-playground.Playground">Methods inherited from class&nbsp;playground.<a href="Playground.html" title="class in playground">Playground</a></h3>
  183. <code><a href="Playground.html#addObject(gameobjects.GameObject)">addObject</a>, <a href="Playground.html#addObjectNow(gameobjects.GameObject)">addObjectNow</a>, <a href="Playground.html#collectObjects(java.lang.String,boolean)">collectObjects</a>, <a href="Playground.html#deleteObject(java.lang.String)">deleteObject</a>, <a href="Playground.html#deleteObjectNow(java.lang.String)">deleteObjectNow</a>, <a href="Playground.html#getGameTime()">getGameTime</a>, <a href="Playground.html#getGlobalFlag(java.lang.String)">getGlobalFlag</a>, <a href="Playground.html#getKeyEvents()">getKeyEvents</a>, <a href="Playground.html#getLevelFlag(java.lang.String)">getLevelFlag</a>, <a href="Playground.html#getMouseEvents()">getMouseEvents</a>, <a href="Playground.html#getObject(java.lang.String)">getObject</a>, <a href="Playground.html#getOrCreateGlobalFlag(java.lang.String,java.lang.Object)">getOrCreateGlobalFlag</a>, <a href="Playground.html#getOrCreateLevelFlag(java.lang.String,java.lang.Object)">getOrCreateLevelFlag</a>, <a href="Playground.html#getSizeX()">getSizeX</a>, <a href="Playground.html#getSizeY()">getSizeY</a>, <a href="Playground.html#getTimestep()">getTimestep</a>, <a href="Playground.html#isPaused()">isPaused</a>, <a href="Playground.html#processKeyEvents(java.util.Stack)">processKeyEvents</a>, <a href="Playground.html#processMouseEvents(java.util.Stack)">processMouseEvents</a>, <a href="Playground.html#redraw(java.awt.Graphics2D)">redraw</a>, <a href="Playground.html#reset()">reset</a>, <a href="Playground.html#resetFlags(int)">resetFlags</a>, <a href="Playground.html#setGameTime(double)">setGameTime</a>, <a href="Playground.html#setGlobalFlag(java.lang.String,java.lang.Object)">setGlobalFlag</a>, <a href="Playground.html#setLevelFlag(java.lang.String,java.lang.Object)">setLevelFlag</a>, <a href="Playground.html#setPaused(boolean)">setPaused</a>, <a href="Playground.html#setTimestep(double)">setTimestep</a>, <a href="Playground.html#togglePause()">togglePause</a>, <a href="Playground.html#updateObjects()">updateObjects</a></code></div>
  184. <div class="inherited-list">
  185. <h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3>
  186. <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
  187. </section>
  188. </li>
  189. </ul>
  190. </section>
  191. <section class="details">
  192. <ul class="details-list">
  193. <!-- ============ FIELD DETAIL =========== -->
  194. <li>
  195. <section class="field-details" id="field-detail">
  196. <h2>Field Details</h2>
  197. <ul class="member-list">
  198. <li>
  199. <section class="detail" id="SHOTSPEED">
  200. <h3>SHOTSPEED</h3>
  201. <div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type">double</span>&nbsp;<span class="element-name">SHOTSPEED</span></div>
  202. <dl class="notes">
  203. <dt>See Also:</dt>
  204. <dd>
  205. <ul class="see-list">
  206. <li><a href="../constant-values.html#playground.SpaceInvadersLevel.SHOTSPEED">Constant Field Values</a></li>
  207. </ul>
  208. </dd>
  209. </dl>
  210. </section>
  211. </li>
  212. <li>
  213. <section class="detail" id="EGOSPEED">
  214. <h3>EGOSPEED</h3>
  215. <div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type">double</span>&nbsp;<span class="element-name">EGOSPEED</span></div>
  216. <dl class="notes">
  217. <dt>See Also:</dt>
  218. <dd>
  219. <ul class="see-list">
  220. <li><a href="../constant-values.html#playground.SpaceInvadersLevel.EGOSPEED">Constant Field Values</a></li>
  221. </ul>
  222. </dd>
  223. </dl>
  224. </section>
  225. </li>
  226. </ul>
  227. </section>
  228. </li>
  229. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  230. <li>
  231. <section class="constructor-details" id="constructor-detail">
  232. <h2>Constructor Details</h2>
  233. <ul class="member-list">
  234. <li>
  235. <section class="detail" id="&lt;init&gt;()">
  236. <h3>SpaceInvadersLevel</h3>
  237. <div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name">SpaceInvadersLevel</span>()</div>
  238. </section>
  239. </li>
  240. </ul>
  241. </section>
  242. </li>
  243. <!-- ============ METHOD DETAIL ========== -->
  244. <li>
  245. <section class="method-details" id="method-detail">
  246. <h2>Method Details</h2>
  247. <ul class="member-list">
  248. <li>
  249. <section class="detail" id="prepareLevel(java.lang.String)">
  250. <h3>prepareLevel</h3>
  251. <div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">prepareLevel</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;id)</span></div>
  252. <div class="block">initially sets up the level. Not called by user interaction, but called every time a layer is
  253. restarted from scratch. So make sure that this is possible. Here, resources are loaded only
  254. once even if method is called several times.</div>
  255. <dl class="notes">
  256. <dt>Specified by:</dt>
  257. <dd><code><a href="Playground.html#prepareLevel(java.lang.String)">prepareLevel</a></code>&nbsp;in class&nbsp;<code><a href="Playground.html" title="class in playground">Playground</a></code></dd>
  258. <dt>Parameters:</dt>
  259. <dd><code>id</code> - String identifies level.</dd>
  260. </dl>
  261. </section>
  262. </li>
  263. <li>
  264. <section class="detail" id="redrawLevel(java.awt.Graphics2D)">
  265. <h3>redrawLevel</h3>
  266. <div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">redrawLevel</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/awt/Graphics2D.html" title="class or interface in java.awt" class="external-link">Graphics2D</a>&nbsp;g2)</span></div>
  267. <div class="block">(re)draws the level but NOT the objects, they draw themselves. Called by the main game loop.
  268. This method mainly draws the background and the scoreboard.</div>
  269. <dl class="notes">
  270. <dt>Specified by:</dt>
  271. <dd><code><a href="Playground.html#redrawLevel(java.awt.Graphics2D)">redrawLevel</a></code>&nbsp;in class&nbsp;<code><a href="Playground.html" title="class in playground">Playground</a></code></dd>
  272. <dt>Parameters:</dt>
  273. <dd><code>g2</code> - Graphics2D object that can, and should be, draw on.</dd>
  274. </dl>
  275. </section>
  276. </li>
  277. <li>
  278. <section class="detail" id="applyGameLogic()">
  279. <h3>applyGameLogic</h3>
  280. <div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">applyGameLogic</span>()</div>
  281. <div class="block">applies the logic of the level: For now, this is just about deleting shots that are leaving the
  282. screen and calling methods 'actionIf..' in case objects collide.</div>
  283. <dl class="notes">
  284. <dt>Specified by:</dt>
  285. <dd><code><a href="Playground.html#applyGameLogic()">applyGameLogic</a></code>&nbsp;in class&nbsp;<code><a href="Playground.html" title="class in playground">Playground</a></code></dd>
  286. </dl>
  287. </section>
  288. </li>
  289. <li>
  290. <section class="detail" id="gameOver()">
  291. <h3>gameOver</h3>
  292. <div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">gameOver</span>()</div>
  293. <dl class="notes">
  294. <dt>Specified by:</dt>
  295. <dd><code><a href="Playground.html#gameOver()">gameOver</a></code>&nbsp;in class&nbsp;<code><a href="Playground.html" title="class in playground">Playground</a></code></dd>
  296. </dl>
  297. </section>
  298. </li>
  299. <li>
  300. <section class="detail" id="levelFinished()">
  301. <h3>levelFinished</h3>
  302. <div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">levelFinished</span>()</div>
  303. <dl class="notes">
  304. <dt>Specified by:</dt>
  305. <dd><code><a href="Playground.html#levelFinished()">levelFinished</a></code>&nbsp;in class&nbsp;<code><a href="Playground.html" title="class in playground">Playground</a></code></dd>
  306. </dl>
  307. </section>
  308. </li>
  309. <li>
  310. <section class="detail" id="preferredSizeX()">
  311. <h3>preferredSizeX</h3>
  312. <div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name">preferredSizeX</span>()</div>
  313. <div class="block">calculates and returns the preferred size of the level (in pixel) for X-direction</div>
  314. <dl class="notes">
  315. <dt>Specified by:</dt>
  316. <dd><code><a href="Playground.html#preferredSizeX()">preferredSizeX</a></code>&nbsp;in class&nbsp;<code><a href="Playground.html" title="class in playground">Playground</a></code></dd>
  317. </dl>
  318. </section>
  319. </li>
  320. <li>
  321. <section class="detail" id="preferredSizeY()">
  322. <h3>preferredSizeY</h3>
  323. <div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name">preferredSizeY</span>()</div>
  324. <div class="block">calculates and returns the preferred size of the level (in pixel) for Y-direction</div>
  325. <dl class="notes">
  326. <dt>Specified by:</dt>
  327. <dd><code><a href="Playground.html#preferredSizeY()">preferredSizeY</a></code>&nbsp;in class&nbsp;<code><a href="Playground.html" title="class in playground">Playground</a></code></dd>
  328. </dl>
  329. </section>
  330. </li>
  331. </ul>
  332. </section>
  333. </li>
  334. </ul>
  335. </section>
  336. <!-- ========= END OF CLASS DATA ========= -->
  337. </main>
  338. </div>
  339. </div>
  340. </body>
  341. </html>