add StarTrec Project
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
public class Ladung {
|
||||||
|
}
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
public class Raumschiff {
|
||||||
|
private int photonentorpedoAnzahl;
|
||||||
|
private int energieversorgungInProzent;
|
||||||
|
private int schildeInProzent;
|
||||||
|
private int huelleInProzent;
|
||||||
|
private int lebenserhaltungssystemeInProzent;
|
||||||
|
private int androidenAnzahl;
|
||||||
|
private String schiffsname;
|
||||||
|
private static ArrayList<String> broadcastKommunikator;
|
||||||
|
private ArrayList<Ladung> ladungsverzeichnis;
|
||||||
|
|
||||||
|
public Raumschiff() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public Raumschiff(int photonentorpedoAnzahl, int energieversorgungInProzent, int schildeInProzent, int huelleInProzent, int lebenserhaltungssystemeInProzent, int androidenAnzahl, String schiffsname, ArrayList<Ladung> ladungsverzeichnis) {
|
||||||
|
this.photonentorpedoAnzahl = photonentorpedoAnzahl;
|
||||||
|
this.energieversorgungInProzent = energieversorgungInProzent;
|
||||||
|
this.schildeInProzent = schildeInProzent;
|
||||||
|
this.huelleInProzent = huelleInProzent;
|
||||||
|
this.lebenserhaltungssystemeInProzent = lebenserhaltungssystemeInProzent;
|
||||||
|
this.androidenAnzahl = androidenAnzahl;
|
||||||
|
this.schiffsname = schiffsname;
|
||||||
|
this.ladungsverzeichnis = ladungsverzeichnis;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPhotonentorpedoAnzahl() {
|
||||||
|
return photonentorpedoAnzahl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPhotonentorpedoAnzahl(int photonentorpedoAnzahl) {
|
||||||
|
this.photonentorpedoAnzahl = photonentorpedoAnzahl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getEnergieversorgungInProzent() {
|
||||||
|
return energieversorgungInProzent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEnergieversorgungInProzent(int energieversorgungInProzent) {
|
||||||
|
this.energieversorgungInProzent = energieversorgungInProzent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSchildeInProzent() {
|
||||||
|
return schildeInProzent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchildeInProzent(int schildeInProzent) {
|
||||||
|
this.schildeInProzent = schildeInProzent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getHuelleInProzent() {
|
||||||
|
return huelleInProzent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHuelleInProzent(int huelleInProzent) {
|
||||||
|
this.huelleInProzent = huelleInProzent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLebenserhaltungssystemeInProzent() {
|
||||||
|
return lebenserhaltungssystemeInProzent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLebenserhaltungssystemeInProzent(int lebenserhaltungssystemeInProzent) {
|
||||||
|
this.lebenserhaltungssystemeInProzent = lebenserhaltungssystemeInProzent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getAndroidenAnzahl() {
|
||||||
|
return androidenAnzahl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAndroidenAnzahl(int androidenAnzahl) {
|
||||||
|
this.androidenAnzahl = androidenAnzahl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSchiffsname() {
|
||||||
|
return schiffsname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchiffsname(String schiffsname) {
|
||||||
|
this.schiffsname = schiffsname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void addLadung (Ladung neueLadung) {
|
||||||
|
this.ladungsverzeichnis.add(neueLadung);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void photonentorpedoSchiessen (Raumschiff r) {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
public void phaserkanoneSchiessen (Raumschiff r) {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
private void treffer(Raumschiff r) {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
public void nachrichtAnAlle(String message) {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayList<String> eintraegeLogbuchZurueckgeben() {
|
||||||
|
//TODO
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void photonentorpedosLaden(int anzahlTorpedos){
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
public void reparaturDurchfuehren(boolean schutzschilde, boolean energieversorgung, boolean schiffshuell)
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user