我正在尝试制作一款游戏,并且为播放器创建了一个类。该类继承了“Entity”,它继承了QGraphicsItem。Qt模糊错误
#ifndef PLAYER_H
#define PLAYER_H
#include "entity.h"
class Player : public Entity
{
public:
Player(QString, int, int, int position);
QRectF boundingRect() const;
void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
QWidget *widget);
void move_north();
void move_south();
void move_west();
void move_east();
void start_moving();
void stop_moving();
void switch_step();
bool its_moving();
void change_pos(int);
private:
QPoint position;
bool is_moving;
private signals:
void Move();
};
#endif // PLAYER_H
,但我不断收到错误“预期‘:’‘保护’之前”,在33行