|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IFrontCannonFunctions
| Method Summary | |
|---|---|
void |
fireFrontCannon(double power)
Fires the a bullet/missile from the front cannon with the given power |
BlindSpot |
getCopyOfBlindSpotFrontCannon()
Returns a copy of the BlindSpot that the back cannon has. |
boolean |
getFrontCannonAtBlindSpot()
Returns true when the blindSpot has been reached for the backCannon |
double |
getFrontCannonHeadingDegrees()
Retrieve the angle the front cannon is heading in degrees. |
double |
getFrontCannonHeadingRadians()
Retrieve the angle the front cannon is heading in radians. |
double |
getFrontCannonTurnRemainingDegrees()
Returns the amount the Front Cannon still has to turn in degrees. |
double |
getFrontCannonTurnRemainingRadians()
Returns the amount the Front Cannon still has to turn in radians. |
double |
getXFrontCannon()
Returns the current X-coordinate of your front cannon |
double |
getYFrontCannon()
Returns the current Y-coordinate of your front cannon |
void |
setBulletColorFront(Color color)
Sets the Bullet Color for the Front Cannon |
void |
setFrontCannonColor(Color color)
Sets the color of the front cannon. |
void |
setTurnFrontCannonLeftDegrees(double angle)
Turns the front cannon towards the left by the amount given in degrees. |
void |
setTurnFrontCannonLeftRadians(double angle)
Turns the front cannon towards the left by the amount given in radians. |
void |
setTurnFrontCannonRightDegrees(double angle)
Turns the front cannon towards the right by the amount given in degrees. |
void |
setTurnFrontCannonRightRadians(double angle)
Turns the front cannon towards the right by the amount given in radians. |
| Method Detail |
|---|
void setTurnFrontCannonLeftDegrees(double angle)
angle - The angle in degrees you want to rotate your front cannon to the left.void setTurnFrontCannonRightDegrees(double angle)
angle - The angle in degrees you want to rotate your front cannon to the right.void setTurnFrontCannonLeftRadians(double angle)
angle - The angle in radians you want to rotate your front cannon to the left.void setTurnFrontCannonRightRadians(double angle)
angle - The angle in radians you want to rotate your front cannon to the right.double getFrontCannonHeadingRadians()
double getFrontCannonHeadingDegrees()
BlindSpot getCopyOfBlindSpotFrontCannon()
Furthest you can move to the left,
Furthest you can move to the right,
Returns whether the destination is within the BlindSpotboolean getFrontCannonAtBlindSpot()
double getFrontCannonTurnRemainingRadians()
double getFrontCannonTurnRemainingDegrees()
void fireFrontCannon(double power)
power - The power you want to shoot your bullet/missile at. The value is a double between 0.1 and 3.0void setFrontCannonColor(Color color)
color - The color you want your front cannon to be.double getXFrontCannon()
double getYFrontCannon()
void setBulletColorFront(Color color)
color - The Color you want the Bullets the Front Cannon shoots to be.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||