proj home

Files   Classes   Functions   Hierarchy  

cursor.h

Go to the documentation of this file.
00001 #ifndef CURSOR_H
00002 #define CURSOR_H
00003 
00004 #include <typedefs.h>
00005 
00019 class cursor
00020 {
00021 public:
00022 
00024   uint j;
00026   uint k;
00027 
00029   cursor()
00030     : j(1), k(1) {}
00031 
00033   void up() { ++k; k %= 3; }
00035   void down() { k += 2; k %= 3; }
00037   void left() { j += 2; j %= 3; }
00039   void right() { ++j; j %= 3; }
00040 };
00041 
00042 
00043 #endif
00044 

Generated on Fri Mar 4 00:49:26 2011 for Chelton Evans Source by  doxygen 1.5.8