title: Assign multiple values to one object(?)
body: <p>Note: I am somewhat of a beginner to C#.</p>
  
  <p>I'm working on a little game that will have a bunch of different levels. Each level has its own class that contains variables (and other irrelevant code). Since I need to pass these values to the main class (my form) I have made them all into methods that returns the value I want (since I can't come up with a better solution). example:</p>
  
  <pre><code>class Level01
  {
      public int Boxes() { return 3; }
      public int MaxPoints() { return 46; }
      public int Health() { return 63; }
      public int[,] SolidBoxes()
      {
          int[,] position = new int[Boxes(), Boxes()];
          position[1, 1] = 1;
          return position;
      }
  }
  </code></pre>
  
  <p>When I access these values from my form class I do </p>
  
  <pre><code>int boxes;
  int maxPoints;
  int health;
  int[,] solidBoxes;
  
  void readLevelData() //Starts each new level
  {
      //Reads the correct level
      switch (levelNo)
      {
          case 1: 
          setValues(Lvl01.Boxes(), Lvl01.MaxPoints(), Lvl01.Health(), Lvl01.SolidBoxes()); 
          break;
          //The same case 2:, 3: for Level02,03..
      }
  }
  
  void setValues(int getBoxes, int getMaxPoints, int getHealth, int[,] getSolidBoxes)
  {
      boxes = getBoxes;
      maxPoints = getMaxPoints;
      health = getHealth;
      solidBoxes = getSolidBoxes;
  }
  </code></pre>
  
  <p>I am aware that there's probably a million things in my code here that can be done better and I gladly listen if you have any suggestions, but the thing I wish to ask is:</p>
  
  <p>How can I get all the values from each class using maybe just one name? Ex. Instead doing as I do now, is there a way so I can do something similar to this:</p>
  
  <pre><code>case 1: 
      setValues(Lvl01.Values); 
      break;
  </code></pre>
  
  <p>The problem here is in the setValues method, some of the levels has quite a lot of settings that I wish to use, but I doubt the method would want to take like 15 parameters, and I'm not sure what to do when some levels are not using settings that other levels use.</p>
  
  <p><strong>How should I change my code so I do not have to use every single value as a parameter?</strong></p>