import java.util.ArrayList;
import java.awt.Point;
import java.awt.Color;

class GameTestProgram {
	public static void main(String args[]) {
		Game  g;
		
		g = new Game();
		
		// Add some walls
		g.add(new Wall(new Point(0,0), 10, 200));
		g.add(new Wall(new Point(10,0), 170, 10));
		g.add(new Wall(new Point(180,0), 10, 200));
		g.add(new Wall(new Point(10,190), 170, 10));
		g.add(new Wall(new Point(80,60), 100, 10));
		g.add(new Wall(new Point(10,90), 40, 10));
		g.add(new Wall(new Point(100,100), 10, 50));
		
		// Add some prizes
		g.add(new Prize(new Point(165,25), 1000));
		g.add(new Prize(new Point(65,95), 500));
		g.add(new Prize(new Point(145,165), 750));
		
		// Add some traps
		g.add(new Trap(new Point(125,35)));
		g.add(new Trap(new Point(145, 145)));
		
		// Add some players
		//g.add(new Player("Blue Guy", Color.blue, new Point(38,156), 90));
		//g.add(new Player("Yellow Guy", Color.yellow, new Point(55,37), 270));
		//g.add(new Player("Green Guy", Color.green, new Point(147,116), 0));
		
		// Add the ball
		//g.add(new Ball(new Point(90, 90)));
		
		System.out.println("Here are the Game Objects:");
		g.displayObjects();
		
		// Test out some Player and Ball movement
		System.out.println("--------------------------------------------------------");
        Player player = new Player("Red Guy", Color.red, new Point(100,100), 0);
        player.speed = 10;
        player.direction = 0;
        g.add(player);
       
        Ball ball = new Ball(new Point(100,100));
        ball.speed = 10;
        ball.direction = 0;
        g.add(ball);
       
        // Make some updates
        for (int i=0; i<20; i++)
            g.updateObjects();
            
        // Get the harmful objects
        System.out.println("\nHere are the Harmful Objects:");
        System.out.println(g.harmfulObjects());
        
        // Assess the current amount of danger
		System.out.println("\nCurrent Danger Assessment:");
		System.out.println(g.assessDanger());
	}
}