Class Egg
Class Egg
java.lang.Object
|
+----Egg
- public class Egg
- extends Object
- Version:
- 1.0
Datatype for an Egg
- Author:
- Nicklas Hjalmarsson
-
Egg(ClientThread)
- This is the constructor you should use.
-
cost()
-
-
grow()
- Called each turn to improve the dragon inside the egg
-
hatch()
- Set out the newly hatched dragon on the map
-
remove()
- Remove the egg and its valuebars.
Egg
public Egg(ClientThread c)
- This is the constructor you should use.
grow
public void grow()
- Called each turn to improve the dragon inside the egg
cost
public int cost()
- Returns:
- how much the Egg cost to uphold each turn
hatch
public void hatch()
- Set out the newly hatched dragon on the map
remove
public void remove()
- Remove the egg and its valuebars.