Uses of Class
com.iwolverton.smartbeetle.Coord
-
Packages that use Coord Package Description com.iwolverton.smartbeetle com.iwolverton.smartbeetle.elements com.iwolverton.smartbeetle.internal -
-
Uses of Coord in com.iwolverton.smartbeetle
Methods in com.iwolverton.smartbeetle that return Coord Modifier and Type Method Description static CoordCoord. randCoord()Generate a random coordinate within the bounds of the map.CoordDirection. relativeTo(Coord coord)Return the coordinate that is 1 unit of this direction from the given coordinate.CoordDirection. relativeTo(Coord coord, int dist)Return the coordinate that is dist units of this direction from the given coordinate.Methods in com.iwolverton.smartbeetle with parameters of type Coord Modifier and Type Method Description DirectionCoord. altDirectionTo(Coord other)Determine the direction most aimed toward another coordinate.intCoord. diagonalDistanceFrom(Coord other)Get the distance from this coordinate to another coordinate allowing cardinal and diagonal moves.DirectionCoord. directionTo(Coord other)Determine the direction most aimed toward another coordinate.ActingElementGameState. getPlayerAt(Coord coordinate)Returns the beetle, spider, or ant at the given coordinate.GameElementGameState. getTerrainAt(Coord coordinate)Returns the charging pad, ant hill, or bead at the given coordinate.booleanCoord. isAt(Coord other)Is this coordinate at the same location as another coordinate?CoordDirection. relativeTo(Coord coord)Return the coordinate that is 1 unit of this direction from the given coordinate.CoordDirection. relativeTo(Coord coord, int dist)Return the coordinate that is dist units of this direction from the given coordinate.intCoord. rightAngleDistanceFrom(Coord other)Get the distance from this coordinate to another coordinate making only cardinal direction moves (no diagonals).Constructors in com.iwolverton.smartbeetle with parameters of type Coord Constructor Description Coord(Coord from) -
Uses of Coord in com.iwolverton.smartbeetle.elements
Subclasses of Coord in com.iwolverton.smartbeetle.elements Modifier and Type Class Description classActingElementSuperclass for game elements that act.classAntAnts always move toward the beetle.classAntHillThe ant hill.classBeadThe beetle can collect beads to be used as ammunition against ants.classBeetleOur protagonist, a robotic beetle that must keeps its battery charged while fighting off ants and avoiding the spider.classChargingPadThere are 2 charging pads.classGameElementSuperclass for any game elementclassSpiderThe spider is unstoppable, but slow.Constructors in com.iwolverton.smartbeetle.elements with parameters of type Coord Constructor Description ActingElement(Coord coord, int nextMove)Ant(Coord coord)AntHill(Coord coord, int nextMove, int frequency)Bead(Coord coord)Beetle(Coord coord, int charge, int ammo)ChargingPad(Coord coord)GameElement(Coord coord)Spider(Coord coord, int nextMove) -
Uses of Coord in com.iwolverton.smartbeetle.internal
Subclasses of Coord in com.iwolverton.smartbeetle.internal Modifier and Type Class Description classBeetleBuilderMethods in com.iwolverton.smartbeetle.internal that return Coord Modifier and Type Method Description CoordCollisionDetector. randCoordWithoutCollision()Methods in com.iwolverton.smartbeetle.internal with parameters of type Coord Modifier and Type Method Description CollisionDetectorCollisionDetector. add(Coord coord)booleanCollisionDetector. isCollision(Coord coord)CollisionDetectorCollisionDetector. remove(Coord coord)BeetleBuilderBeetleBuilder. setCoord(Coord coord)Method parameters in com.iwolverton.smartbeetle.internal with type arguments of type Coord Modifier and Type Method Description CollisionDetectorCollisionDetector. add(Collection<? extends Coord> coord)
-