@Override public void update() { super.update(); if (TouchInput.onPress) { testObject.moveTowardsAPoint(TouchInput.xPos, TouchInput.yPos); } }
public void triggerAlarm(int alarmID) { super.triggerAlarm(alarmID); if (alarmID == 1) { randomObject ro = new randomObject(); Random r = new Random(); addGameObject(ro, r.nextInt(getScreenHeight()), r.nextInt(getScreenWidth())); am.restartAlarm(); } }
public void formElementClicked(View touchedElement) { super.formElementClicked(touchedElement); System.out.println("geklikt!"); }