java.lang.Objectgreenfoot.World
Sky
public class Sky
Class Sky represents the World in which players have to pop the balloons by typing the letters in them.
| Constructor Summary | |
|---|---|
Sky(Snail snail,
int score)
Constructor for objects of class Sky. |
|
| Method Summary | |
|---|---|
void |
act()
Act method for class Sky. |
void |
gameOver(java.lang.String message)
This method is called when the game is over to display the final score. |
Counter |
getLifeCounter()
Returns the lifeCounter. |
Counter |
getScoreCounter()
Returns the scoreCounter. |
| 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 Sky(Snail snail,
int score)
| Method Detail |
|---|
public void act()
act in class greenfoot.Worldpublic void gameOver(java.lang.String message)
message(String) - the message to be displayed when game is over.public Counter getLifeCounter()
public Counter getScoreCounter()