C:/Documents and Settings/mtauraso/Desktop/proj3/projectX/Camera.cpp

Go to the documentation of this file.
00001 #include "Camera.h"
00002 
00003 Camera::Camera()
00004 {
00005         _type = CAMERA;
00006 }
00007 
00008 void Camera::control()
00009 {
00010         Uint8 *keystates = SDL_GetKeyState( NULL );
00011         Screen* s = Screen::instance();
00012 
00013         if(keystates[SDLK_UP])
00014                 s->move(0,-10);
00015         else if(keystates[SDLK_DOWN])
00016                 s->move(0,10);
00017         else if(keystates[SDLK_LEFT])
00018                 s->move(-10,0);
00019         else if(keystates[SDLK_RIGHT])
00020                 s->move(10,0);
00021 }

Generated on Sat Apr 22 15:05:20 2006 for ProjectX by  doxygen 1.4.6-NO