Example #1
0
 public Engine(ConsoleRenderer render, PlayerShip player , List<IWorldObject> objects , Random randomGenerator)
 {
     this.render = render;
     worldObject = objects;
     this.player = player;
     this.randomGenerator = randomGenerator;
 }
Example #2
0
 static void Main()
 {
     var random = new Random();
     var render = new ConsoleRenderer(50 , 30);
     var player = PlayerShip.LoadShip();
     var objects = new List<IWorldObject>();
     var engine = new Engine(render , player , objects , random);
     engine.AddObject(player);
     engine.Run();
 }