|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IComponentSnapshot
Method Summary | |
---|---|
double |
getAngle()
Get the angle of the component; in radians. |
int |
getColor()
Get the color of the component. |
double |
getGunHeat()
|
IPaint |
getImage(IRenderImages manager)
Get the image that the component uses. |
double |
getLastAngle()
|
Point2D |
getPivot()
Get the pivot point of the component as a Point2D object. |
byte |
getSerializeType()
|
ComponentType |
getType()
Get the type of the component. |
void |
paint(Graphics2D g,
IRenderImages manager,
ITransformable peer,
boolean scanArcs)
|
void |
render(Graphics2D g,
ITransformable peer,
boolean scanArcs)
Do the component specific drawing in here. |
Method Detail |
---|
ComponentType getType()
Point2D getPivot()
Point2D
object.
The point is relative to that of the ship.
double getAngle()
int getColor()
double getGunHeat()
byte getSerializeType()
double getLastAngle()
IPaint getImage(IRenderImages manager)
void paint(Graphics2D g, IRenderImages manager, ITransformable peer, boolean scanArcs)
void render(Graphics2D g, ITransformable peer, boolean scanArcs)
g
- The device to draw too.peer
- The robot to whom the component belongs to.scanArcs
- Indicates whether or not to draw the scan arcs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |