Class republikensoft.Tree
All Packages Class Hierarchy This Package Previous Next Index
Class republikensoft.Tree
java.lang.Object
|
+----republikensoft.Obstacle
|
+----republikensoft.Tree
- public class Tree
- extends Obstacle
The only thing that distinguish Trees from Obstacles is
that Trees has a sign attribute which is used to decide
in which direction to deflect bullets.
-
Tree(Image, int, int, Polygon)
-
-
getSign()
-
Tree
public Tree(Image t,
int x,
int y,
Polygon p)
- Parameters:
- t - texture with which the tree is drawn.
- x - x-coordinate
- y - y-coordinate
- p - the border of the tree.
getSign
public float getSign()
- Returns:
- +1 or -1, which is decided in the constructor.
All Packages Class Hierarchy This Package Previous Next Index