Class Battle
Class Battle
java.lang.Object
|
+----Battle
- public class Battle
- extends Object
- Version:
- 1.0
Class for dealing with battles between dragons and other dragons and cities and dragons.
- Author:
- Nicklas Hjalmarsson
-
Battle()
-
-
Battle(Fod)
-
-
conquer(Dragon, City)
- A fight between a city and a dragon
-
fight(Dragon, Dragon)
- A fight between two dragons
-
main(String[])
- Use for testing only
Battle
public Battle()
Battle
public Battle(Fod g)
fight
public boolean fight(Dragon d1,
Dragon d2)
- A fight between two dragons
conquer
public void conquer(Dragon d,
City c)
- A fight between a city and a dragon
main
public static void main(String args[])
- Use for testing only