Esempio n. 1
0
 public GameTile(GameEnvironment world)
 {
     World = world;
     Plants = new Plant[]{ };
     People = new Person[]{ };
     Inventory = new Inventory(this, null, world.Context.Settings);
 }
        public GameEnvironmentPopulator(GameEnvironment world)
        {
            World = world;

            // TODO: Should all these creators be consistent with their constructor parameters?
            TileCreator = new TileCreator (world);
            PersonCreator = new PersonCreator (world.Context.Settings);
            PlantCreator = new PlantCreator (world.Context.Settings);
        }
Esempio n. 3
0
        public EngineContext(EngineSettings settings, DataManager data)
        {
            Data = data;

            Settings = settings;

            Console = new ConsoleHelper (Settings);

            Clock = new EngineClock (Settings, Console);

            Info = new EngineInfo (Clock.StartTime, Settings);

            Log = new LogWriter (Settings.EngineId, data.Client);

            World = new GameEnvironment (this);

            if (Settings.IsVerbose)
                Console.WriteDebugLine ("Constructing engine context");
        }
Esempio n. 4
0
 public TileCreator(GameEnvironment world)
 {
     World = world;
 }