Class GhostStory
- java.lang.Object
-
- 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()
-
-
-
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()
-
-