You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
423 B
16 lines
423 B
package controller;
|
|
|
|
public class SimpleShotController extends ObjectController {
|
|
int rad = 3;
|
|
|
|
@Override
|
|
public void updateObject() {
|
|
if (gameObject.getY() < 0) {
|
|
// LinkedList<String> deleteList = (LinkedList<String>) playground.getFlag("delete");
|
|
// deleteList.add(gameObject.getId());
|
|
getPlayground().deleteObject(this.gameObject.getId());
|
|
} else {
|
|
applySpeedVector();
|
|
}
|
|
}
|
|
}
|