Class Egg

Class Egg

java.lang.Object
   |
   +----Egg

public class Egg
extends Object
Version:
1.0 Datatype for an Egg
Author:
Nicklas Hjalmarsson

Constructor Index

 o Egg(ClientThread)
This is the constructor you should use.

Method Index

 o cost()
 o grow()
Called each turn to improve the dragon inside the egg
 o hatch()
Set out the newly hatched dragon on the map
 o remove()
Remove the egg and its valuebars.

Constructors

 o Egg
  public Egg(ClientThread c)
This is the constructor you should use.

Methods

 o grow
  public void grow()
Called each turn to improve the dragon inside the egg
 o cost
  public int cost()
Returns:
how much the Egg cost to uphold each turn
 o hatch
  public void hatch()
Set out the newly hatched dragon on the map
 o remove
  public void remove()
Remove the egg and its valuebars.