-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathHomeworkHamsterGame.java
More file actions
29 lines (28 loc) · 974 Bytes
/
Copy pathHomeworkHamsterGame.java
File metadata and controls
29 lines (28 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import de.unistuttgart.iste.rss.oo.hamstersimulator.datatypes.Location;
import de.unistuttgart.iste.rss.oo.hamstersimulator.external.model.Territory;
import de.unistuttgart.iste.rss.oo.hamstersimulator.external.model.Hamster;
import java.io.IOException;
import java.io.File;
import java.io.*;
/**
* Beschreiben Sie hier die Klasse MyFirstSimpleHamster.
*
* @author (Ihr Name)
* @version (eine Versionsnummer oder ein Datum)
*/
public class HomeworkHamsterGame extends SimpleHamsterGame
{
protected final mysterioushamster mysteriousPaule;
HomeworkHamsterGame(){
mysteriousPaule = new mysterioushamster(paule);
File terFile = new File ("+libs/territories/example01.ter");
try(
InputStream targetStream = new FileInputStream(terFile);
) {
game.initialize(targetStream);
} catch (IOException ex){
throw new RuntimeException(ex);
}
game.displayInNewGameWindow();
}
}