Przeglądaj źródła

Feuerball größe auf 20x20 verändert

Kolja Strohm 5 lat temu
rodzic
commit
ef41d3595e
1 zmienionych plików z 10 dodań i 0 usunięć
  1. 10 0
      StickmanWorldOnline/Geschoss.cpp

+ 10 - 0
StickmanWorldOnline/Geschoss.cpp

@@ -18,6 +18,11 @@ Geschoss::Geschoss( int id, float speed, GeschossTyp typ, Richtung r, int x, int
             setHeight( 7 );
         }
     }
+    else if( typ == FEUERBALL )
+    {
+        setWidth( 20 );
+        setHeight( 20 );
+    }
     this->speed = speed;
     this->richtung = richtung;
     this->besitzer = besitzer;
@@ -91,6 +96,11 @@ void Geschoss::setTyp( GeschossTyp typ )
             setHeight( 7 );
         }
     }
+    else if( typ == FEUERBALL )
+    {
+        setWidth( 20 );
+        setHeight( 20 );
+    }
     else
     {
         setWidth( 15 );