Class Spider
- java.lang.Object
-
- com.iwolverton.smartbeetle.Coord
-
- com.iwolverton.smartbeetle.elements.GameElement
-
- com.iwolverton.smartbeetle.elements.ActingElement
-
- com.iwolverton.smartbeetle.elements.Spider
-
public class Spider extends ActingElement
The spider is unstoppable, but slow. It doesn't move every turn. Check itsnextMoveproperty to see how many turns until it moves again--one means it will be this turn, immediately after the beetle's action.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(DrawingParams dp)-
Methods inherited from class com.iwolverton.smartbeetle.elements.ActingElement
equals, getNextMove, toString
-
Methods inherited from class com.iwolverton.smartbeetle.Coord
altDirectionTo, diagonalDistanceFrom, diagonalDistanceFrom, directionTo, getX, getY, isAt, isAt, randCoord, randCoordPart, rightAngleDistanceFrom, rightAngleDistanceFrom
-
-
-
-
Constructor Detail
-
Spider
public Spider(int x, int y, int nextMove)
-
Spider
public Spider(Coord coord, int nextMove)
-
-
Method Detail
-
draw
public void draw(DrawingParams dp)
- Specified by:
drawin classGameElement
-
-