Inheritance Error "Base Class Unidentified"
<p>I have a State class that is fully implemented as outlined below. I also have a PlayState class that inherits the State class, it too is fully implemented. My compile error is "playstate.h(6): error C2504: 'State' : base class undefined"
I have checked their order in Global.h, State.h appears before PlayState.h</p>

<p><strong>CODE:</strong><br>
STATE.H</p>

<pre><code>#pragma once

  #include "Global.h"

class State
{
   public:
State(void);
virtual ~State(void);

virtual void Input(INPUTDATA* InputData);
virtual void Logic(OBJECT go[], INPUTDATA* InputData);
virtual void Render(OBJECT go[]);
virtual void InitGame(OBJECT go[]);
virtual void LoadGraphics(void);

void Toggle();
bool IsEnabled();

  private:
bool isEnabled;

 };
</code></pre>

<p>PlayState.h</p>

<pre><code>#include "Global.h"

 class PlayState : public State
 {
  private:
#define UPDATESPEED 1000    // milliseconds between each update

// global variables
float camXAngle;
float camYAngle;
float camZoom;
int updatetime;
bool gameover;
float runspeed;
D3DLIGHT9 light;

SPRITE graphics;
SPRITE particleTexture;
MODEL terrain[2];
MODEL sky;

 public:
PlayState();
~PlayState();

void Input(INPUTDATA* InputData);
void Logic(OBJECT go[], INPUTDATA* InputData);
void Render(OBJECT go[]);
void InitGame(OBJECT go[]);
void LoadGraphics(void);
 };
</code></pre>

<p>Thanks</p>
