global.hpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* License Notice:
  2. **
  3. ** This program is free software: you can redistribute it and/or modify
  4. ** it under the terms of the GNU General Public License as published by
  5. ** the Free Software Foundation, either version 3 of the License, or
  6. ** (at your option) any later version.
  7. ** This program is distributed in the hope that it will be useful,
  8. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. ** GNU General Public License for more details.
  11. ** You should have received a copy of the GNU General Public License
  12. ** along with this program. If not, see <https://www.gnu.org/licenses/>.
  13. */
  14. /**
  15. * @file global.hpp
  16. * @author TooOld2Rock'nRoll
  17. * @date 2024/12/03
  18. * @brief Holds generic information about the game.
  19. * @remarks What a terrible file name!
  20. */
  21. #ifndef _GLOBAL_HPP_
  22. #define _GLOBAL_HPP_
  23. /*---- Includes ----*/
  24. #include "event_manager.hpp"
  25. /*---- Enumerations ----*/
  26. extern "C" {
  27. /**
  28. * @brief These are the extended in game events list.
  29. */
  30. typedef enum _extended_game_event_id_e_
  31. {
  32. EV_CHARACTER_WALK_STEP = game_event_id_e::_game_event_id_max, ///<Signals (to the level) to play a stepping sound.
  33. EV_CHARACTER_RUN_STEP, ///<Signals (to the level) to play a running sound.
  34. EV_CHARACTER_LANDED, ///<Signals (to the level) to play a landing sound.
  35. _ex_game_event_id_max ///<Keeps track of the enum size
  36. } ex_game_event_id_e;//end game_event_id
  37. }//end extern "C"
  38. #endif //_GLOBAL_HPP_