Advertisement
wingman007

SnakeOOPFinal2b_Application

Oct 28th, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. using SnakeOOP2b.View;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace SnakeOOP2b
  9. {
  10.     class Application
  11.     {
  12.         private Timer timer;
  13.         public void Bootstrap(object config = null)
  14.         {
  15.             this.timer = new Timer();
  16.             // timer.Tick += (object sender, EventArgs e) => Console.WriteLine("I am ticking");
  17.             SnakeOOP2b.View.View view = new SnakeOOP2b.View.View();
  18.             Input input = new Input();
  19.             Snake snake = new Snake(5);
  20.             SnakeOOP2b.Controller.Controller controller = new SnakeOOP2b.Controller.Controller(view, snake, input, timer);
  21.         }
  22.  
  23.         public void Start()
  24.         {
  25.             timer.Start();
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement