Index

A B C D E G H I K L M N O P R S T U V 
All Classes and Interfaces|All Packages

A

addScoreListener(ScoreListener) - Method in class org.comp2059.pong.controller.GameEngine
 

B

Ball - Class in org.comp2059.pong.model
 
Ball() - Constructor for class org.comp2059.pong.model.Ball
 
Ball(int, int, int, TableBounds) - Constructor for class org.comp2059.pong.model.Ball
 
ballCenterY() - Method in record class org.comp2059.pong.controller.ControlContext
Returns the value of the ballCenterY record component.
bottom() - Method in record class org.comp2059.pong.model.TableBounds
Returns the value of the bottom record component.

C

clear() - Method in class org.comp2059.pong.controller.KeyboardInput
 
collidesWithBoundaryHorizontal() - Method in class org.comp2059.pong.model.Ball
 
collidesWithBoundaryVertical() - Method in class org.comp2059.pong.model.Ball
 
collidesWithPaddle(Paddle) - Method in class org.comp2059.pong.model.Ball
 
collisionBoundaryHorizontal() - Method in class org.comp2059.pong.model.Ball
 
collisionBoundaryVertical() - Method in class org.comp2059.pong.model.Ball
 
collisionPaddle(Paddle) - Method in class org.comp2059.pong.model.Ball
 
ControlContext - Record Class in org.comp2059.pong.controller
 
ControlContext(double, double) - Constructor for record class org.comp2059.pong.controller.ControlContext
Creates an instance of a ControlContext record class.

D

decideMovement(ControlContext) - Method in class org.comp2059.pong.controller.KeyboardPaddleController
 
decideMovement(ControlContext) - Method in interface org.comp2059.pong.controller.PaddleController
 
DOWN - Enum constant in enum class org.comp2059.pong.controller.Movement
 

E

equals(Object) - Method in record class org.comp2059.pong.controller.ControlContext
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.comp2059.pong.model.TableBounds
Indicates whether some other object is "equal to" this one.

G

GameEngine - Class in org.comp2059.pong.controller
Owns one game's state and advances it independently of the UI timer.
GameEngine(PaddleController, PaddleController, int, int) - Constructor for class org.comp2059.pong.controller.GameEngine
 
GameViewController - Class in org.comp2059.pong.view
 
GameViewController() - Constructor for class org.comp2059.pong.view.GameViewController
 
getBall() - Method in class org.comp2059.pong.controller.GameEngine
 
getCenterX() - Method in class org.comp2059.pong.model.Ball
 
getCenterY() - Method in class org.comp2059.pong.model.Ball
 
getCenterY() - Method in class org.comp2059.pong.model.Paddle
 
getDirectionX() - Method in class org.comp2059.pong.model.Ball
 
getDirectionY() - Method in class org.comp2059.pong.model.Ball
 
getHeight() - Method in class org.comp2059.pong.model.Paddle
 
getLeftPaddle() - Method in class org.comp2059.pong.controller.GameEngine
 
getRadius() - Method in class org.comp2059.pong.model.Ball
 
getRightPaddle() - Method in class org.comp2059.pong.controller.GameEngine
 
getScoreLeft() - Method in class org.comp2059.pong.controller.GameEngine
 
getScoreRight() - Method in class org.comp2059.pong.controller.GameEngine
 
getWidth() - Method in class org.comp2059.pong.model.Paddle
 
getX() - Method in class org.comp2059.pong.model.Paddle
 
getY() - Method in class org.comp2059.pong.model.Paddle
 

H

hashCode() - Method in record class org.comp2059.pong.controller.ControlContext
Returns a hash code value for this object.
hashCode() - Method in record class org.comp2059.pong.model.TableBounds
Returns a hash code value for this object.

I

installKeyboardControls(Stage) - Method in class org.comp2059.pong.view.GameViewController
Connects keyboard controls after the game scene is set on the stage.
isInitialized() - Method in class org.comp2059.pong.controller.GameEngine
 
isPressed(KeyCode) - Method in class org.comp2059.pong.controller.KeyboardInput
 
isRunning() - Method in class org.comp2059.pong.controller.GameEngine
 

K

KeyboardInput - Class in org.comp2059.pong.controller
 
KeyboardInput() - Constructor for class org.comp2059.pong.controller.KeyboardInput
 
KeyboardPaddleController - Class in org.comp2059.pong.controller
 
KeyboardPaddleController(KeyboardInput, KeyCode, KeyCode) - Constructor for class org.comp2059.pong.controller.KeyboardPaddleController
 

L

left() - Method in record class org.comp2059.pong.model.TableBounds
Returns the value of the left record component.

