package denvernuggets;
public class JaValeMcGee {
private int height = 84;
private int weight = 250;
public void blockShot(){
String player = shaw.currentDefensivePlay.getBallHandler();
String shotType = shaw.currentDefensivePlay.getShot();
jump();
rejectableShot = new Shot(player, shotType’);
if(rejectableShot.onWayDown == true){
land();
}else{
swingArm();
land();
}
}
public void executePlay(){
currentPlay = shaw.getCurrentPlay();
if (currentPlay.getType().equals(‘lob’)){
jump();
catchBall();
dunk();
land();
}else if (currentPlay.getType().equals(‘JaVale post iso’)){
begForBallinPost();
receiveBall();
getBallPokedAway();
receiveBall();
throwUpCrappyHook();
}else{
begForBallinPost();
standAround();
}
attemptOffensiveRebound();
}
public void attemptOffensiveRebound(){
int xVector = calcXVector();
int yVector = calcYVector();
int zVector = calcZVector();
ball = new Ball(‘xVector, yVector, zVector);
if(ball.isReboundable == true){
jump();
grabRebound();
dunk();
}else{
jump();
receiveOverTheBackFoul();
}
}
}
All poorly formatted (thanks YouTube) Java code property of DownToBuck. All clips property of the NBA. No copyright infringement is intended.