package org.avslor.JourneyThroughAvslor.Engine.Shared;

/*   Copyright 2013 James Loyd , Joshua Theze
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIYES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */
public class GameEngine
{

    public GameEngine()
    {
        //some special code will go here
    }

   public void Start()
   {
       int i = 3;
       String sectionName = "First";
       Storyreader storyreader = Storyreader.createStoryReader();
       System.out.println(storyreader.ReadStory());
       System.out.println(storyreader.ReadStoryAtLine(sectionName,i));
    }

}
@@ -47,18 +47,18 @@
 .Shared;
-%0D%0D
+%0A%0A
 /*   Cop
@@ -94,20 +94,20 @@
 ua Theze
-%0D *%0D
+%0A *%0A
  *   Lic
@@ -166,17 +166,17 @@
 cense%22);
-%0D
+%0A
  *   you
@@ -236,17 +236,17 @@
 License.
-%0D
+%0A
  *   You
@@ -281,20 +281,20 @@
 cense at
-%0D *%0D
+%0A *%0A
  *      
@@ -340,12 +340,12 @@
 -2.0
-%0D *%0D
+%0A *%0A
  *  
@@ -412,17 +412,17 @@
 software
-%0D
+%0A
  *   dis
@@ -483,17 +483,17 @@
 %22 BASIS,
-%0D
+%0A
  *   WIT
@@ -562,17 +562,17 @@
 implied.
-%0D
+%0A
  *   See
@@ -635,17 +635,17 @@
 ions and
-%0D
+%0A
  *   lim
@@ -675,13 +675,13 @@
 nse.
-%0D */%0D
+%0A */%0A
 publ
@@ -703,50 +703,251 @@
 gine
-%0D%7B%0D%0D    public GameEngine()%0D
+ implements iGameState%0A%7B%0A%09private boolean isRunning = false;%0A    private String mapName;%0A%09private String charachterName;%0A%09private String sectionName;%0A%09public GameEngine(String mapName, String charachterName , String sectionName)%0A
     %7B
-%0D
+%0A
         
 //so
@@ -946,48 +946,113 @@
     
-//some special code will go here%0D
+this.mapName = mapName;%0A%09%09this.charachterName = charachterName;%0A%09%09this.sectionName = sectionName;%0A
     %7D
-%0D%0D
+%0A%0A
    p
@@ -1073,22 +1073,22 @@
 rt()
-%0D
+%0A
    %7B
-%0D
+%0A
        i
 nt i
@@ -1087,62 +1087,69 @@
    i
-nt i = 3;%0D       String sectionName = %22First%22;%0D       
+sRunning = true;%0A%09   while(isRunning)%0A%09   %7B%0A%09%09%09int i = 3;%0A%09%09%09
 Stor
@@ -1202,24 +1202,20 @@
 eader();
-%0D       
+%0A%09%09%09
 System.o
@@ -1254,16 +1254,12 @@
 ());
-%0D       
+%0A%09%09%09
 Syst
@@ -1321,13 +1321,43 @@
 i));
-%0D    %7D%0D%0D%7D
+%0A%09%09%09isRunning = false;%0A%09    %7D%0A    %7D%0A%0A%7D%0A

Update GameEngine.java