Class Beetle

  • Direct Known Subclasses:
    BeetleBuilder

    public class Beetle
    extends ActingElement
    Our protagonist, a robotic beetle that must keeps its battery charged while fighting off ants and avoiding the spider.
    • Field Detail

      • charge

        protected int charge
      • ammo

        protected int ammo
    • Constructor Detail

      • Beetle

        public Beetle​(int x,
                      int y,
                      int charge,
                      int ammo)
      • Beetle

        public Beetle​(Beetle from)
      • Beetle

        public Beetle​(Coord coord,
                      int charge,
                      int ammo)