|
|
@ -39,8 +39,14 @@ public class SnakeGame extends JFrame { |
|
|
|
public int breite = 1200; |
|
|
|
public int hoehe = 600; |
|
|
|
public String titel = "Snake"; |
|
|
|
public int hoeheP = 100; |
|
|
|
public int breiteP = 100; |
|
|
|
public int hoeheP1 = 100; |
|
|
|
public int breiteP1 = 100; |
|
|
|
public int hoeheP2 = 100; |
|
|
|
public int breiteP2 = 100; |
|
|
|
public int hoeheP3 = 100; |
|
|
|
public int breiteP3 = 100; |
|
|
|
public int hoeheP4 = 100; |
|
|
|
public int breiteP4 = 100; |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
EventQueue.invokeLater(new Runnable() { |
|
|
@ -240,6 +246,166 @@ public class SnakeGame extends JFrame { |
|
|
|
this.hoehe = hoehe; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel5() { |
|
|
|
return panel5; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel5(JPanel panel5) { |
|
|
|
this.panel5 = panel5; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel6() { |
|
|
|
return panel6; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel6(JPanel panel6) { |
|
|
|
this.panel6 = panel6; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel7() { |
|
|
|
return panel7; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel7(JPanel panel7) { |
|
|
|
this.panel7 = panel7; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel8() { |
|
|
|
return panel8; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel8(JPanel panel8) { |
|
|
|
this.panel8 = panel8; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel9() { |
|
|
|
return panel9; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel9(JPanel panel9) { |
|
|
|
this.panel9 = panel9; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel10() { |
|
|
|
return panel10; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel10(JPanel panel10) { |
|
|
|
this.panel10 = panel10; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel11() { |
|
|
|
return panel11; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel11(JPanel panel11) { |
|
|
|
this.panel11 = panel11; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel12() { |
|
|
|
return panel12; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel12(JPanel panel12) { |
|
|
|
this.panel12 = panel12; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel13() { |
|
|
|
return panel13; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel13(JPanel panel13) { |
|
|
|
this.panel13 = panel13; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel14() { |
|
|
|
return panel14; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel14(JPanel panel14) { |
|
|
|
this.panel14 = panel14; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel15() { |
|
|
|
return panel15; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel15(JPanel panel15) { |
|
|
|
this.panel15 = panel15; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel16() { |
|
|
|
return panel16; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel16(JPanel panel16) { |
|
|
|
this.panel16 = panel16; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel17() { |
|
|
|
return panel17; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel17(JPanel panel17) { |
|
|
|
this.panel17 = panel17; |
|
|
|
} |
|
|
|
|
|
|
|
public JPanel getPanel18() { |
|
|
|
return panel18; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPanel18(JPanel panel18) { |
|
|
|
this.panel18 = panel18; |
|
|
|
} |
|
|
|
|
|
|
|
public int getHoeheP2() { |
|
|
|
return hoeheP2; |
|
|
|
} |
|
|
|
|
|
|
|
public void setHoeheP2(int hoeheP2) { |
|
|
|
this.hoeheP2 = hoeheP2; |
|
|
|
} |
|
|
|
|
|
|
|
public int getBreiteP2() { |
|
|
|
return breiteP2; |
|
|
|
} |
|
|
|
|
|
|
|
public void setBreiteP2(int breiteP2) { |
|
|
|
this.breiteP2 = breiteP2; |
|
|
|
} |
|
|
|
|
|
|
|
public int getHoeheP3() { |
|
|
|
return hoeheP3; |
|
|
|
} |
|
|
|
|
|
|
|
public void setHoeheP3(int hoeheP3) { |
|
|
|
this.hoeheP3 = hoeheP3; |
|
|
|
} |
|
|
|
|
|
|
|
public int getBreiteP3() { |
|
|
|
return breiteP3; |
|
|
|
} |
|
|
|
|
|
|
|
public void setBreiteP3(int breiteP3) { |
|
|
|
this.breiteP3 = breiteP3; |
|
|
|
} |
|
|
|
|
|
|
|
public int getHoeheP4() { |
|
|
|
return hoeheP4; |
|
|
|
} |
|
|
|
|
|
|
|
public void setHoeheP4(int hoeheP4) { |
|
|
|
this.hoeheP4 = hoeheP4; |
|
|
|
} |
|
|
|
|
|
|
|
public int getBreiteP4() { |
|
|
|
return breiteP4; |
|
|
|
} |
|
|
|
|
|
|
|
public void setBreiteP4(int breiteP4) { |
|
|
|
this.breiteP4 = breiteP4; |
|
|
|
} |
|
|
|
|
|
|
|
public String getTitel() { |
|
|
|
return titel; |
|
|
|
} |
|
|
@ -248,20 +414,20 @@ public class SnakeGame extends JFrame { |
|
|
|
this.titel = titel; |
|
|
|
} |
|
|
|
|
|
|
|
public int getHoeheP() { |
|
|
|
return hoeheP; |
|
|
|
public int getHoeheP1() { |
|
|
|
return hoeheP1; |
|
|
|
} |
|
|
|
|
|
|
|
public void setHoeheP(int hoeheP) { |
|
|
|
this.hoeheP = hoeheP; |
|
|
|
public void setHoeheP1(int hoeheP) { |
|
|
|
this.hoeheP1 = hoeheP; |
|
|
|
} |
|
|
|
|
|
|
|
public int getBreiteP() { |
|
|
|
return breiteP; |
|
|
|
public int getBreiteP1() { |
|
|
|
return breiteP1; |
|
|
|
} |
|
|
|
|
|
|
|
public void setBreiteP(int breiteP) { |
|
|
|
this.breiteP = breiteP; |
|
|
|
public void setBreiteP1(int breiteP) { |
|
|
|
this.breiteP1 = breiteP; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|