public Tutorial getTutorial(String id) { for (Tutorial tut : tutorials) { if (tut.getId().equals(id)) { return tut; } } // return some dummy stuff so it won't crash return new Tutorial("", "tutorial/introduction.png", "tutorial_missing"); }
/** * Draws the tutorial on the canvas * * @param canvas */ private void drawTutorial(Canvas canvas) { tutorial.move(); tutorial.draw(canvas); }