Added interface IDrawingRollers

This commit is contained in:
Сергей Полевой 2022-10-08 19:19:17 +04:00
parent 0abd2c2ca3
commit fbd46924d1
3 changed files with 8 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import java.awt.*;
public class DrawingArtillery { public class DrawingArtillery {
protected EntityArtillery artillery; protected EntityArtillery artillery;
protected DrawingRollers drawingRollers; protected IDrawingRollers drawingRollers;
protected float _startPosX; protected float _startPosX;
protected float _startPosY; protected float _startPosY;
private Integer _pictureWidth = null; private Integer _pictureWidth = null;

View File

@ -1,6 +1,6 @@
import java.awt.*; import java.awt.*;
public class DrawingRollers { public class DrawingRollers implements IDrawingRollers {
private RollersCount rollersCount; private RollersCount rollersCount;
private Color color; private Color color;

6
IDrawingRollers.java Normal file
View File

@ -0,0 +1,6 @@
import java.awt.*;
public interface IDrawingRollers {
void setRollersCount(int num);
void draw(Graphics2D g, int x, int y, int artilleryWidth, int artilleryHeight);
}