Added mark and gate events to race
This commit is contained in:
Generated
+1
-1
@@ -45,7 +45,7 @@
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8 (1)" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package seng302;
|
||||
|
||||
|
||||
public class App
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
@@ -13,10 +15,17 @@ public class App
|
||||
Boat boat6 = new Boat("SoftBank Team Japan");
|
||||
Boat[] all_boats = {boat1, boat2, boat3, boat4, boat5, boat6};
|
||||
Boat[] boats = {all_boats[0], all_boats[1]};
|
||||
Event start = new Event("Start", boats);
|
||||
Event finish = new Event("Finish", boats);
|
||||
|
||||
System.out.println(start);
|
||||
System.out.println(finish);
|
||||
ArrayList<Event> events = new ArrayList<Event>();
|
||||
events.add(new Event("Start", boats));
|
||||
events.add(new Event("Mark", boats));
|
||||
events.add(new Event("Leeward Gate", boats));
|
||||
events.add(new Event("Windward Gate", boats));
|
||||
events.add(new Event("Leeward Gate", boats));
|
||||
events.add(new Event("Finish", boats));
|
||||
|
||||
for(Event event:events) {
|
||||
System.out.println(event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user