Exemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (MainProgram game = new MainProgram())
     {
         game.Run();
     }
 }
 /// <summary>
 /// Creates the main program. 
 /// </summary>
 public MainProgram()
 {
     //Set the static variable Main. Is called from other classes in order to get
     //GraphicsDeviceManager and other necessary stuff
     Main = this;
     //The rootdirectory of content is the content folder
     Content.RootDirectory = "Content";
     //Create a camera looking at the origin, can be accessed staticly
     new DisplayController(250f, 270f, 250f, 250f, 270f, 249f);
     //Create the display
     Display = TheDisplay.Instance;
     //Create Feedback
     VoiceFeedback vfb = new VoiceFeedback();
     //Create the class for movement detection
     MovementDetection = new MovementDetection();
     //Create the class for the kinect video stream in the bottom right corner
     KinectVideoStream = new KinectVideoStream();
     //Create the speech recognizer
     SpeechRecognizer = new SpeechRecognizer();
     //Create crashpath detection
     CrashPathDetection = new CrashPathDetection();
 }