[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3753 - trunk/pingus/src/screen
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3753 - trunk/pingus/src/screen |
Date: |
Wed, 9 Jul 2008 13:35:14 +0200 |
Author: grumbel
Date: 2008-07-09 13:35:13 +0200 (Wed, 09 Jul 2008)
New Revision: 3753
Removed:
trunk/pingus/src/screen/input_debug_screen.cpp
trunk/pingus/src/screen/input_debug_screen.hpp
Log:
More unused code removed
Deleted: trunk/pingus/src/screen/input_debug_screen.cpp
===================================================================
--- trunk/pingus/src/screen/input_debug_screen.cpp 2008-07-09 03:01:05 UTC
(rev 3752)
+++ trunk/pingus/src/screen/input_debug_screen.cpp 2008-07-09 11:35:13 UTC
(rev 3753)
@@ -1,98 +0,0 @@
-// Pingus - A free Lemmings clone
-// Copyright (C) 2000 Ingo Ruhnke <address@hidden>
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
-
-#include <assert.h>
-#include <iostream>
-#include "../input/event.hpp"
-//#include "input/scroll_event.hpp"
-#include "input_debug_screen.hpp"
-
-
-using namespace Input;
-
-InputDebugScreen::InputDebugScreen ()
-{
-}
-
-InputDebugScreen::~InputDebugScreen ()
-{
-}
-
-/** Draw this screen */
-bool
-InputDebugScreen::draw (DrawingContext& gc)
-{
- std::cout << "InputDebugScreen::draw ()" << std::endl;
- CL_System::sleep(100);
- UNUSED_ARG(gc);
- return true;
-}
-
-/** Pass a delta to the screen */
-void
-InputDebugScreen::update (const GameDelta& delta)
-{
- std::cout << "InputDebugScreen::update (" << delta.get_time () << ")" <<
std::endl;
- for (Input::EventLst::const_iterator i = delta.get_events ().begin ();
- i != delta.get_events ().end ();
- ++i)
- {
- switch(i->type)
- {
- case ButtonEventType:
- std::cout << "InputDebugScreen: Button event : " << i->type <<
std::endl;
- break;
-
- case PointerEventType:
- std::cout << "InputDebugScreen: Pointer event : " << i->type <<
std::endl;
- break;
-
- case AxisEventType:
- std::cout << "InputDebugScreen: Axis event : " << i->type <<
std::endl;
-
- break;
- case ScrollEventType:
- {
- std::cout << "InputDebugScreen: Scroll event : "
- << i->scroll.x_delta << " " << i->scroll.y_delta <<
std::endl;
- }
- break;
-
- default:
- std::cout << "InputDebugScreen: Unknown event : " << i->type <<
std::endl;
- break;
- }
- }
-}
-
-/** Called once the screen gets activated and becomes the current
- screen */
-void
-InputDebugScreen::on_startup ()
-{
- std::cout << "InputDebugScreen::on_startup ()" << std::endl;
-}
-
-/** Called once the screen gets replaced or poped or shadowed by a
- newly pushed screen */
-void
-InputDebugScreen::on_shutdown ()
-{
- std::cout << "InputDebugScreen::on_shutdown ()" << std::endl;
-}
-
-
-/* EOF */
Deleted: trunk/pingus/src/screen/input_debug_screen.hpp
===================================================================
--- trunk/pingus/src/screen/input_debug_screen.hpp 2008-07-09 03:01:05 UTC
(rev 3752)
+++ trunk/pingus/src/screen/input_debug_screen.hpp 2008-07-09 11:35:13 UTC
(rev 3753)
@@ -1,49 +0,0 @@
-// Pingus - A free Lemmings clone
-// Copyright (C) 2000 Ingo Ruhnke <address@hidden>
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
-
-#ifndef HEADER_PINGUS_INPUT_DEBUG_SCREEN_HPP
-#define HEADER_PINGUS_INPUT_DEBUG_SCREEN_HPP
-
-#include "screen.hpp"
-
-
-class InputDebugScreen : public Screen
-{
-private:
-
-public:
- InputDebugScreen ();
- virtual ~InputDebugScreen ();
-
- /** Draw this screen */
- bool draw (DrawingContext& gc);
-
- /** Pass a delta to the screen */
- void update (const GameDelta& delta);
-
- /** Called once the screen gets activated and becomes the current
- screen */
- void on_startup ();
-
- /** Called once the screen gets replaced or poped or shadowed by a
- newly pushed screen */
- void on_shutdown ();
-};
-
-
-#endif
-
-/* EOF */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3753 - trunk/pingus/src/screen,
grumbel at BerliOS <=