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 int
getRotation()
vrati rotaciudouble
getX()
vrati Xdouble
getY()
vrati Yvoid
plusRotation(int r)
zvysi rotaciuboolean
update(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
-
-