/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

  1. /***********************************************************************
  2. * mt4j Copyright (c) 2008 - 2009, C.Ruff, Fraunhofer-Gesellschaft All rights reserved.
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. *
  17. ***********************************************************************/
  18. package org.mt4j.sceneManagement;
  19. import org.mt4j.input.MTEvent;
  20. /**
  21. * The Class SceneChangeEvent.
  22. * @author Christopher Ruff
  23. */
  24. public class SceneChangeEvent extends MTEvent {
  25. /** The last scene. */
  26. private Iscene lastScene;
  27. /** The new scene. */
  28. private Iscene newScene;
  29. /**
  30. * Instantiates a new scene change event.
  31. *
  32. * @param source the source
  33. * @param lastScene the last scene
  34. * @param newScene the new scene
  35. */
  36. public SceneChangeEvent(Object source,Iscene lastScene, Iscene newScene) {
  37. super(source);
  38. this.lastScene = lastScene;
  39. this.newScene = newScene;
  40. }
  41. /**
  42. * Gets the last scene.
  43. *
  44. * @return the last scene
  45. */
  46. public Iscene getLastScene() {
  47. return lastScene;
  48. }
  49. /**
  50. * Gets the new scene.
  51. *
  52. * @return the new scene
  53. */
  54. public Iscene getNewScene() {
  55. return newScene;
  56. }
  57. }