/src/org/mt4j/sceneManagement/SceneChangeEvent.java
http://mt4j.googlecode.com/ · Java · 68 lines · 17 code · 11 blank · 40 comment · 0 complexity · af4bf38998355dfb88ab86d5886688ba MD5 · raw file
- /***********************************************************************
- * mt4j Copyright (c) 2008 - 2009, C.Ruff, Fraunhofer-Gesellschaft All rights reserved.
- *
- * 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/>.
- *
- ***********************************************************************/
- package org.mt4j.sceneManagement;
-
- import org.mt4j.input.MTEvent;
-
- /**
- * The Class SceneChangeEvent.
- * @author Christopher Ruff
- */
- public class SceneChangeEvent extends MTEvent {
-
- /** The last scene. */
- private Iscene lastScene;
-
- /** The new scene. */
- private Iscene newScene;
-
-
- /**
- * Instantiates a new scene change event.
- *
- * @param source the source
- * @param lastScene the last scene
- * @param newScene the new scene
- */
- public SceneChangeEvent(Object source,Iscene lastScene, Iscene newScene) {
- super(source);
- this.lastScene = lastScene;
- this.newScene = newScene;
- }
-
-
- /**
- * Gets the last scene.
- *
- * @return the last scene
- */
- public Iscene getLastScene() {
- return lastScene;
- }
-
- /**
- * Gets the new scene.
- *
- * @return the new scene
- */
- public Iscene getNewScene() {
- return newScene;
- }
-
-
- }