コード例 #1
0
 private static void loadLevel(int levelNumber, State previousState)
 {
     Level level = new Level(1, 20, 5,
         new Belt(3, "Belt between dispenser and machine 1"),
         new Machine(1, 1, 4),
         new Belt(5, "Belt between machines 1 and 2"),
         new Machine(2, 3, 5),
         new Machine(3, 2, 5),
         new Belt(3, "Belt between machine 3 and machine 4"),
         new Machine(4, 2, 12),
         new Machine(5, 1, 6),
         new Belt(9, "Belt between machines 5 and 6"),
         new Machine(6, 4, 20),
         new Belt(10, "Belt between machine 6 and another belt"),
         new Belt(4, "Belt between previous belt and goal"));
     level.EnterMenuLoop(previousState);
 }
コード例 #2
0
 public void Initialize(LevelObject previous, LevelObject next, Level containingLevel)
 {
     this.previous = previous;
     this.next = next;
     this.containingLevel = containingLevel;
 }