definitions.hpp.bu 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #ifndef _definitions_
  2. #define _definitions_
  3. //MAIN LIBRARIES INCLUDES
  4. #include <cstdlib>
  5. #include <ctime>
  6. #include <fstream>
  7. #include <sstream>
  8. #include <algorithm>
  9. #include <iostream>
  10. #include <iomanip>
  11. #include <list>
  12. #include <vector>
  13. #include <cmath>
  14. //#include <unistd.h>
  15. #include <pthread.h>
  16. #include <ncurses.h>
  17. //GAME BOX DIMENSIONS
  18. #define R 30 //rows (Y)
  19. #define C 60 //columns (X)
  20. //GAME DEFINES
  21. #define AVERAGE_DROP 2
  22. #define POWERUP_RATIO 2
  23. #define ROCKET_RATIO 3
  24. #define MAX_WEAPONCLASS 5
  25. #define MAX_WEAPONCLASSRKT 5
  26. #define MAX_LENGTH 20
  27. #ifdef R
  28. #define MAX_WIDTH R
  29. #endif
  30. #ifdef C
  31. #define MAX_HEIGHT C
  32. #endif
  33. #define CHEAT_CODE "pinkie"
  34. #define BOSS_FILE1 "myboss"
  35. #define BOSS_FILE2 "palombo"
  36. #define BOSS_FILE3 "maderna"
  37. #define BOSS_FILE4 "maero"
  38. #define BOSS_FILE5 "big_alienboss"
  39. #define PLAYER_SPRITE '='
  40. #define ENEMY_SPRITE '#'
  41. #define BULLET_SPRITE '|'
  42. #define BOMB_SPRITE 'o'
  43. #define POWERUP1_SPRITE '+'
  44. #define POWERUP2_SPRITE '-'
  45. #define POWERUP3_SPRITE 'X'
  46. #define WALL_SPRITE '@'
  47. #define ROCKET_SPRITE '^'
  48. //THREAD DEFINES
  49. #define THREADS_NUM 5
  50. //COLORS
  51. #define red "\033[31m"
  52. #define crimson "\033[1;31m"
  53. #define magenta "\033[35m"
  54. #define violet "\033[1;35m"
  55. #define green "\033[32m"
  56. #define lightgreen "\033[1;32m"
  57. #define blue "\033[34m"
  58. #define lightblue "\033[1;34m"
  59. #define none "\033[0m"
  60. #define yellow "\033[33m"
  61. #define orange "\033[1;33m"
  62. #define cyan "\033[36m"
  63. #define azure "\033[1;36m"
  64. #define grey "\e[1;30m"
  65. #define backred "\033[41m"
  66. #define backcyan "\033[46m"
  67. #define backgreen "\033[1;42m"
  68. static int ENEMY_NUM=40;
  69. static int WALLS_NUM;
  70. #endif