Class Sky

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

public class Sky
extends greenfoot.World

Class Sky represents the World in which players have to pop the balloons by typing the letters in them.

Version:
24.04.2015
Author:
Maria - Despoina Gkaintatzi

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

Sky

public Sky(Snail snail,
           int score)
Constructor for objects of class Sky.

Method Detail

act

public void act()
Act method for class Sky.

Overrides:
act in class greenfoot.World

gameOver

public void gameOver(java.lang.String message)
This method is called when the game is over to display the final score.

Parameters:
message(String) - the message to be displayed when game is over.

getLifeCounter

public Counter getLifeCounter()
Returns the lifeCounter.

Returns:
Counter lifeCounter

getScoreCounter

public Counter getScoreCounter()
Returns the scoreCounter.

Returns:
Counter scoreCounter