правка
This commit is contained in:
parent
a5fe686016
commit
ab48eac425
@ -8,16 +8,14 @@ import java.util.List;
|
||||
|
||||
public class AirCraftAngar extends AbstractCompany {
|
||||
private final List<Point> locCoord = new ArrayList<>();
|
||||
private int numRows, numCols;
|
||||
int pamat_i = 0;
|
||||
int pamat_j = 0;
|
||||
|
||||
public AirCraftAngar(int picWidth, int picHeight, ICollectionGenericObjects<DrawningAirCraft> collection) {
|
||||
super(picWidth, picHeight, collection);
|
||||
_collection.setMaxCount(30);
|
||||
}
|
||||
|
||||
int pamat_i = 0;
|
||||
int pamat_j = 0;
|
||||
|
||||
@Override
|
||||
protected void drawBackground(Graphics g) {
|
||||
Color backgroundColor = new Color(255, 255, 255);
|
||||
|
@ -136,8 +136,8 @@ public class DrawningAirCraft {
|
||||
Graphics2D g2d = (Graphics2D) g;
|
||||
|
||||
Point[] rtail = new Point[]{
|
||||
new Point(_startPosX , _startPosY + 25),
|
||||
new Point(_startPosX , _startPosY + 8),
|
||||
new Point(_startPosX+2, _startPosY + 25),
|
||||
new Point(_startPosX+2, _startPosY + 8),
|
||||
new Point(_startPosX + 10, _startPosY + 17),
|
||||
new Point(_startPosX + 10, _startPosY + 25),
|
||||
};
|
||||
@ -149,8 +149,8 @@ public class DrawningAirCraft {
|
||||
g2d.fillPolygon(rtailPolygon);
|
||||
|
||||
Point[] ltail = new Point[]{
|
||||
new Point(_startPosX, _startPosY + 49),
|
||||
new Point(_startPosX , _startPosY + 66),
|
||||
new Point(_startPosX+2, _startPosY + 49),
|
||||
new Point(_startPosX+2, _startPosY + 66),
|
||||
new Point(_startPosX + 10, _startPosY + 57),
|
||||
new Point(_startPosX + 10, _startPosY + 49),
|
||||
};
|
||||
@ -187,13 +187,13 @@ public class DrawningAirCraft {
|
||||
g2d.setColor(entityAirCraft.getBodyColor());
|
||||
g2d.fillPolygon(lwingPolygon);
|
||||
|
||||
g2d.drawRect(_startPosX , _startPosY + 25, 50, 24);
|
||||
g2d.fillRect(_startPosX , _startPosY + 25, 50, 24);
|
||||
g2d.drawRect(_startPosX , _startPosY + 24, 50, 25);
|
||||
g2d.fillRect(_startPosX , _startPosY + 24, 50, 25);
|
||||
|
||||
Point[] nose = new Point[]{
|
||||
new Point(_startPosX + 50, _startPosY + 25),
|
||||
new Point(_startPosX + 50, _startPosY + 26),
|
||||
new Point(_startPosX + 66, _startPosY + 37),
|
||||
new Point(_startPosX + 50, _startPosY + 49),
|
||||
new Point(_startPosX + 50, _startPosY + 48),
|
||||
};
|
||||
Polygon nosePolygon = new Polygon();
|
||||
for (Point point : nose)
|
||||
|
Loading…
Reference in New Issue
Block a user