A B C D E F G H I K L M N O P R S U W _

R

rand - Variable in class ballwar.model.strategy.BreathingStrategy
The Randomizer used to create the random values.
rand - Variable in class ballwar.model.strategy.Change2Strategy
Randomizer to generate random colors
rand - Variable in class ballwar.model.strategy.ColorStrategy
Randominzer used to generate the random colors needed.
rand - Variable in class ballwar.model.strategy.CurveStrategy
Randomizer used to randomly generate the increment angle.
rand - Variable in class ballwar.model.strategy.DrunkenStrategy
Randomizer used to generate the random values.
randomBounds(Rectangle, Dimension) - Method in interface util.IRandomizer
Generates a randomly located and sized rectangle
randomBounds(Rectangle, Dimension) - Method in class util.Randomizer
Generates a randomly located and sized rectangle
randomChoice(Object, Object, double) - Method in interface util.IRandomizer
Returns a random choice of one of two objects, x and y, where probX is the probability that x will be picked (0<=x<=1).
randomChoice(Object, Object, double) - Method in class util.Randomizer
Returns a random choice of one of two objects, x and y, where probX is the probability that x will be picked (0<=x<=1).
randomColor() - Method in interface util.IRandomizer
Generates a random color
randomColor() - Method in class util.Randomizer
Generates a random color
randomDim(Dimension) - Method in interface util.IRandomizer
Returns a random square Dimension, whose width is maxDim.width/2<=width<=maxDim.width
randomDim(Dimension) - Method in class util.Randomizer
Returns a random square Dimension, whose width is maxDim.width/2<=width<=maxDim.width
randomDouble(double, double) - Method in interface util.IRandomizer
Returns a random double greater than or equal to min and less than or equal to max.
randomDouble(double, double) - Method in class util.Randomizer
Returns a random double greater than or equal to min and less than or equal to max.
randomInt(int, int) - Method in interface util.IRandomizer
Returns a random integer greater than or equal to min and less than or equal to max.
randomInt(int, int) - Method in class util.Randomizer
Returns a random integer greater than or equal to min and less than or equal to max.
Randomizer - Class in util
Utility class that supplies class routines for generating various random values
Randomizer() - Constructor for class util.Randomizer
 
randomLoc(Rectangle) - Method in interface util.IRandomizer
Generates a random location point subject to the constraint that 0<=X<=maxX and 0<=Y<=maxY.
randomLoc(Dimension) - Method in interface util.IRandomizer
Generates a random location point subject to the constraint that 0<=X<=maxX and 0<=Y<=maxY.
randomLoc(Rectangle) - Method in class util.Randomizer
Generates a random location point subject to the constraint that 0<=X<=maxX and 0<=Y<=maxY.
randomLoc(Dimension) - Method in class util.Randomizer
Generates a random location point subject to the constraint that 0<=X<=maxX and 0<=Y<=maxY.
randomVel(Rectangle) - Method in interface util.IRandomizer
Returns a random velocity (as a Point) subject to the constraint that the absolute value of the vleocity (speed) is less than maxV.
randomVel(Rectangle) - Method in class util.Randomizer
Returns a random velocity (as a Point) subject to the constraint that the absolute value of the vleocity (speed) is less than maxV.
rect - Variable in class ballwar.model.paint.SquarePaintStrategy
Unit sized rectangle used as a prototype
RectanglePaintStrategy - Class in ballwar.model.paint
Concrete paint strategy that paints a rectangular shape scaled to the size of the ball.
RectanglePaintStrategy() - Constructor for class ballwar.model.paint.RectanglePaintStrategy
No-parameter constructor that instantiates the AffineTransform for internal use plus defines a prototype Rectangle of a width = 8/3 and height = 2/3 which is an average radius of 1.
RectanglePaintStrategy(AffineTransform, double, double, double, double) - Constructor for class ballwar.model.paint.RectanglePaintStrategy
Constructor that takes an external AffineTransform for internal use and a Rectangle centered at (x, y) with the given half-width and half-height (= x-radius and y-radius).
RectangleShapeFactory - Class in ballwar.model.paint.shape
Concrete IShapeFactory that instantiates Rectangle2d.Double shapes.
RectangleShapeFactory() - Constructor for class ballwar.model.paint.shape.RectangleShapeFactory
 
reducedMass(double, double) - Method in class ballwar.model.AElasticMassCollisionCmd
Returns the reduced mass of the two balls (m1*m2)/(m1+m2) Gives correct result if one of the balls has infinite mass.
registerMovementKeys(IMovementKeys, IMoveable) - Method in class ballwar.model.BallModel
Registers a set of movement keys, as defined by an IMovementKeys object, with the view.
registerMovementKeys(IMovementKeys, IMoveable) - Method in interface ballwar.model.IBallEnvironment
Takes an IMovementKeys object which defines a set of movement keys and associates the pressing of each key with its respective behavior in the given IMoveable object.
removeSelectedItem() - Method in class ballwar.view.OptionPanel
Returns the selected item from the list and removes it from the list.
RockStrategy - Class in ballwar.model.strategy
An ANoOpStrategy-based strategy that initializes its context's velocity to zero.
RockStrategy() - Constructor for class ballwar.model.strategy.RockStrategy
 

A B C D E F G H I K L M N O P R S U W _