Package Worms
Class Grenade
- java.lang.Object
-
- Worms.Grenade
-
class Grenade extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Grenade(double posX, double posY, double dx, double dy)Konstruktor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetRotation()vrati rotaciudoublegetX()vrati XdoublegetY()vrati YvoidplusRotation(int r)zvysi rotaciubooleanupdate(int h, int w)PosĂşva naboj
-
-
-
Method Detail
-
update
public boolean update(int h, int w)PosĂşva naboj- Parameters:
h- vyska scenyw- sirka sceny- Returns:
- false= naboj mimo sceny, true= naboj je vnutri sceny
-
getX
public double getX()
vrati X- Returns:
- X
-
getY
public double getY()
vrati Y- Returns:
- y
-
getRotation
public int getRotation()
vrati rotaciu- Returns:
- rotacia
-
plusRotation
public void plusRotation(int r)
zvysi rotaciu- Parameters:
r- kolko rotacie sa prida
-
-