Class Bead
- java.lang.Object
-
- com.iwolverton.smartbeetle.Coord
-
- com.iwolverton.smartbeetle.elements.GameElement
-
- com.iwolverton.smartbeetle.elements.Bead
-
public class Bead extends GameElement
The beetle can collect beads to be used as ammunition against ants.There is a constant total number of beads in the game. (the beetle's ammo + the beads on the field)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(DrawingParams dp)-
Methods inherited from class com.iwolverton.smartbeetle.elements.GameElement
equals, toString
-
Methods inherited from class com.iwolverton.smartbeetle.Coord
altDirectionTo, diagonalDistanceFrom, diagonalDistanceFrom, directionTo, getX, getY, isAt, isAt, randCoord, randCoordPart, rightAngleDistanceFrom, rightAngleDistanceFrom
-
-
-
-
Constructor Detail
-
Bead
public Bead(int x, int y)
-
Bead
public Bead(Coord coord)
-
-
Method Detail
-
draw
public void draw(DrawingParams dp)
- Specified by:
drawin classGameElement
-
-