Uses of Class
gameobjects.GameObject
Packages that use GameObject
Package
Description
The controller package contains Object controllers that govern an objects behavior, without being
involved in its collision or drawing properties.
-
Uses of GameObject in collider
Methods in collider with parameters of type GameObjectModifier and TypeMethodDescriptionvoid
Collider.setObject
(GameObject gameObject) setter for corresponding GameObjectConstructors in collider with parameters of type GameObjectModifierConstructorDescriptionCircleCollider
(String id, GameObject o, double radius) Constructor which sets the radius to be respected for collisions.Collider
(String id, GameObject o) RectCollider
(String id, GameObject o, double w, double h) initializes this RectCollider. -
Uses of GameObject in controller
Methods in controller with parameters of type GameObjectModifier and TypeMethodDescriptionvoid
EgoController.onDown
(KeyEvent kc, GameObject ego) void
EgoController.onLeft
(KeyEvent kc, GameObject ego) void
EgoController.onRight
(KeyEvent kc, GameObject ego) void
CollisionAwareEgoController.onSpace
(KeyEvent e, GameObject ego) void
EgoController.onSpace
(KeyEvent e, GameObject ego) behavior for shooting on key spacevoid
EgoController.onStop
(KeyEvent kc, GameObject ego) void
EgoController.onUp
(KeyEvent kc, GameObject ego) void
ObjectController.setObject
(GameObject gameObject) -
Uses of GameObject in gameobjects
Subclasses of GameObject in gameobjectsModifier and TypeClassDescriptionclass
class
class
class
A rectangle object.class
Convenience Class subclassingGameObject
, directly instanciatingTextArtist
a subclass ofArtist
that draws a text.Methods in gameobjects that return GameObjectModifier and TypeMethodDescriptionSets the artist to be used for drawing the object onto visible canvas area.GameObject.addController
(ObjectController c) Sets the controller to use for this GameObject's logical behavior.AnimatedGameobject.generateColliders()
EgoObject.generateColliders()
GameObject.generateColliders()
generates and sets collider(s) for this GameObject.GameObject.setActive
(boolean flag) Methods in gameobjects with parameters of type GameObjectModifier and TypeMethodDescriptionboolean
GameObject.collisionDetection
(GameObject other) Collision detection implemented by iteration through the own list ofCollider
and calling theirCollider.collidesWith(Collider)
method to check collision with the given parameter instance of otherGameObject
. -
Uses of GameObject in playground
Methods in playground that return GameObjectModifier and TypeMethodDescriptionRetrieves a graphics object by name.Methods in playground that return types with arguments of type GameObjectModifier and TypeMethodDescriptionPlayground.collectObjects
(String substr, boolean filterInactive) Puts objects with a certain substring in their name into a LinkedLisrt and returns them.Methods in playground with parameters of type GameObjectModifier and TypeMethodDescriptionvoid
Playground.addObject
(GameObject o) Adds a graphics object to a level.void
Playground.addObjectNow
(GameObject o) Adds a graphics object to a level. -
Uses of GameObject in rendering
Constructors in rendering with parameters of type GameObjectModifierConstructorDescriptionAnimationArtist
(GameObject go, Animation anim, double t0, String playmode, double scale) CircleArtist
(GameObject go, double egoRad, Color color) RectArtist
(GameObject go, double width, double height, Color color) TextArtist
(GameObject go, String text, int size, Color textColor) Constructor to intitialize the TextArtist attributes