コード例 #1
0
 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);
 }
コード例 #2
0
 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();
 }