20 package net.sf.gridarta.action;
27 import net.
sf.japi.swing.action.ActionMethod;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
63 protected boolean doAction(
final boolean performAction, @Nullable
final G gameObject) {
64 if (gameObject ==
null || !gameObject.isHead()) {
68 G prevGameObject = gameObject.getPrev();
69 if (prevGameObject ==
null) {
70 prevGameObject = gameObject.getContainerGameObject();
71 if (prevGameObject ==
null) {
74 }
else if (performAction) {
76 final G tmp = prevGameObject.getFirst();