Skip to content
Snippets Groups Projects
Commit 136eec3f authored by Ian Prins's avatar Ian Prins
Browse files

add constant/getter for sight radius

parent 16e1708d
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ class PlayerChar : public Mob {
bool zap(Wand*, Level*);
std::vector<std::string>& getLog();
void appendLog(std::string);
int getSightRadius();
private:
int currentStr;
......@@ -61,7 +62,7 @@ class PlayerChar : public Mob {
int maxStr;
static const int START_ARMOR = 1,
START_EXP = 0, START_GOLD = 0, START_HP = 12,
START_LEVEL = 1, START_STR = 16;
START_LEVEL = 1, START_STR = 16, SIGHT_RADIUS=1;
bool removeItem(Item*);
};
......@@ -214,3 +214,7 @@ void PlayerChar::appendLog(std::string item) {
this->log.erase(this->log.begin());
}
}
int PlayerChar::getSightRadius() {
return SIGHT_RADIUS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment