Open Source Tomb Raider Engine
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Console.h 601B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*!
  2. * \file include/Console.h
  3. * \brief Console 'overlay'
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _CONSOLE_H_
  8. #define _CONSOLE_H_
  9. #include "Window.h"
  10. /*!
  11. * \brief Console 'overlay'
  12. */
  13. class Console {
  14. public:
  15. /*!
  16. * \brief Constructs an object of Console
  17. */
  18. Console();
  19. /*!
  20. * \brief Deconstructs an object of Console
  21. */
  22. ~Console();
  23. void setVisible(bool visible);
  24. bool isVisible();
  25. void display();
  26. void handleKeyboard(KeyboardButton key, bool pressed);
  27. void handleText(char *text, bool notFinished);
  28. private:
  29. bool mVisible;
  30. };
  31. #endif