public class Shadow
extends Actor
Constructor and Description |
---|
Shadow(Location upperLeft,
Location lowerRight)
Creates a rectangular shadow area.
|
Modifier and Type | Method and Description |
---|---|
Location |
getCenter()
Returns the center of the rectangular area
|
boolean |
inShadow(Location target)
Tests if the given target location is in the shadow area.
|
public Shadow(Location upperLeft, Location lowerRight)
upperLeft
- the upper left vertex of the arealowerRight
- the lower right vertex of the areapublic Location getCenter()
public boolean inShadow(Location target)
target
- the target location to check