예제 #1
0
        public GameEnvironment(EngineContext context)
        {
            Context = context;

            Populator = new GameEnvironmentPopulator (this);
            PersonCreator = new PersonCreator (context.Settings);
            PlantCreator = new PlantCreator (context.Settings);
            Tiles = new GameTile[]{};
            People = new Person[] {};
            Plants = new Plant[]{ };
            Logic = new GameLogic ();
            Tiles = new GameTile[]{new GameTile(this)};
        }
예제 #2
0
        public EngineContext Create()
        {
            // Create the required objects
            var data = CreateDataManager ();

            var context = new EngineContext (Settings, data);

            var process = CreateProcess (context);

            // Attach the process to the context
            context.AttachProcess(process);

            return context;
        }
예제 #3
0
 public PersonEngine(EngineContext context)
 {
     Context = context;
     Decider = new PersonDecider(context);
 }
예제 #4
0
        public EngineProcess CreateProcess(EngineContext context)
        {
            var process = new EngineProcess (context);

            return process;
        }
예제 #5
0
 public static void Attach(EngineContext context)
 {
     Context = context;
 }
 public EngineContextStarter(EngineContext context)
 {
     Context = context;
 }
 public GameConsoleSummarizer(EngineContext context)
 {
     Context = context;
 }
예제 #8
0
 public PlayerConsole(EngineContext context)
 {
     Context = context;
 }
예제 #9
0
 public FoodDecision(EngineContext context)
     : base(context)
 {
 }
예제 #10
0
 public WaterDecision(EngineContext context) : base(context)
 {
 }
예제 #11
0
 public GameConsoleSummarizer(EngineContext context)
 {
     Context = context;
 }
예제 #12
0
 public EngineContextStarter(EngineContext context)
 {
     Context = context;
 }
예제 #13
0
 public PlayerConsole(EngineContext context)
 {
     Context = context;
 }
예제 #14
0
 static public void Attach(EngineContext context)
 {
     Context = context;
 }
예제 #15
0
 public FoodDecision(EngineContext context) : base(context)
 {
 }
예제 #16
0
 public PersonEngine(EngineContext context)
 {
     Context = context;
     Decider = new PersonDecider (context);
 }
예제 #17
0
 public WaterDecision(EngineContext context)
     : base(context)
 {
 }
예제 #18
0
        public EngineProcess CreateProcess(EngineContext context)
        {
            var process = new EngineProcess(context);

            return(process);
        }