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

Diff of /eliot/game/coord.h

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

revision 1.2.2.1 by afrab, Sun Oct 23 17:16:24 2005 UTC revision 1.2.2.2 by ipkiss, Sun Oct 23 20:58:20 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.h   *  \file   coord.h
22   *  \brief  Game coordinates system   *  \brief  Game coordinates system
# Line 29  Line 27 
27  #ifndef _COORD_H  #ifndef _COORD_H
28  #define _COORD_H  #define _COORD_H
29    
 enum Tdirection {VERTICAL, HORIZONTAL};  
 typedef enum Tdirection Direction;  
30    
31  class Coord  class Coord
32  {  {
33   public:   public:
34    
35        enum Direction {VERTICAL, HORIZONTAL};
36    
37      Coord();      Coord();
38      Coord(std::string);      Coord(const std::string&);
39      ~Coord();      virtual ~Coord();
40        
41      int valid();      int valid();
42    
43      void set(std::string);      void set(const std::string&);
44      void setRow(int iRow);            void setRow(int iRow);
45      void setCol(int iCol);            void setCol(int iCol);
46      void setDir(Direction iDir);      void setDir(Direction iDir);
47    
48      Direction getDir() const;      Direction getDir() const;
# Line 62  class Coord Line 60  class Coord
60    
61  #endif  #endif
62    
63    
64  /// Local Variables:  /// Local Variables:
65  /// mode: hs-minor  /// mode: hs-minor
66  /// c-basic-offset: 4  /// c-basic-offset: 4

Legend:
Removed from v.1.2.2.1  
changed lines
  Added in v.1.2.2.2

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