Class Ant


  • public class Ant
    extends ActingElement
    Ants always move toward the beetle. They move one space per turn, just like the beetle. They can be stopped by shooting beads (ammo) at them, but only when they are directly adjacent to the beetle in one of the four cardinal directions.

    Ants spawn from the ant hill at intervals.

    • Constructor Detail

      • Ant

        public Ant​(int x,
                   int y,
                   int nextMove)
      • Ant

        public Ant​(int x,
                   int y)
      • Ant

        public Ant​(Coord coord)