/[eliot]/eliot/game/coord.cpp
ViewVC logotype

Diff of /eliot/game/coord.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by ipkiss, Sun Oct 23 14:53:43 2005 UTC revision 1.3 by ipkiss, Fri Nov 4 20:00:06 2005 UTC
# Line 17  Line 17 
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
# Line 58  Coord::getCol() const Line 56  Coord::getCol() const
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;
# Line 84  Coord::operator=(const Coord &iOther) Line 82  Coord::operator=(const Coord &iOther)
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;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26