minor improvementsw
This commit is contained in:
+4
-6
@@ -19,12 +19,10 @@ private:
|
||||
size_t FieldSize = 4;
|
||||
std::vector<Line> field;
|
||||
|
||||
std::vector<Tile> processLine(const std::vector<Tile> &sourceLine, Score &score);
|
||||
|
||||
Line getRow(size_t rowIndex) const;
|
||||
std::vector<Tile> getColumn(size_t columnIndex) const;
|
||||
void setRow(size_t rowIndex, const std::vector<Tile> &line);
|
||||
void setColumn(size_t columnIndex, const std::vector<Tile> &line);
|
||||
Line& getRow(size_t rowIndex) const;
|
||||
Line& getColumn(size_t columnIndex) const;
|
||||
void setRow(size_t rowIndex, const Line &line);
|
||||
void setColumn(size_t columnIndex, const Line &line);
|
||||
|
||||
void reset();
|
||||
void setSize(size_t size);
|
||||
|
||||
@@ -10,4 +10,18 @@ struct Line {
|
||||
Line(size_t length);
|
||||
|
||||
void process();
|
||||
|
||||
void push_back(Tile tile);
|
||||
size_t size();
|
||||
size_t size() const;
|
||||
|
||||
Tile& operator[](size_t index);
|
||||
const Tile& operator[](size_t index) const;
|
||||
bool operator==(const Line &other) const;
|
||||
bool operator!=(const Line &other) const;
|
||||
|
||||
std::vector<Tile>::iterator begin();
|
||||
std::vector<Tile>::iterator end();
|
||||
std::vector<Tile>::const_iterator begin() const;
|
||||
std::vector<Tile>::const_iterator end() const;
|
||||
};
|
||||
Reference in New Issue
Block a user