public RobotModel(SimulatorEngineModel simulatorEngine, string name, int position_x, int position_y, int orientation, string instructionFilePath)
 {
     this.SimulatorEngine = simulatorEngine;
     this.Name = name;
     this.Position = new Point(position_x, position_y);
     this.Orientation = orientation;
     this.CurrentInstruction = DEFAULT_CURRENT_INSTRUCTION;
     this.Instructions = new List<string>();
     AddInstructions(instructionFilePath);
 }
 public RobotModel(SimulatorEngineModel simulatorEngine, string name, Point position_xy, int orientation, string instructionFilePath)
     : this(simulatorEngine, name, position_xy.X, position_xy.Y, orientation, instructionFilePath)
 {
     //no code here
 }
示例#3
0
 static void Main(string[] args)
 {
     Console.WriteLine("============== Begin Simulation ==============");
     SimulatorEngineModel SimulatorEngine = new SimulatorEngineModel();
     SimulatorEngine.StartSimulation();
 }