/* (non-Javadoc) * @see ckGameEngineAlpha.actions.CKQuestCmd#doAction() */ @Override protected void questDoAction(CKSpellCast cast) { CKAbstractGridItem item = cast.getItemTarget(); if (cast.getActorTarget() != null) { cast.getActorTarget().getTurnController().onRemove(); } item.removeItemFromGrid(CKGameObjectsFacade.getQuest().getGrid()); }
/* (non-Javadoc) * @see ckGameEngineAlpha.actions.CKQuestCmd#doAction() */ @Override protected void questDoAction(CKSpellCast cast) { CKGridActor target; if (cast != null) { target = cast.getActorTarget(); } else { target = getPC(name); } Quest w = CKGameObjectsFacade.getQuest(); try { CKGameObjectsFacade.getEngine() .cameraFollowInstance(w.gettId(), target.getInstanceID(), w.getStartTime(), 30); } catch (BadInstanceIDError e) { e.printStackTrace(); } catch (CircularDependanceError e) { e.printStackTrace(); } }