You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
577 B
25 lines
577 B
13 years ago
|
#ifndef LOCALPLAYER_H
|
||
|
#define LOCALPLAYER_H
|
||
|
|
||
|
#include "player.h"
|
||
|
|
||
|
class LocalPlayer : public Player
|
||
|
{
|
||
|
public:
|
||
|
LocalPlayer() { }
|
||
|
|
||
|
void setDrawSpeed(uint16 drawSpeed) { m_drawSpeed = drawSpeed; }
|
||
|
uint16 getDrawSpeed() { return m_drawSpeed; }
|
||
|
|
||
|
void setCanReportBugs(uint8 canReportBugs) { m_canReportBugs = (canReportBugs != 0); }
|
||
|
bool getCanReportBugs() { return m_canReportBugs; }
|
||
|
|
||
|
LocalPlayerPtr asLocalPlayer() { return std::static_pointer_cast<LocalPlayer>(shared_from_this()); }
|
||
|
|
||
|
private:
|
||
|
uint16 m_drawSpeed;
|
||
|
bool m_canReportBugs;
|
||
|
};
|
||
|
|
||
|
#endif
|