Class ChargingPad
- java.lang.Object
-
- com.iwolverton.smartbeetle.Coord
-
- com.iwolverton.smartbeetle.elements.GameElement
-
- com.iwolverton.smartbeetle.elements.ChargingPad
-
public class ChargingPad extends GameElement
There are 2 charging pads. The beetle receives charge when it ends its turn on one of these.
-
-
Constructor Summary
Constructors Constructor Description ChargingPad(int x, int y)ChargingPad(Coord coord)
-
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
-
ChargingPad
public ChargingPad(int x, int y)
-
ChargingPad
public ChargingPad(Coord coord)
-
-
Method Detail
-
draw
public void draw(DrawingParams dp)
- Specified by:
drawin classGameElement
-
-