src/Location.h

00001 #ifndef LOCATION_H
00002 #define LOCATION_H
00003 
00004 #include <SDL/SDL.h>
00005 
00009 class Location
00010 {
00011 public:
00012 
00017     Location(Uint32 x = 0, Uint32 z = 0, Uint32 y = 0);
00018 
00022     virtual ~Location();
00023 
00031     Uint32 getX() {return mX;}
00032 
00040     void setX(Uint32 newX) {mX = newX;}
00041 
00049     Uint32 getY() {return mY;}
00050 
00058     void setY(Uint32 newY) {mY = newY;}
00059 
00067     Uint32 getZ() {return mZ;}
00068 
00076     void setZ(Uint32 newZ) {mZ = newZ;}
00077 
00087     void setXYZ(Uint32 newX, Uint32 newY, Uint32 newZ) {mX = newX;
00088                                                         mY = newY;
00089                                                         mZ = newZ;}
00090 
00100     void getXYZ(Uint32 &x, Uint32 &y, Uint32 &z) {x = mX;
00101                                                   y = mY;
00102                                                   z = mZ;}
00109     Location& operator=(const Location& l);
00110 
00117         bool operator==(const Location &l);
00118         bool operator!=(const Location &l);
00119 
00120 private:
00121 
00122     Uint32 mX;  
00123     Uint32 mY;  
00124     Uint32 mZ;  
00125 };
00126 
00127 
00128 
00129 #endif // LOCATION_H

Generated on Mon Dec 3 04:30:13 2007 for lo-testserver by  doxygen 1.3.9.1