Class Desktop

java.lang.Object
  extended by greenfoot.World
      extended by Desktop

public class Desktop
extends greenfoot.World

Class Desktop represents the world in which snail presents all rules and instructions concerning the game.

Version:
12.06.2015
Author:
Maria - Despoina Gkaintatzi

Constructor Summary
Desktop(Snail snail)
          Constructor for objects of class Desktop.
 
Method Summary
 void act()
          Act method for Desktop world.
 void play()
          Starts game after clicking in the world.
 void prepare()
          Initiates all components to be included in constructor.
 void showNextBubble()
          Shows next bubble message approximately when snail has reached the first half of the screen.
 
Methods inherited from class greenfoot.World
addObject, getBackground, getCellSize, getColorAt, getHeight, getObjects, getObjectsAt, getWidth, numberOfObjects, removeObject, removeObjects, repaint, setActOrder, setBackground, setBackground, setPaintOrder, showText, started, stopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Desktop

public Desktop(Snail snail)
Constructor for objects of class Desktop.

Method Detail

act

public void act()
Act method for Desktop world.

Overrides:
act in class greenfoot.World

play

public void play()
Starts game after clicking in the world.


prepare

public void prepare()
Initiates all components to be included in constructor.


showNextBubble

public void showNextBubble()
Shows next bubble message approximately when snail has reached the first half of the screen.