Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

OptionsInput.cpp

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004 Ivo Danihelka (ivo@danihelka.net)
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  */
00009 #include "OptionsInput.h"
00010 
00011 #include "MenuOptions.h"
00012 
00013 //-----------------------------------------------------------------
00014 OptionsInput::OptionsInput(MenuOptions *menu)
00015     : StateInput(menu)
00016 {
00017 }
00018 //-----------------------------------------------------------------
00019 MenuOptions *
00020 OptionsInput::getMenu()
00021 {
00022     return dynamic_cast<MenuOptions*>(m_state);
00023 }
00024 //-----------------------------------------------------------------
00025 /**
00026  * Toggle menu.
00027  */
00028 void
00029 OptionsInput::enableMenu()
00030 {
00031     quitState();
00032 }
00033 //-----------------------------------------------------------------
00034 void
00035 OptionsInput::mouseEvent(const MouseStroke &buttons)
00036 {
00037     getMenu()->mouseButton(buttons);
00038 }
00039 

Generated on Wed Jun 1 09:54:31 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2