|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IBackCannonFunctions
| Method Summary | |
|---|---|
void |
fireBackCannon(double power)
Fires the a bullet/missile from the back cannon with the given power |
boolean |
getBackCannonAtBlindSpot()
Returns true when the blindSpot has been reached for the backCannon |
double |
getBackCannonHeadingDegrees()
Retrieve the angle the back cannon is heading in degrees. |
double |
getBackCannonHeadingRadians()
Retrieve the angle the back cannon is heading in radians. |
double |
getBackCannonTurnRemainingDegrees()
Returns the amount the Back Cannon still has to turn in degrees. |
double |
getBackCannonTurnRemainingRadians()
Returns the amount the Back Cannon still has to turn in radians. |
BlindSpot |
getCopyOfBlindSpotBackCannon()
Returns a copy of the BlindSpot that the back cannon has. |
double |
getXBackCannon()
Returns the current X-coordinate of your back cannon |
double |
getYBackCannon()
Returns the current Y-coordinate of your back cannon |
void |
setBackCannonColor(Color color)
Sets the color of the back cannon. |
void |
setBulletColorBack(Color color)
Sets the Bullet Color for the Back Cannon |
void |
setTurnBackCannonLeftDegrees(double angle)
Turns the back cannon towards the left by the amount given in degrees. |
void |
setTurnBackCannonLeftRadians(double angle)
Turns the back cannon towards the left by the amount given in radians. |
void |
setTurnBackCannonRightDegrees(double angle)
Turns the back cannon towards the right by the amount given in degrees. |
void |
setTurnBackCannonRightRadians(double angle)
Turns the back cannon towards the right by the amount given in radians. |
| Method Detail |
|---|
void setTurnBackCannonLeftDegrees(double angle)
angle - The angle in degrees you want to rotate your back cannon to the left.void setTurnBackCannonRightDegrees(double angle)
angle - The angle in degrees you want to rotate your back cannon to the right.void setTurnBackCannonLeftRadians(double angle)
angle - The angle in radians you want to rotate your back cannon to the left.void setTurnBackCannonRightRadians(double angle)
angle - The angle in radians you want to rotate your back cannon to the right.double getBackCannonHeadingRadians()
double getBackCannonHeadingDegrees()
BlindSpot getCopyOfBlindSpotBackCannon()
Furthest you can move to the left,
Furthest you can move to the right,
Returns whether the destination is within the BlindSpotboolean getBackCannonAtBlindSpot()
double getBackCannonTurnRemainingRadians()
double getBackCannonTurnRemainingDegrees()
void fireBackCannon(double power)
power - The power you want to shoot your bullet/missile at. The value is a double between 0.1 and 3.0void setBackCannonColor(Color color)
color - The color you want your back cannon to be.double getXBackCannon()
double getYBackCannon()
void setBulletColorBack(Color color)
color - The Color you want the Bullets the Back Cannon shoots to be.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||