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.

203 lines
13 KiB

3 years ago
3 years ago
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>Uses of Class controller.ObjectController</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="use: package: controller, class: ObjectController">
  10. <meta name="generator" content="javadoc/ClassUseWriter">
  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-use-page">
  19. <script type="text/javascript">var pathtoroot = "../../";
  20. loadScripts(document, 'script');</script>
  21. <noscript>
  22. <div>JavaScript is disabled on your browser.</div>
  23. </noscript>
  24. <div class="flex-box">
  25. <header role="banner" class="flex-header">
  26. <nav role="navigation">
  27. <!-- ========= START OF TOP NAVBAR ======= -->
  28. <div class="top-nav" id="navbar-top">
  29. <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
  30. <ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
  31. <li><a href="../../index.html">Overview</a></li>
  32. <li><a href="../package-summary.html">Package</a></li>
  33. <li><a href="../ObjectController.html" title="class in controller">Class</a></li>
  34. <li class="nav-bar-cell1-rev">Use</li>
  35. <li><a href="../package-tree.html">Tree</a></li>
  36. <li><a href="../../index-files/index-1.html">Index</a></li>
  37. <li><a href="../../help-doc.html#use">Help</a></li>
  38. </ul>
  39. </div>
  40. <div class="sub-nav">
  41. <div class="nav-list-search"><label for="search-input">SEARCH:</label>
  42. <input type="text" id="search-input" value="search" disabled="disabled">
  43. <input type="reset" id="reset-button" value="reset" disabled="disabled">
  44. </div>
  45. </div>
  46. <!-- ========= END OF TOP NAVBAR ========= -->
  47. <span class="skip-nav" id="skip-navbar-top"></span></nav>
  48. </header>
  49. <div class="flex-content">
  50. <main role="main">
  51. <div class="header">
  52. <h1 title="Uses of Class controller.ObjectController" class="title">Uses of Class<br>controller.ObjectController</h1>
  53. </div>
  54. <div class="caption"><span>Packages that use <a href="../ObjectController.html" title="class in controller">ObjectController</a></span></div>
  55. <div class="summary-table two-column-summary">
  56. <div class="table-header col-first">Package</div>
  57. <div class="table-header col-last">Description</div>
  58. <div class="col-first even-row-color"><a href="#collider">collider</a></div>
  59. <div class="col-last even-row-color">
  60. <div class="block">The package contains classes implementing a 'bounding box' area around game objects.</div>
  61. </div>
  62. <div class="col-first odd-row-color"><a href="#controller">controller</a></div>
  63. <div class="col-last odd-row-color">
  64. <div class="block">The controller package contains Object controllers that govern an objects behavior, without being
  65. involved in its collision or drawing properties.</div>
  66. </div>
  67. <div class="col-first even-row-color"><a href="#gameobjects">gameobjects</a></div>
  68. <div class="col-last even-row-color">
  69. <div class="block">The package gameobjects contains all objects with a visual representation on screen.</div>
  70. </div>
  71. </div>
  72. <section class="class-uses">
  73. <ul class="block-list">
  74. <li>
  75. <section class="detail" id="collider">
  76. <h2>Uses of <a href="../ObjectController.html" title="class in controller">ObjectController</a> in <a href="../../collider/package-summary.html">collider</a></h2>
  77. <div class="caption"><span>Methods in <a href="../../collider/package-summary.html">collider</a> with parameters of type <a href="../ObjectController.html" title="class in controller">ObjectController</a></span></div>
  78. <div class="summary-table three-column-summary">
  79. <div class="table-header col-first">Modifier and Type</div>
  80. <div class="table-header col-second">Method</div>
  81. <div class="table-header col-last">Description</div>
  82. <div class="col-first even-row-color"><code>void</code></div>
  83. <div class="col-second even-row-color"><span class="type-name-label">Collider.</span><code><a href="../../collider/Collider.html#setController(controller.ObjectController)" class="member-name-link">setController</a><wbr>(<a href="../ObjectController.html" title="class in controller">ObjectController</a>&nbsp;controller)</code></div>
  84. <div class="col-last even-row-color">
  85. <div class="block">setter for GameController</div>
  86. </div>
  87. </div>
  88. </section>
  89. </li>
  90. <li>
  91. <section class="detail" id="controller">
  92. <h2>Uses of <a href="../ObjectController.html" title="class in controller">ObjectController</a> in <a href="../package-summary.html">controller</a></h2>
  93. <div class="caption"><span>Subclasses of <a href="../ObjectController.html" title="class in controller">ObjectController</a> in <a href="../package-summary.html">controller</a></span></div>
  94. <div class="summary-table three-column-summary">
  95. <div class="table-header col-first">Modifier and Type</div>
  96. <div class="table-header col-second">Class</div>
  97. <div class="table-header col-last">Description</div>
  98. <div class="col-first even-row-color"><code>class&nbsp;</code></div>
  99. <div class="col-second even-row-color"><code><a href="../CollisionAwareEgoController.html" class="type-name-link" title="class in controller">CollisionAwareEgoController</a></code></div>
  100. <div class="col-last even-row-color">
  101. <div class="block">An EgoController which cannot move through obstacle objects (is collission aware).</div>
  102. </div>
  103. <div class="col-first odd-row-color"><code>class&nbsp;</code></div>
  104. <div class="col-second odd-row-color"><code><a href="../EgoController.html" class="type-name-link" title="class in controller">EgoController</a></code></div>
  105. <div class="col-last odd-row-color">
  106. <div class="block">Controller using key events for up, down, left, right and space (shooting) to control the ego
  107. object behavior.</div>
  108. </div>
  109. <div class="col-first even-row-color"><code>class&nbsp;</code></div>
  110. <div class="col-second even-row-color"><code><a href="../EnemyController.html" class="type-name-link" title="class in controller">EnemyController</a></code></div>
  111. <div class="col-last even-row-color">
  112. <div class="block">This class controls the space invaders.</div>
  113. </div>
  114. <div class="col-first odd-row-color"><code>class&nbsp;</code></div>
  115. <div class="col-second odd-row-color"><code><a href="../FallingStarController.html" class="type-name-link" title="class in controller">FallingStarController</a></code></div>
  116. <div class="col-last odd-row-color">
  117. <div class="block">Controls background stars.</div>
  118. </div>
  119. <div class="col-first even-row-color"><code>class&nbsp;</code></div>
  120. <div class="col-second even-row-color"><code><a href="../LimitedTimeController.html" class="type-name-link" title="class in controller">LimitedTimeController</a></code></div>
  121. <div class="col-last even-row-color">
  122. <div class="block">Controls and abject that is deleted after a lifetime specified in the constructor, and when it
  123. leaves the display.</div>
  124. </div>
  125. <div class="col-first odd-row-color"><code>class&nbsp;</code></div>
  126. <div class="col-second odd-row-color"><code><a href="../MineController.html" class="type-name-link" title="class in controller">MineController</a></code></div>
  127. <div class="col-last odd-row-color">
  128. <div class="block">Stops GameObject movement at bottom of level and let it 'fly' in x-direction towards ego object.</div>
  129. </div>
  130. <div class="col-first even-row-color"><code>class&nbsp;</code></div>
  131. <div class="col-second even-row-color"><code><a href="../ReboundController.html" class="type-name-link" title="class in controller">ReboundController</a></code></div>
  132. <div class="col-last even-row-color">&nbsp;</div>
  133. <div class="col-first odd-row-color"><code>class&nbsp;</code></div>
  134. <div class="col-second odd-row-color"><code><a href="../ReboundController2.html" class="type-name-link" title="class in controller">ReboundController2</a></code></div>
  135. <div class="col-last odd-row-color">
  136. <div class="block">Controller to let Objects bounce from the outer level limits back and forth.</div>
  137. </div>
  138. <div class="col-first even-row-color"><code>class&nbsp;</code></div>
  139. <div class="col-second even-row-color"><code><a href="../SimpleShotController.html" class="type-name-link" title="class in controller">SimpleShotController</a></code></div>
  140. <div class="col-last even-row-color">&nbsp;</div>
  141. <div class="col-first odd-row-color"><code>class&nbsp;</code></div>
  142. <div class="col-second odd-row-color"><code><a href="../ZickZackController.html" class="type-name-link" title="class in controller">ZickZackController</a></code></div>
  143. <div class="col-last odd-row-color">&nbsp;</div>
  144. </div>
  145. </section>
  146. </li>
  147. <li>
  148. <section class="detail" id="gameobjects">
  149. <h2>Uses of <a href="../ObjectController.html" title="class in controller">ObjectController</a> in <a href="../../gameobjects/package-summary.html">gameobjects</a></h2>
  150. <div class="caption"><span>Methods in <a href="../../gameobjects/package-summary.html">gameobjects</a> that return <a href="../ObjectController.html" title="class in controller">ObjectController</a></span></div>
  151. <div class="summary-table three-column-summary">
  152. <div class="table-header col-first">Modifier and Type</div>
  153. <div class="table-header col-second">Method</div>
  154. <div class="table-header col-last">Description</div>
  155. <div class="col-first even-row-color"><code><a href="../ObjectController.html" title="class in controller">ObjectController</a></code></div>
  156. <div class="col-second even-row-color"><span class="type-name-label">GameObject.</span><code><a href="../../gameobjects/GameObject.html#getObjectController()" class="member-name-link">getObjectController</a>()</code></div>
  157. <div class="col-last even-row-color">
  158. <div class="block">Access to object controller.</div>
  159. </div>
  160. </div>
  161. <div class="caption"><span>Methods in <a href="../../gameobjects/package-summary.html">gameobjects</a> with parameters of type <a href="../ObjectController.html" title="class in controller">ObjectController</a></span></div>
  162. <div class="summary-table three-column-summary">
  163. <div class="table-header col-first">Modifier and Type</div>
  164. <div class="table-header col-second">Method</div>
  165. <div class="table-header col-last">Description</div>
  166. <div class="col-first even-row-color"><code><a href="../../gameobjects/GameObject.html" title="class in gameobjects">GameObject</a></code></div>
  167. <div class="col-second even-row-color"><span class="type-name-label">GameObject.</span><code><a href="../../gameobjects/GameObject.html#addController(controller.ObjectController)" class="member-name-link">addController</a><wbr>(<a href="../ObjectController.html" title="class in controller">ObjectController</a>&nbsp;c)</code></div>
  168. <div class="col-last even-row-color">
  169. <div class="block">Sets the controller to use for this GameObject's logical behavior.</div>
  170. </div>
  171. <div class="col-first odd-row-color"><code>void</code></div>
  172. <div class="col-second odd-row-color"><span class="type-name-label">GameObject.</span><code><a href="../../gameobjects/GameObject.html#setObjectController(controller.ObjectController)" class="member-name-link">setObjectController</a><wbr>(<a href="../ObjectController.html" title="class in controller">ObjectController</a>&nbsp;controller)</code></div>
  173. <div class="col-last odd-row-color">
  174. <div class="block">Sets a new object controller (replaces any former one).</div>
  175. </div>
  176. </div>
  177. <div class="caption"><span>Constructors in <a href="../../gameobjects/package-summary.html">gameobjects</a> with parameters of type <a href="../ObjectController.html" title="class in controller">ObjectController</a></span></div>
  178. <div class="summary-table three-column-summary">
  179. <div class="table-header col-first">Modifier</div>
  180. <div class="table-header col-second">Constructor</div>
  181. <div class="table-header col-last">Description</div>
  182. <div class="col-first even-row-color"><code>&nbsp;</code></div>
  183. <div class="col-second even-row-color"><code><a href="../../gameobjects/GameObject.html#%3Cinit%3E(java.lang.String,playground.Playground,controller.ObjectController,double,double,double,double)" class="member-name-link">GameObject</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,
  184. <a href="../../playground/Playground.html" title="class in playground">Playground</a>&nbsp;playground,
  185. <a href="../ObjectController.html" title="class in controller">ObjectController</a>&nbsp;controller,
  186. double&nbsp;x,
  187. double&nbsp;y,
  188. double&nbsp;vx,
  189. double&nbsp;vy)</code></div>
  190. <div class="col-last even-row-color">
  191. <div class="block">Constructor to initialize a GameObject, respectively set the current Playground instance this
  192. GameObject belongs to.</div>
  193. </div>
  194. </div>
  195. </section>
  196. </li>
  197. </ul>
  198. </section>
  199. </main>
  200. </div>
  201. </div>
  202. </body>
  203. </html>