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)}; }
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; }
public PersonEngine(EngineContext context) { Context = context; Decider = new PersonDecider(context); }
public EngineProcess CreateProcess(EngineContext context) { var process = new EngineProcess (context); return process; }
public static void Attach(EngineContext context) { Context = context; }
public EngineContextStarter(EngineContext context) { Context = context; }
public GameConsoleSummarizer(EngineContext context) { Context = context; }
public PlayerConsole(EngineContext context) { Context = context; }
public FoodDecision(EngineContext context) : base(context) { }
public WaterDecision(EngineContext context) : base(context) { }
static public void Attach(EngineContext context) { Context = context; }
public PersonEngine(EngineContext context) { Context = context; Decider = new PersonDecider (context); }
public EngineProcess CreateProcess(EngineContext context) { var process = new EngineProcess(context); return(process); }