Text.java
Dosyayı İndir
package com.godoro.game.eater.string;
import com.godoro.game.eater.Drawable;
import java.awt.Color;
import java.awt.Font;
abstract public class Text implements Drawable {
protected String string;
protected int x;
protected int y;
protected Color color;
protected Font font;
public Text(String string, int x, int y, Color color, Font font) {
this.string = string;
this.x = x;
this.y = y;
this.color = color;
this.font = font;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
public String getString() {
return string;
}
public void setString(String string) {
this.string = string;
}
public Color getColor() {
return color;
}
public void setColor(Color color) {
this.color = color;
}
public Font getFont() {
return font;
}
public void setFont(Font font) {
this.font = font;
}
}
Dosyayı İndir