public abstract class ClickFunction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Agent |
clicker
The Agent who clicked the Token
|
private Token |
token
The Token to be clicked
|
Constructor and Description |
---|
ClickFunction(Token token)
Constructs a ClickFunction with the Token to be clicked
|
Modifier and Type | Method and Description |
---|---|
abstract void |
click()
Each Token will have its own action to perform when clicked
|
Agent |
getClicker()
Gets the Agent who clicked the Token
|
Token |
getToken()
Gets the Token to be clicked
|
void |
setClicker(Agent clicker)
Sets the Agent who clicked on the Token
|
void |
setToken(Token token)
Sets the Token to be clicked
|
private Token token
private Agent clicker
public ClickFunction(Token token)
token
- The Token to construct this ClickFunction withpublic abstract void click()
public Agent getClicker()
public Token getToken()
public void setClicker(Agent clicker)
clicker
- The Agent to set this ClickFunction topublic void setToken(Token token)
token
- The Token to set this ClickFunction to