Пример #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);
        }