49 lines
1.4 KiB
C++
49 lines
1.4 KiB
C++
/* -*- C++ -*- */
|
|
/*
|
|
GAV - Gpl Arcade Volleyball
|
|
|
|
Copyright (C) 2002
|
|
GAV team (http://sourceforge.net/projects/gav/)
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#ifndef __MENUITEMNOTIMPLEMENTED_H__
|
|
#define __MENUITEMNOTIMPLEMENTED_H__
|
|
|
|
#include <SDL.h>
|
|
#include "MenuItem.h"
|
|
#include "globals.h"
|
|
|
|
class MenuItemNotImplemented: public MenuItem {
|
|
std::string msg;
|
|
public:
|
|
MenuItemNotImplemented(std::string l) {
|
|
label = l;
|
|
msg = (std::string)"Menu Item Not Yet Implemented";
|
|
}
|
|
int execute(std::stack<Menu *> &s) {
|
|
SDL_Rect r;
|
|
r.x = (screen->w / 2) - msg.length()*(cga->charWidth())/2;
|
|
r.y = screen->h * 2/3;
|
|
cga->printXY(screen, &r, msg.c_str());
|
|
SDL_Flip(screen);
|
|
SDL_Delay(1000);
|
|
return(0);
|
|
}
|
|
};
|
|
|
|
#endif
|