public class PushMain extends Object implements com.google.gwt.event.dom.client.MouseDownHandler, com.google.gwt.core.client.EntryPoint
Constructor and Description |
---|
PushMain()
Constructor for standalone game
|
PushMain(com.google.gwt.user.client.ui.Widget menuWidget)
Constructor for integration in a menu
|
Modifier and Type | Method and Description |
---|---|
boolean |
gameOver() |
int |
getTile(int x,
int y) |
org.vectomatic.dom.svg.OMSVGPoint |
getTileCoordinates(com.google.gwt.event.dom.client.MouseEvent<? extends com.google.gwt.event.shared.EventHandler> e) |
void |
levelChange(com.google.gwt.event.logical.shared.ValueChangeEvent<Integer> event) |
void |
nextButton(com.google.gwt.event.dom.client.ClickEvent event) |
void |
onModuleLoad()
Entry point when the game is run in standalone mode
|
void |
onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event) |
void |
prevButton(com.google.gwt.event.dom.client.ClickEvent event) |
void |
readPushDef() |
void |
setTile(int x,
int y,
int value) |
void |
winAnimation() |
public PushMain()
public PushMain(com.google.gwt.user.client.ui.Widget menuWidget)
public void onModuleLoad()
onModuleLoad
in interface com.google.gwt.core.client.EntryPoint
@UiHandler(value="prevButton") public void prevButton(com.google.gwt.event.dom.client.ClickEvent event)
@UiHandler(value="nextButton") public void nextButton(com.google.gwt.event.dom.client.ClickEvent event)
@UiHandler(value="difficultyPicker") public void levelChange(com.google.gwt.event.logical.shared.ValueChangeEvent<Integer> event)
public boolean gameOver()
public void setTile(int x, int y, int value)
public int getTile(int x, int y)
public void onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
onMouseDown
in interface com.google.gwt.event.dom.client.MouseDownHandler
public org.vectomatic.dom.svg.OMSVGPoint getTileCoordinates(com.google.gwt.event.dom.client.MouseEvent<? extends com.google.gwt.event.shared.EventHandler> e)
public void winAnimation()
public void readPushDef()
Copyright © 2018. All Rights Reserved.