|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IComponent
Interface that defines methods required by components.
| Method Summary | |
|---|---|
double |
getAngle()
Get the angle of the component; in radians. |
double |
getAngleDegrees()
Get the angle of the component; in degrees. |
Color |
getColor()
Get the color of the component. |
double |
getGunHeat()
|
double |
getLastAngle()
|
Point2D |
getOrigin(ITransformable peer)
Get the exact location of the component. |
Point2D |
getPivot()
Get the pivot point of the component as a Point2D object. |
byte |
getSerializeType()
|
ComponentType |
getType()
Get the type of the component. |
void |
setAngle(double angle)
Set the angle of the component; in radians. |
void |
setAngleDegrees(double angle)
Set the angle of the component; in degrees. |
void |
setColor(Color color)
Set the color of the component. |
void |
setLastAngle(double lastHeading)
Sets the lastHeading of the component in Radians. |
double |
turnRadians(double turnRemaining)
Attempts to turn the component. |
| Method Detail |
|---|
ComponentType getType()
Point2D getPivot()
Point2D object.
The point is relative to that of the ship.
Point2D getOrigin(ITransformable peer)
peer - The robot the component belongs to.
double getAngle()
double getAngleDegrees()
void setAngle(double angle)
angle - The angle to which to set the component.void setAngleDegrees(double angle)
angle - The angle to which to set the component.double turnRadians(double turnRemaining)
turnRemaining - The angle in RADIANS the component still has to turn.
void setLastAngle(double lastHeading)
lastHeading - The lastHeading in Radians.double getLastAngle()
Color getColor()
void setColor(Color color)
color - The color of the component.double getGunHeat()
byte getSerializeType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||