/**
 * File: Fanta.java
 *
 * Hauptprogramm für FantasyFight 3.2
 *
 * Autor: Renato Spahni
 *
 * Datum: 1.12.2000
 *
 */

import java.io.*;
import java.util.*;
import java.lang.Exception;

public class Fanta {
	
// ATTRIBUTES
	
	private int myAnzahl;
	private Random myRandomN;
	private Spieler[] SpListe = new Spieler[5];
	int Eingabe;
		
// CONSTRUCTORS
	
	public Fanta(int anz, int rn) {
		myAnzahl = anz;
		System.out.println();
		System.out.println("Fantasy Fight --- Version 3.2 , 2000");
		System.out.println("------------------------------------");
		System.out.println();
		System.out.print("What's your lucky Number ? : ");
		erstelleSpielerListe();
		outputSpieler();
	/**	DataInputStream din = new DataInputStream(System.in);
		try {Eingabe = Integer.parseInt(din.readLine());
    } catch (IOException ex) {
      System.out.println("Unkorrekte Eingabe: " + ex);
    }
		System.out.print(Eingabe);
		System.out.println(myAnzahl);
		Random myRandomN = new Random(Eingabe);
		System.out.println(myRandomN.nextFloat()); */
	}
	
// METHODS

// Erstellt eine neue Spielerliste
public void erstelleSpielerListe() {
	SpListe[0] = new Spieler("Renato", 1);
	SpListe[1] = new Spieler("Dominik", 2);
	SpListe[2] = new Spieler("Niklaus", 3);
	SpListe[3] = new Spieler();
	SpListe[4] = new Spieler();
}

// Gibt die Spieler aus
public void outputSpieler() {
	System.out.println("Die beteiligten Spieler: ");
	for (int i=0; i<myAnzahl; i++) {
		System.out.println("Nr. " + SpListe[i].getNummer() 
		                   + " : " + SpListe[i].getName());
	}
}

}
