- paddleAndBallStateSynchronization() - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
This method is important when considering paddle power-ups in order to synchronize
the state of the ball based on the current state of the paddle
(This method is to be overridden via TODOS)
- paddleBallCollisionCheck() - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
Use this method to determine if the paddle is currently colliding with a ball in the ballSet
- paddleChecks() - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
Top-Level API Method - calls other methods
This method could be overridden to add extra features not covered in the TODOs
specific to any check involving a paddle, such as movement via keyboard or mouse,
changing the image associated with a paddle, or synchronizing the state of the paddle and ball
- paddleGetState() - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
Get the state of the "default" (or player 1) paddle, stored at index 0.
- paddleGetState(int) - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
This gives you the state of one of many paddles in the paddleSet
- paddleMoveLeft() - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
API utility method
Use this method to move the "default" paddle left, typically in response to some user input.
- paddleMoveLeft(int) - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
API utility method
Use this method to move the specified paddle left, typically in response to some user input.
- paddleMovementCheck() - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
Use this method to check for user input and then to move the paddle(s) accordingly
You could add to this method so that two people can play on one computer, using
the WASD and arrow keys, for example.
- paddleMoveRight() - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
API utility method
Use this method to move the "default" paddle right, typically in response to some user input.
- paddleMoveRight(int) - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
API utility method
Use this method to move the specified paddle right, typically in response to some user input.
- paddleSetCenterX(float) - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
Use this to set the x-position of the paddle.
- paddleSetCenterX(float, int) - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
Use this to set the x coordinate of a specific paddle in the paddle set
- paddleSetImage(String) - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
Use this to change the image associated with the "default" paddle, for use with
paddle power-ups, etc.
- paddleSetImage(String, int) - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
Use this to change the image associated with a specified paddle, for use with
paddle power-ups, etc.
- paddleStateTranslate(Paddle.PaddleState) - Method in class SpaceSmasher_FunctionalAPI.SpaceSmasherFunctionalAPI
-
API utility method - functional wrapper (not to be overridden)