Hallo,
ich hab hier ein Problem an dem ich schon eine Stunde hänge.
|
C-/C++-Quelltext
|
1
2
|
//Listen
list <CShot> m_lShotList;
|
-> error C2065: 'CShot': nichtdeklarierter Bezeichner
In der .cpp Datei der selben Klasse wird CShot aber erkannt.
Ich hab die Headerdatei schon gründlich Durschsucht ob vieleicht ein Semikolon vergessen wurde etc. Is aber nicht so. Woran kann das noch liegen?
Hier mal die gesamte Headerdatei.
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
#ifndef PLAYER_HPP
#define PLAYER_HPP
/////////////////////////////////////
// Dateiinfo //
//Name: Player.h //
//Erstellt von: Oliver Schmidt //
//Zuletzt bearbeitet: 13.7.09 //
//Von: Oliver Schmidt //
////////////////////////////////////
//////////////
//Includes //
//////////////
#include <SDL.h>
#include <string>
#include <list>
#include <SDL_ttf.h>
#include "Framework.h"
#include "Sprite.h"
#include "Text.h"
#include "Smoke.h"
#include "Maus.h"
#include "Shot.h"
class CPlayer
{
public:
CPlayer ();
void Init (CSprite *Image,float x,float y,int frame);
void Update ();
void Render ();
private:
void ProcessMove ();
void ProcessShot ();
//Bools
bool m_bLock;
//Sprite
CSprite *m_pSpritePlayerTank;
CSprite *m_pSpriteShot;
//Frame
int m_Frame;
//Position
SDL_Rect m_Rect;
float m_fXPos;
float m_fYPos;
//Listen
list <CShot> m_lShotList;
};
#endif
|