X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FPartyMenu.cpp;fp=src%2Fmenu%2FPartyMenu.cpp;h=1243df95d4c8d39c18c601eebcbeb9d95ec14cb2;hb=e4f678d8cce5408590178bc873fde1754c037d0d;hp=0000000000000000000000000000000000000000;hpb=816bc61d7e14ffcb3846eadd41bd86de9174e36f;p=l2e.git diff --git a/src/menu/PartyMenu.cpp b/src/menu/PartyMenu.cpp new file mode 100644 index 0000000..1243df9 --- /dev/null +++ b/src/menu/PartyMenu.cpp @@ -0,0 +1,79 @@ +/* + * PartyMenu.cpp + * + * Created on: Oct 21, 2012 + * Author: holy + */ + +#include "PartyMenu.h" + +#include "Resources.h" +#include "../app/Application.h" +#include "../app/Input.h" +#include "../common/GameConfig.h" +#include "../geometry/Vector.h" +#include "../graphics/Texture.h" + +using app::Input; +using common::GameConfig; +using geometry::Vector; + +namespace menu { + +PartyMenu::PartyMenu(GameConfig *game) +: game(game) { + +} + +PartyMenu::~PartyMenu() { + +} + + +void PartyMenu::OnEnterState(SDL_Surface *) { + +} + +void PartyMenu::OnExitState(SDL_Surface *) { + +} + +void PartyMenu::OnResumeState(SDL_Surface *) { + +} + +void PartyMenu::OnPauseState(SDL_Surface *) { + +} + + +void PartyMenu::OnResize(int width, int height) { + +} + + +void PartyMenu::HandleEvents(const Input &input) { + if (input.JustPressed(Input::ACTION_B)) { + Ctrl().PopState(); + return; + } +} + +void PartyMenu::UpdateWorld(float deltaT) { + +} + +void PartyMenu::Render(SDL_Surface *screen) { + Res().menubg->Render(screen, Vector(), Vector(screen->w, screen->h)); +} + + +Resources &PartyMenu::Res() { + return *game->menuResources; +} + +const Resources &PartyMenu::Res() const { + return *game->menuResources; +} + +}