Created the client program's framework

There are six scenes here, each of which representing roughly one part of
the final program's backbone.
This commit is contained in:
Kayne Ruse
2013-06-08 01:36:19 +10:00
parent 2757911399
commit a1b248d1d7
21 changed files with 1108 additions and 2 deletions
+69
View File
@@ -0,0 +1,69 @@
#include "lobby.hpp"
#include <iostream>
using namespace std;
//-------------------------
//Public access members
//-------------------------
Lobby::Lobby() {
#ifdef DEBUG
cout << "entering Lobby" << endl;
#endif
}
Lobby::~Lobby() {
#ifdef DEBUG
cout << "leaving Lobby" << endl;
#endif
}
//-------------------------
//Frame loop
//-------------------------
void Lobby::FrameStart() {
//
}
void Lobby::Update(double delta) {
//
}
void Lobby::FrameEnd() {
//
}
void Lobby::Render(SDL_Surface* const screen) {
//
}
//-------------------------
//Event handlers
//-------------------------
void Lobby::MouseMotion(SDL_MouseMotionEvent const& motion) {
//
}
void Lobby::MouseButtonDown(SDL_MouseButtonEvent const& button) {
//
}
void Lobby::MouseButtonUp(SDL_MouseButtonEvent const& button) {
//
}
void Lobby::KeyDown(SDL_KeyboardEvent const& key) {
switch(key.keysym.sym) {
case SDLK_ESCAPE:
QuitEvent();
break;
}
}
void Lobby::KeyUp(SDL_KeyboardEvent const& key) {
//
}