Commit b5a073e

mo_khan <mo@mokhan.ca>
2009-05-23 02:55:18
nasa is now deploying rovers to starting coordinates
1 parent d416fd4
Changed files (3)
product/project/NASA.cs
@@ -1,3 +1,5 @@
+using System;
+
 namespace mars.rover
 {
     public class NASA
@@ -5,5 +7,10 @@ namespace mars.rover
         public virtual void report_top_left_coordinates_to(SpecifyTopLeftCoordinates callback)
         {
         }
+
+        public virtual Rover deploy_rover_to(int x_coordinate, int y_coordinate, Heading heading)
+        {
+            return new Rover(new Position(x_coordinate,y_coordinate,heading));
+        }
     }
 }
\ No newline at end of file
product/project/project.csproj
@@ -47,6 +47,7 @@
   <ItemGroup>
     <Compile Include="Command.cs" />
     <Compile Include="CommandLineArgument.cs" />
+    <Compile Include="Heading.cs" />
     <Compile Include="NASA.cs" />
     <Compile Include="ParameterizedCommand.cs" />
     <Compile Include="Position.cs" />
product/project.specifications/project.specifications.csproj
@@ -67,6 +67,8 @@
   <ItemGroup>
     <Compile Include="Class1.cs" />
     <Compile Include="NASAPresenterSpecs.cs" />
+    <Compile Include="NASASpecs.cs" />
+    <Compile Include="PositionSpecs.cs" />
     <Compile Include="ProgramSpecs.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="RoverSpecs.cs" />