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

U

update(Observable, Object) - Method in class ballwar.model.Ball
The update method called by the main ball Dispatcher to notify all the balls to perform the given command.
update() - Method in interface ballwar.model.IViewCtrlAdapter
Method that is called when the model wishes the view to update.
update() - Method in class ballwar.view.BallGUI
Updates the view.
updateCollision(Ball, Ball, double, double) - Method in class ballwar.model.AElasticMassCollisionCmd
Updates the velocity of the source ball, given an impulse, then calls the source's update strategy's updateCollision method.
updateCollision(Ball, Ball) - Method in interface ballwar.model.IUpdateStrategy
updates the state of the ball in response to a collision between the two balls.
updateCollision(Ball, Ball) - Method in class ballwar.model.strategy.ANoOpStrategy
No-op
updateCollision(Ball, Ball) - Method in class ballwar.model.strategy.AUpdateStrategy
No-op.
updateCollision(Ball, Ball) - Method in class ballwar.model.strategy.ExplodeStrategy
With a given probability, explodes the context ball into a number of smaller balls, unless the context's radius is below a minimum length, upon which the context is killed and no more balls are made.
updateCollision(Ball, Ball) - Method in class ballwar.model.strategy.KillStrategy
Kills the target ball (calls its kill() method).
updateCollision(Ball, Ball) - Method in class ballwar.model.strategy.LightUpStrategy
I the count is non-positive, saves the color of the context, sets the count to a preset value and sets the color of the context to a preset "lit up" value.
updateCollision(Ball, Ball) - Method in class ballwar.model.strategy.MultiStrategy
Delegates first to the first composee and then to the second composee.
updateCollision(Ball, Ball) - Method in class ballwar.model.strategy.ScoreStrategy
Adds one to the associated player's score.
updateCollision(Ball, Ball) - Method in class ballwar.model.strategy.SwitcherStrategy
Processes the collision using the decoree.
updateKill(Ball) - Method in interface ballwar.model.IUpdateStrategy
Processes a "killing" of a ball.
updateKill(Ball) - Method in class ballwar.model.strategy.ANoOpStrategy
No-op
updateKill(Ball) - Method in class ballwar.model.strategy.AUpdateStrategy
Calls the context's doKill() method to remove it from the system.
updateKill(Ball) - Method in class ballwar.model.strategy.MultiStrategy
Delegates the kill request to the first then the second composee.
updateKill(Ball) - Method in class ballwar.model.strategy.ScoreStrategy
Sets the player's score to zero.
updateKill(Ball) - Method in class ballwar.model.strategy.SwitcherStrategy
Process the context's kill request using the decoree.
updateState(Graphics) - Method in class ballwar.model.Ball
Updates the state of the ball by calling the strategy's updateState(), moving the ball as per its velocity, bouncing off the walls if necessary, and notifying all other balls that it may have collided with them.
updateState(Ball) - Method in interface ballwar.model.IUpdateStrategy
Updates the state of the given ball in response to the periodic repainting of the ball as a part of its animation..
updateState(Ball) - Method in class ballwar.model.strategy.ANoOpStrategy
No-op
updateState(Ball) - Method in class ballwar.model.strategy.BreathingStrategy
Sets the ball's radius to the current value returned by the SineMaker object.
updateState(Ball) - Method in class ballwar.model.strategy.Change1Strategy
If the counter is zero, sets the context's strategy to a new Change2Strategy.
updateState(Ball) - Method in class ballwar.model.strategy.Change2Strategy
Sets the context's color to a random color.
updateState(Ball) - Method in class ballwar.model.strategy.ColorStrategy
Updates the state of the context by randomly setting its color.
updateState(Ball) - Method in class ballwar.model.strategy.CurveStrategy
Rotates the context's velocity by the specified angle.
updateState(Ball) - Method in class ballwar.model.strategy.DrunkenStrategy
Randomly delegates to one of the four stored strategies as per the following probabilities: s1: 0.64, s2: 0.16, s3: 0.10 and s4: 0.10
updateState(Ball) - Method in class ballwar.model.strategy.LightUpStrategy
Updates the state of the context.
updateState(Ball) - Method in class ballwar.model.strategy.MoveStrategy
If the increment value (delta) is greater than 1, decrement the increment value.
updateState(Ball) - Method in class ballwar.model.strategy.MultiStrategy
Updates the state of the context with the first composee and then the second composee.
updateState(Ball) - Method in class ballwar.model.strategy.StraightStrategy
No-op.
updateState(Ball) - Method in class ballwar.model.strategy.SwitcherStrategy
Updates the state of the context using the decoree.
updateState(Ball) - Method in class ballwar.model.strategy.WanderStrategy
Adds a random vector value to the context's velocity.
util - package util
 

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