M

main(String[]) - Static method in class org.comp2059.pong.app.Main
 
Main - Class in org.comp2059.pong.app
 
Main() - Constructor for class org.comp2059.pong.app.Main
 
move() - Method in class org.comp2059.pong.model.Ball
 
move(int) - Method in class org.comp2059.pong.model.Paddle
 
moveDown() - Method in class org.comp2059.pong.model.Paddle
 
Movement - Enum Class in org.comp2059.pong.controller
 
moveUp() - Method in class org.comp2059.pong.model.Paddle
 

N

NONE - Enum constant in enum class org.comp2059.pong.controller.Movement
 

O

onScoreChanged(int, int) - Method in interface org.comp2059.pong.model.ScoreListener
 
org.comp2059.pong.app - package org.comp2059.pong.app
 
org.comp2059.pong.controller - package org.comp2059.pong.controller
 
org.comp2059.pong.model - package org.comp2059.pong.model
 
org.comp2059.pong.view - package org.comp2059.pong.view
 

P

Paddle - Class in org.comp2059.pong.model
 
Paddle() - Constructor for class org.comp2059.pong.model.Paddle
 
Paddle(int, int, int, int) - Constructor for class org.comp2059.pong.model.Paddle
 
paddleCenterY() - Method in record class org.comp2059.pong.controller.ControlContext
Returns the value of the paddleCenterY record component.
PaddleController - Interface in org.comp2059.pong.controller
 
PongApplication - Class in org.comp2059.pong.app
 
PongApplication() - Constructor for class org.comp2059.pong.app.PongApplication
 
press(KeyCode) - Method in class org.comp2059.pong.controller.KeyboardInput
 

R

randomizeStartDirection() - Method in class org.comp2059.pong.model.Ball
 
release(KeyCode) - Method in class org.comp2059.pong.controller.KeyboardInput
 
removeScoreListener(ScoreListener) - Method in class org.comp2059.pong.controller.GameEngine
 
reset() - Method in class org.comp2059.pong.model.Ball
 
reset(int, int) - Method in class org.comp2059.pong.controller.GameEngine
Resets the game to the current play area, ready for Start.
reverseDirection() - Method in class org.comp2059.pong.model.Ball
 
right() - Method in record class org.comp2059.pong.model.TableBounds
Returns the value of the right record component.

S

ScoreListener - Interface in org.comp2059.pong.model
 
setEnabled(boolean) - Method in class org.comp2059.pong.model.Paddle
 
setLocation(int, int) - Method in class org.comp2059.pong.model.Ball
 
setLocation(int, int) - Method in class org.comp2059.pong.model.Paddle
 
setSize(int, int) - Method in class org.comp2059.pong.model.Paddle
 
setSizePaddle(int, int) - Static method in class org.comp2059.pong.model.Paddle
 
setSpeed(int, int) - Method in class org.comp2059.pong.model.Ball
 
setTableBounds(int, int, int, int) - Method in class org.comp2059.pong.model.Paddle
 
setTableBounds(TableBounds) - Method in class org.comp2059.pong.model.Ball
 
speedLimitCheck() - Method in class org.comp2059.pong.model.Ball
 
start() - Method in class org.comp2059.pong.controller.GameEngine
 
start(Stage) - Method in class org.comp2059.pong.app.PongApplication
 
stop() - Method in class org.comp2059.pong.app.PongApplication
 
stop() - Method in class org.comp2059.pong.model.Ball
 
stop() - Method in class org.comp2059.pong.view.GameViewController
Releases the JavaFX timer when the application closes.

T

TableBounds - Record Class in org.comp2059.pong.model
Immutable edges of the table's play area.
TableBounds(int, int, int, int) - Constructor for record class org.comp2059.pong.model.TableBounds
Creates an instance of a TableBounds record class.
top() - Method in record class org.comp2059.pong.model.TableBounds
Returns the value of the top record component.
toString() - Method in record class org.comp2059.pong.controller.ControlContext
Returns a string representation of this record class.
toString() - Method in record class org.comp2059.pong.model.TableBounds
Returns a string representation of this record class.

U

UP - Enum constant in enum class org.comp2059.pong.controller.Movement
 
update(long) - Method in class org.comp2059.pong.controller.GameEngine
Advances one 10ms game tick; nowNanos must come from a monotonic clock.

V

valueOf(String) - Static method in enum class org.comp2059.pong.controller.Movement
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.comp2059.pong.controller.Movement
Returns an array containing the constants of this enum class, in the order they are declared.
A B C D E G H I K L M N O P R S T U V 
All Classes and Interfaces|All Packages