import java.awt.Color;
public class TargetingSystem {
private Color targetColor;
public TargetingSystem(int r, int g, int b) {
targetColor = new Color(r, g, b);
}
public boolean isTargetColor(Object target) {
return target.getColor().equals(targetColor);
}
public void aimAtTarget(Object target) {
if (isTargetColor(target)) {
// Логика прицеливания
}
}
}