Add const to GuardGallivant.getStartDirectionIndex()
This commit is contained in:
parent
1fd73c1a18
commit
2e2a95faef
|
@ -29,7 +29,7 @@ class GuardGallivant
|
||||||
Point2 start_{};
|
Point2 start_{};
|
||||||
void visitPosition(const Point2& current);
|
void visitPosition(const Point2& current);
|
||||||
size_t turnDirection(const size_t current) const;
|
size_t turnDirection(const size_t current) const;
|
||||||
size_t getStartDirectionIndex() const;
|
const size_t getStartDirectionIndex() const;
|
||||||
const char getStartChar() const;
|
const char getStartChar() const;
|
||||||
const char getVisitedChar() const;
|
const char getVisitedChar() const;
|
||||||
const char getObstructionChar() const;
|
const char getObstructionChar() const;
|
||||||
|
|
|
@ -70,7 +70,7 @@ size_t GuardGallivant::turnDirection(const size_t current) const
|
||||||
return current == 0 ? 3 : current - 1;
|
return current == 0 ? 3 : current - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t GuardGallivant::getStartDirectionIndex() const
|
const size_t GuardGallivant::getStartDirectionIndex() const
|
||||||
{
|
{
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue