Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
U
W
_
S
s1
- Variable in class ballwar.model.strategy.
DrunkenStrategy
A possible strategy to use.
s2
- Variable in class ballwar.model.strategy.
DrunkenStrategy
A possible strategy to use.
s3
- Variable in class ballwar.model.strategy.
DrunkenStrategy
A possible strategy to use.
s4
- Variable in class ballwar.model.strategy.
DrunkenStrategy
A possible strategy to use.
scaleFactor
- Variable in class ballwar.model.paint.
ImagePaintStrategy
Number of times larger than unit size of image
scaleFactor
- Variable in class ballwar.model.paint.shape.
PolygonFactory
Scale factor that scales the integer Point-defined Polygon to a unit size, which requires doubles.
ScoreStrategy
- Class in
ballwar.model.strategy
An ANoOpStrategy-based strategy that increments an associated player's score at every collision and resets that player's score if it is killed.
ScoreStrategy()
- Constructor for class ballwar.model.strategy.
ScoreStrategy
serialVersionUID
- Static variable in class ballwar.controller.
BallControl
serialVersionUID
- Static variable in class ballwar.view.
BallGUI
serialVersionUID
- Static variable in class ballwar.view.
OptionPanel
setColor(Color)
- Method in class ballwar.model.
Ball
Sets the color of this Ball to a given color.
setLocation(Point)
- Method in class ballwar.model.
Ball
Sets the center of the ball to a new location.
setMass(double)
- Method in class ballwar.model.
Ball
Sets the ball's mass
setMovementKeys(IMovementKeys)
- Method in interface ballwar.model.
IPlayer
Set the set of movement keys to be associated with this player.
setPaintStrategy(IPaintStrategy)
- Method in class ballwar.model.
Ball
Sets the current strategy of this Ball to the given strategy
setRadius(int)
- Method in class ballwar.model.
Ball
Sets the radius of this Ball to a new radius.
setScore(int)
- Method in interface ballwar.model.
IPlayer
Sets the player's score (integer value).
setStrategy(IUpdateStrategy)
- Method in class ballwar.model.
Ball
Sets the current update strategy of this Ball to the given strategy
setStrategy(IUpdateStrategy)
- Method in class ballwar.model.strategy.
SwitcherStrategy
Sets the decoree to reference the given strategy.
setSwitcherStrategy(IUpdateStrategy)
- Method in class ballwar.model.
BallModel
Sets the strategy used by any switcher balls.
setVelocity(Point)
- Method in class ballwar.model.
Ball
Sets the velocity of this Ball to a new velocity.
shape
- Variable in class ballwar.model.paint.
ShapePaintStrategy
The Shape to be painted
ShapePaintStrategy
- Class in
ballwar.model.paint
Concrete class that defines invariant painting behaviors for all Shape subclasses.
ShapePaintStrategy(Shape)
- Constructor for class ballwar.model.paint.
ShapePaintStrategy
Constructor that allocates a new AffineTransform for internal use.
ShapePaintStrategy(AffineTransform, Shape)
- Constructor for class ballwar.model.paint.
ShapePaintStrategy
Constructor that uses a supplied AffineTransform for internal use.
sinA
- Variable in class ballwar.model.strategy.
CurveStrategy
Pre-calculated value of sin(angle)
SineMaker
- Class in
util
A utility class that can be used to create smoothly varying sinusoidal numerical data.
SineMaker(double, double, double)
- Constructor for class util.
SineMaker
The constructor takes several values to control the object's behavior.
Singleton
- Static variable in class ballwar.model.paint.shape.
EllipseShapeFactory
Singleton pattern
Singleton
- Static variable in class ballwar.model.paint.shape.
RectangleShapeFactory
Singleton pattern
Singleton
- Static variable in class util.
Randomizer
sm
- Variable in class ballwar.model.strategy.
BreathingStrategy
A SineMaker object that creates a sinusoidally varying value.
SquarePaintStrategy
- Class in
ballwar.model.paint
Paint strategy that paints a filled square with the Ball's radius.
SquarePaintStrategy()
- Constructor for class ballwar.model.paint.
SquarePaintStrategy
No parameter constructor that creates a square with sides of 2 pixels (1 pixel radius) located at the origin.
SquarePaintStrategy(AffineTransform, int, Point)
- Constructor for class ballwar.model.paint.
SquarePaintStrategy
Constructor that allows one to create the prototype square of arbitrary side and location.
start()
- Method in class ballwar.controller.
BallControl
Starts the systems running by validating the view and setting to be visible and starting the model.
start()
- Method in class ballwar.model.
BallModel
Starts the model running by starting the internal timer.
start()
- Method in interface ballwar.view.
IGameCtrlAdapter
Askas that the model start the game.
stop()
- Method in interface ballwar.model.
IMoveable
Tells a moveable object to stop moving.
StraightStrategy
- Class in
ballwar.model.strategy
An AUpdateStrategy-based strategy whose updateState is a no-op hence the randomly initialized ball will travel in a straight line (unless it collides or bounces).
StraightStrategy()
- Constructor for class ballwar.model.strategy.
StraightStrategy
SwimFishPaintStrategy
- Class in
ballwar.model.paint
Subclass of AnimatePaintStrategy that alternates between a Fish1PaintStrategy and a Fish2PaintStrategy.
SwimFishPaintStrategy()
- Constructor for class ballwar.model.paint.
SwimFishPaintStrategy
No-parameter constructor that instantiates an AffineTransform for internal use.
SwimFishPaintStrategy(AffineTransform)
- Constructor for class ballwar.model.paint.
SwimFishPaintStrategy
Constructor that takes an external AffineTransform for internal use.
SwitcherStrategy
- Class in
ballwar.model.strategy
A Decorator design pattern strategy that decorates an IUpdateStrategy, enabling the strategy (the decoree) to be switched at run-time.
SwitcherStrategy()
- Constructor for class ballwar.model.strategy.
SwitcherStrategy
switchStrategy(Object)
- Method in interface ballwar.view.
IBallCtrlAdapter
Tells the model to switch the decoree strategy in the currently defined SwitcherStrategy to a new strategy, as specified by the given factory.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
U
W
_