#include "RobotsBattleGr.h"


RenderSceneState rs;//Current render state holder, 

static void animate(){
	
	/******************************************************************************/
	/*                                                                            */
	/* Main Loop which update the current state of the scene each clock tick      */
	/*                                                                            */
	/******************************************************************************/

	/*Simple Example for scene update*/

	/*Robots Update*/
	rs.robots[0].Turn(4.5);	
	rs.robots[1].Turn(-9);

	
	/*Laser Beams Update*/
	rs.laserBeam(0).direction = 45;
	rs.laserBeam(0).x++;
	rs.laserBeam(0).y++;
	rs.laserBeam(0).isVisible = true;
	
	/*Render the scene according to current state.*/
	Render(rs);

}


int main (int argc, char* argv[]){

    /*Read Input
	  Parse
	  Create Internal Representation of the strategies files.*/
	
	rs.robots[0].setName("Megatron");	
	rs.robots[1].setName("Optimus");	
    
	robotsBattleGrInit(animate);
        
	return 0;
	
}

