public void Initialize(Player playerGet, Sadako sadakoGet, Map mapGet, SongHandler songsGet, EventHandler eventsGet) { songs = songsGet; events = eventsGet; player = playerGet; sadako = sadakoGet; map = mapGet; currentLocation = new Vector2(0, 0); currentRoom = map.getRoom(currentLocation); sadakoRoom = currentRoom; sadako.disable = true; entryPoint = player.position; }
public void setEvent(EventHandler eventGet) { events = eventGet; events.sadako = this; }
protected override void Initialize() { // Sample texture, 1x1 pixel for testing. simpleTexture = new Texture2D(GraphicsDevice, 1, 1); simpleTexture.SetData(new[] { Color.White }); // Initializes the accelerometer. initializeAccelerometer(); // Databases tileDatabase = new TileDatabase(); roomDatabase = new RoomDatabase(); // Handlers songHandler = new SongHandler(); inventoryHandler = new InventoryHandler(); eventHandler = new EventHandler(); locationHandler = new LocationHandler(); // Objects mapDefinition = new Map(); sadakoReference = new Sadako(); playerReference = new Player(); // M! game profiler for FPS and other related stuff #if DEBUG Components.Add(new GameProfiler(this, Content)); #endif base.Initialize(); }