Explorar o código

Feuerball größe auf 20x20 verändert

Kolja Strohm %!s(int64=6) %!d(string=hai) anos
pai
achega
ef41d3595e
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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 );