17 |
/* along with this program; if not, write to the Free Software */ |
/* along with this program; if not, write to the Free Software */ |
18 |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
19 |
|
|
|
/* $Id$ */ |
|
|
|
|
20 |
/** |
/** |
21 |
* \file coord.cpp |
* \file coord.cpp |
22 |
* \brief Eliot coordinate system |
* \brief Eliot coordinate system |
56 |
return m_col; |
return m_col; |
57 |
} |
} |
58 |
|
|
59 |
void |
void |
60 |
Coord::setRow(int iRow) |
Coord::setRow(int iRow) |
61 |
{ |
{ |
62 |
m_row = iRow; |
m_row = iRow; |
63 |
} |
} |
64 |
|
|
65 |
void |
void |
66 |
Coord::setCol(int iCol) |
Coord::setCol(int iCol) |
67 |
{ |
{ |
68 |
m_col = iCol; |
m_col = iCol; |
69 |
} |
} |
70 |
|
|
71 |
void |
void |
72 |
Coord::setDir(Direction iDir) |
Coord::setDir(Direction iDir) |
73 |
{ |
{ |
74 |
m_dir = iDir; |
m_dir = iDir; |
75 |
} |
} |
76 |
|
|
77 |
void |
void |
78 |
Coord::operator=(const Coord &iOther) |
Coord::operator=(const Coord &iOther) |
79 |
{ |
{ |
80 |
m_dir = iOther.m_dir; |
m_dir = iOther.m_dir; |
82 |
m_col = iOther.m_col; |
m_col = iOther.m_col; |
83 |
} |
} |
84 |
|
|
85 |
std::string |
std::string |
86 |
Coord::toString() const |
Coord::toString() const |
87 |
{ |
{ |
88 |
std::string rs; |
std::string rs; |