private class GameScreen.ButtonActions extends Object implements android.view.View.OnClickListener
Modifier | Constructor and Description |
---|---|
private |
ButtonActions() |
Modifier and Type | Method and Description |
---|---|
void |
onClick(android.view.View v)
Depending on the button pressed (up, down, left, right), we have to check
if there is any map terrain in that coordinate (if the character is not
already on the bounds of the map), and also if the character can go through
that specific terrain.
|
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
v
- the button view pressed.