This repository has been archived on 2026-04-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Tortuga/client/test_systems.cpp
T
2013-05-16 17:02:21 +10:00

72 lines
1.1 KiB
C++

#include "test_systems.hpp"
#include <iostream>
using namespace std;
//-------------------------
//Public access members
//-------------------------
TestSystems::TestSystems(ConfigUtility* cUtil, SurfaceManager* sMgr) {
#ifdef DEBUG
cout << "entering TestSystems" << endl;
#endif
configUtil = cUtil;
surfaceMgr = sMgr;
}
TestSystems::~TestSystems() {
#ifdef DEBUG
cout << "leaving TestSystems" << endl;
#endif
}
//-------------------------
//Frame loop
//-------------------------
void TestSystems::FrameStart() {
//
}
void TestSystems::FrameEnd() {
//
}
void TestSystems::Update() {
//
}
void TestSystems::Render(SDL_Surface* const screen) {
//
}
//-------------------------
//Event handlers
//-------------------------
void TestSystems::MouseMotion(SDL_MouseMotionEvent const& motion) {
//
}
void TestSystems::MouseButtonDown(SDL_MouseButtonEvent const& button) {
//
}
void TestSystems::MouseButtonUp(SDL_MouseButtonEvent const& button) {
//
}
void TestSystems::KeyDown(SDL_KeyboardEvent const& key) {
switch(key.keysym.sym) {
case SDLK_ESCAPE:
QuitEvent();
break;
}
}
void TestSystems::KeyUp(SDL_KeyboardEvent const& key) {
//
}