title: Unknown type name "Shape1" in C++ Builder
body: <p>I'm trying to make a Tetris clone in C++ Builder.  I started by making 2 classes. I have wrote them in a <code>.h</code> file and included it in my <code>.cpp</code> file:</p>
  
  <pre><code>class Stage
  {
  protected:
      int Width;
      int Height;
  public:
  
      Stage()
      {
          Width=300;
          Height=733;
      }
  
      Stage(int Width0,int Height0)
      {
          Width=Width0;
          Height=Height0;
      }
  };
  </code></pre>
  
  <p>This is my first class, Stage. I don't know for sure what this class should contain, so if you have any suggestions on what I should include in it, I'm glad to hear them.</p>
  
  <pre><code>class Tetromino : public Stage
  {
  protected:
      Tshape *Shape1;
  public:
      Tetromino(Tshape *Shape1)
      {
          TetrisGame-&gt;Shape1-&gt;Width=33;
          TetrisGame-&gt;Shape1-&gt;Height=33;
          TetrisGame-&gt;Shape1-&gt;Brush-&gt;Color=clBlack;
          TetrisGame-&gt;Shape1-&gt;Left=10;
          TetrisGame-&gt;Shape1-&gt;Top=200;
      }
  
      void mLeft()
      {
          if(TetrisGame-&gt;Shape1-&gt;Left&lt;=Widht)
              TetrisGame-&gt;Shape1-&gt;Left=TetrisGame-&gt;Shape1-&gt;Left+33;
      }
  
      void mRight()
      {
          if(TetrisGame-&gt;Shape1-&gt;Left&gt;=Width)
              TetrisGame-&gt;Shape1-&gt;Left=TetrisGame-&gt;Shape1-&gt;Left-33;
      }
  
      void free_fall()
      {
          TetrisGame-&gt;PieceFallTime-&gt;Enabled=true;
      }
  };
  </code></pre>
  
  <p>That's my second class, the class for pieces. </p>
  
  <p>I know that that's not how it should work. I have to make a matrix for example let's say:</p>
  
  <pre><code>piece[4][4]=
      {(0,0,0,0),
       (0,0,0,0),
       (0,1,0,0),
       (1,1,1,0)}
  </code></pre>
  
  <p>but I still have no clue how I should make use of it. I think that I should put a shape where there is 1 and it should create my piece, but I don't know how to do that.</p>
  
  <p>Right now I'm trying to figure out how to make a shape fall down and move it right or left with the keyboard. I did this before, but with no classes. It's a bit more complicated using classes and I don't understand.</p>
  
  <p>I tried to initialize an object <code>Tetromino x(Shape1)</code> (the code is in <code>form.cpp</code>) having a <code>Shape1</code> in my form.  I'm thinking that this should force the <code>Shape1</code> in my Form to use the methods that I wrote in my class, right?</p>
  
  <p>But I'm getting this error:</p>
  
  <blockquote>
    <p>[bcc32c Error] StartGame.cpp(110): unknown type name 'Shape1'</p>
  </blockquote>