Class GhostStory


  • public class GhostStory
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GhostStory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getDistance​(Ghost g1, Ghost g2)  
      boolean ghostCollide​(Ghost g1, Ghost g2)
      Inspired by: https://www.geeksforgeeks.org/find-two-rectangles-overlap/ (Not part of reference: Found by googling "two squares overlab")
      void moveOneGhost()  
      void moveTwoGhosts()  
      void moveTwoGhostsMethods()  
      void setupGUI()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GhostStory

        public GhostStory()
    • Method Detail

      • moveOneGhost

        public void moveOneGhost()
      • moveTwoGhosts

        public void moveTwoGhosts()
      • moveTwoGhostsMethods

        public void moveTwoGhostsMethods()
      • getDistance

        public double getDistance​(Ghost g1,
                                  Ghost g2)
      • ghostCollide

        public boolean ghostCollide​(Ghost g1,
                                    Ghost g2)
        Inspired by: https://www.geeksforgeeks.org/find-two-rectangles-overlap/ (Not part of reference: Found by googling "two squares overlab")
      • setupGUI

        public void setupGUI()