sequence.hpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // SuperTux
  2. // Copyright (C) 2016 Hume2 <teratux.mail@gmail.com>
  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. #ifndef HEADER_SUPERTUX_SUPERTUX_SEQUENCE_HPP
  17. #define HEADER_SUPERTUX_SUPERTUX_SEQUENCE_HPP
  18. #include <string>
  19. enum Sequence {
  20. SEQ_ENDSEQUENCE,
  21. SEQ_STOPTUX,
  22. SEQ_FIREWORKS
  23. };
  24. enum TilemapFadeType {
  25. FADE_IN = 0,
  26. FADE_OUT = 1
  27. };
  28. struct SequenceData {
  29. SequenceData(const std::string& spawnpoint_, const std::string& fade_tilemap_, TilemapFadeType& fade_type_) :
  30. spawnpoint(spawnpoint_),
  31. fade_tilemap(fade_tilemap_),
  32. fade_type(fade_type_)
  33. {
  34. }
  35. const std::string& spawnpoint;
  36. const std::string& fade_tilemap;
  37. const TilemapFadeType& fade_type;
  38. };
  39. Sequence string_to_sequence(const std::string& sequencename);
  40. std::string sequence_to_string(const Sequence& seq);
  41. #endif
  42. /* EOF */