java.lang.Objectgreenfoot.World
Desktop
public class Desktop
Class Desktop represents the world in which snail presents all rules and instructions concerning the game.
| 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 |
|---|
public Desktop(Snail snail)
| Method Detail |
|---|
public void act()
act in class greenfoot.Worldpublic void play()
public void prepare()
public void showNextBubble()