#include "in_world.hpp" #include using namespace std; //------------------------- //Public access members //------------------------- InWorld::InWorld() { #ifdef DEBUG cout << "entering InWorld" << endl; #endif } InWorld::~InWorld() { #ifdef DEBUG cout << "leaving InWorld" << endl; #endif } //------------------------- //Frame loop //------------------------- void InWorld::FrameStart() { // } void InWorld::Update(double delta) { // } void InWorld::FrameEnd() { // } void InWorld::Render(SDL_Surface* const screen) { // } //------------------------- //Event handlers //------------------------- void InWorld::MouseMotion(SDL_MouseMotionEvent const& motion) { // } void InWorld::MouseButtonDown(SDL_MouseButtonEvent const& button) { // } void InWorld::MouseButtonUp(SDL_MouseButtonEvent const& button) { // } void InWorld::KeyDown(SDL_KeyboardEvent const& key) { switch(key.keysym.sym) { case SDLK_ESCAPE: QuitEvent(); break; } } void InWorld::KeyUp(SDL_KeyboardEvent const& key) { // }