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, GetSortedVerticiespublic boolean IsValid()
DropObjectIsValid in class DropObjectpublic boolean IsAllowed()
DropObjectIsAllowed in class DropObjectpublic void Handle(java.awt.geom.Point2D point)
DropObjectHandle in class DropObjectpoint - The location of the mouse.public void Click()
DropObjectClick in class DropObject