|
@@ -8,9 +8,15 @@ Geschoss::Geschoss( int id, float speed, GeschossTyp typ, Richtung r, int x, int
|
|
if( typ == GESCHOSS_PFEIL )
|
|
if( typ == GESCHOSS_PFEIL )
|
|
{
|
|
{
|
|
if( r == OBEN || r == UNTEN )
|
|
if( r == OBEN || r == UNTEN )
|
|
- setHeight( 50 );
|
|
|
|
|
|
+ {
|
|
|
|
+ setWidth( 7 );
|
|
|
|
+ setHeight( 30 );
|
|
|
|
+ }
|
|
else
|
|
else
|
|
- setWidth( 50 );
|
|
|
|
|
|
+ {
|
|
|
|
+ setWidth( 30 );
|
|
|
|
+ setHeight( 7 );
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this->speed = speed;
|
|
this->speed = speed;
|
|
this->richtung = richtung;
|
|
this->richtung = richtung;
|
|
@@ -75,9 +81,15 @@ void Geschoss::setTyp( GeschossTyp typ )
|
|
if( typ == GESCHOSS_PFEIL )
|
|
if( typ == GESCHOSS_PFEIL )
|
|
{
|
|
{
|
|
if( richtung == OBEN || richtung == UNTEN )
|
|
if( richtung == OBEN || richtung == UNTEN )
|
|
- setHeight( 50 );
|
|
|
|
|
|
+ {
|
|
|
|
+ setWidth( 7 );
|
|
|
|
+ setHeight( 30 );
|
|
|
|
+ }
|
|
else
|
|
else
|
|
- setWidth( 50 );
|
|
|
|
|
|
+ {
|
|
|
|
+ setWidth( 30 );
|
|
|
|
+ setHeight( 7 );
|
|
|
|
+ }
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|