public Level(Texture2D textures, Player _player, ref List<Box> _boxes ) { NewEmptyLevel(1, 1); player = _player; boxes = _boxes; ParseLevel(exampleLevel); this.textures = textures; }
public LevelScreen(GraphicsDevice device, ContentManager content) : base(device, content, "level") { text = content.Load<Texture2D>("sb_texture"); boxes = new List<Box>(); player = new Player(text); aiplayer = new AIPlayer(ref player); levels = new LevelList(); level = new Level(text, player, ref boxes); oldKeyboardState = Keyboard.GetState(); lastAction = new LastAction(); currentLevel = 0; level.LoadLevel(levels.GetLEvel(currentLevel)); }
public AIPlayer(ref Player player) { this.player = player; currentPosition = 0; isRunning = false; }