Erstes Hinzufügen aller benötigten Klassen
Die hier hinzugefügten Klassen werden alle später zum Ersetzen der Greenfoot Oberfläche benötigt.greenfootReplacement
parent
c090b111b1
commit
f14926f1ff
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
public class Actor {
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
|
||||
|
||||
/**
|
||||
Ersetzt die Greenfoot Klasse von Greenfoot und hält das Programm am Laufen.
|
||||
*/
|
||||
public class Greenfoot {
|
||||
|
||||
private static World currentWorld = null;
|
||||
|
||||
public static void main(String[] args) {
|
||||
setWorld(new Start_Load());
|
||||
}
|
||||
|
||||
public static void setWorld(World w) {
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.image.BufferedImage;
|
||||
|
||||
public class GreenfootImage {
|
||||
|
||||
private BufferedImage image = null;
|
||||
|
||||
public GreenfootImage(GreenfootImage i) {
|
||||
image = i.getAwtImage().clone();
|
||||
}
|
||||
|
||||
public GreenfootImage(int w, int h) {
|
||||
image = new BufferedImage(w,h,BufferedImage.TYPE_INT_ARGB);
|
||||
}
|
||||
|
||||
public GreenfootImage(String fileName) {
|
||||
BufferedImage img = null;
|
||||
try {
|
||||
img = ImageIO.read(new File(fileName));
|
||||
} catch (IOException e) {
|
||||
}
|
||||
image = img;
|
||||
}
|
||||
|
||||
public GreenfootImage(String txt, int size, Color foreCol, Color backCol) {
|
||||
|
||||
}
|
||||
|
||||
public GreenfootImage(String txt, int size, Color foreCol, Color backCol, Color outline) {
|
||||
|
||||
}
|
||||
|
||||
public BufferedImage getAwtImage() {
|
||||
return image;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1 @@
|
||||
Main-Class: greenfootReplacement.Greenfoot
|
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
public class World {
|
||||
|
||||
}
|
Loading…
Reference in New Issue