File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ public abstract class GameActivity extends BasisActivity
1919 private static final long serialVersionUID = -4408577037715253942L ;
2020
2121 public Knoten wurzel ;
22- public Knoten uiWurzel ;
2322
2423 private static GameActivity instanz ;
2524
@@ -29,7 +28,6 @@ protected void onCreate(Bundle savedInstanceState)
2928 super .onCreate (savedInstanceState );
3029
3130 cam .wurzel ().add (wurzel = new Knoten ());
32- cam .wurzel ().add (uiWurzel = new Knoten ());
3331
3432 setContentView (zeichner );
3533
@@ -51,17 +49,9 @@ public void hintergrundFarbeSetzen(Farbe farbe)
5149 }
5250 }
5351
54- public void uiElementHinzufuegen (Raum m )
52+ public void hinzufuegen (Raum m )
5553 {
56- if (!uiWurzel .besitzt (m ) && !wurzel .besitzt (m ))
57- {
58- uiWurzel .add (m );
59- }
60- }
61-
62- public void raumHinzufuegen (Raum m )
63- {
64- if (!wurzel .besitzt (m ) && !uiWurzel .besitzt (m ))
54+ if (!wurzel .besitzt (m ))
6555 {
6656 wurzel .add (m );
6757 }
@@ -76,7 +66,7 @@ public void raumHinzufuegen(Raum m)
7666 public ArrayList <UIElement > uiElemente () {
7767 ArrayList <UIElement > ui = new ArrayList <UIElement >();
7868
79- for (Raum u : uiWurzel .alleElemente ())
69+ for (Raum u : wurzel .alleElemente ())
8070 {
8171 if (u instanceof UIElement )
8272 {
You can’t perform that action at this time.
0 commit comments