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

Constructor Index

 o Battle()
 o Battle(Fod)

Method Index

 o conquer(Dragon, City)
A fight between a city and a dragon
 o fight(Dragon, Dragon)
A fight between two dragons
 o main(String[])
Use for testing only

Constructors

 o Battle
  public Battle()
 o Battle
  public Battle(Fod g)

Methods

 o fight
  public boolean fight(Dragon d1,
                       Dragon d2)
A fight between two dragons
 o conquer
  public void conquer(Dragon d,
                      City c)
A fight between a city and a dragon
 o main
  public static void main(String args[])
Use for testing only