public class NoDrop extends DropObject
color, controller
Constructor and Description |
---|
NoDrop()
Creates a no drop object.
|
Modifier and Type | Method and Description |
---|---|
void |
Click()
Indicates the mouse button was pressed.
|
void |
Handle(java.awt.geom.Point2D point)
Used to handle mouse movement.
|
boolean |
IsAllowed()
Returns if the object can be placed at the current location.
|
boolean |
IsValid()
Returns if the location of the object is a valid location.
|
GetClosestHexCoordinate, GetColor, GetSortedVerticies
public boolean IsValid()
DropObject
IsValid
in class DropObject
public boolean IsAllowed()
DropObject
IsAllowed
in class DropObject
public void Handle(java.awt.geom.Point2D point)
DropObject
Handle
in class DropObject
point
- The location of the mouse.public void Click()
DropObject
Click
in class DropObject