Uses of Class
controller.ObjectController
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.
-
Uses of ObjectController in collider
Modifier and TypeMethodDescriptionvoid
Collider.setController
(ObjectController controller) setter for GameController -
Uses of ObjectController in controller
Modifier and TypeClassDescriptionclass
An EgoController which cannot move through obstacle objects (is collission aware).class
Controller using key events for up, down, left, right and space (shooting) to control the ego object behavior.class
This class controls the space invaders.class
Controls background stars.class
Controls and abject that is deleted after a lifetime specified in the constructor, and when it leaves the display.class
Stops GameObject movement at bottom of level and let it 'fly' in x-direction towards ego object.class
class
Controller to let Objects bounce from the outer level limits back and forth.class
class
-
Uses of ObjectController in gameobjects
Modifier and TypeMethodDescriptionGameObject.addController
(ObjectController c) Sets the controller to use for this GameObject's logical behavior.void
GameObject.setObjectController
(ObjectController controller) Sets a new object controller (replaces any former one).ModifierConstructorDescriptionGameObject
(String id, Playground playground, ObjectController controller, double x, double y, double vx, double vy) Constructor to initialize a GameObject, respectively set the current Playground instance this GameObject belongs to.