constants.c 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /**
  2. * \defgroup Constants Constants
  3. * \desc static script constants
  4. * @{
  5. */
  6. /**
  7. * \defgroup InputDevice InputDevice
  8. * \desc constants for input device - inputInterfaceDef.h
  9. * @{
  10. */
  11. const int INPUT_MODULE_TYPE_MASK = 0x00700000;
  12. const int INPUT_KEY_MASK = 0x000000ff;
  13. const int INPUT_ACTION_TYPE_MASK = 0x00000f00;
  14. const int INPUT_AXIS = 0x00010000;
  15. const int INPUT_POV = 0x00020000;
  16. const int INPUT_COMBO_MASK = 0xff000000;
  17. const int INPUT_COMBO_AXIS = 0x00800000;
  18. const int INPUT_COMBO_AXIS_OFFSET = 0x00000080;
  19. const int INPUT_COMBO_KEY_OFFSET = 0x01000000;
  20. const int INPUT_DEVICE_KEYBOARD = 0x00000000;
  21. const int INPUT_DEVICE_MOUSE = 0x00100000; // mouse button
  22. const int INPUT_DEVICE_STICK = 0x00200000;
  23. const int INPUT_DEVICE_XINPUT = 0x00300000; // XInput device
  24. const int INPUT_DEVICE_TRACKIR = 0x00400000;
  25. const int INPUT_DEVICE_GAMEPAD = 0x00500000;
  26. const int INPUT_DEVICE_CHEAT = 0x00600000;
  27. const int INPUT_ACTION_TYPE_NONE = 0x00000000;
  28. const int INPUT_ACTION_TYPE_STATE = 0x00000100;
  29. const int INPUT_ACTION_TYPE_DOWN_EVENT = 0x00000200;
  30. const int INPUT_ACTION_TYPE_UP_EVENT = 0x00000300;
  31. const int INPUT_ACTION_TYPE_SHORTCLICK_EVENT= 0x00000400;
  32. const int INPUT_ACTION_TYPE_HOLD_EVENT = 0x00000500;
  33. const int INPUT_ACTION_TYPE_COMBO = 0x00002000;
  34. const int INPUT_ACTION_TYPE_SPECIALCOMBO = 0x00004000;
  35. const int INPUT_ACTION_TYPE_DOUBLETAP = 0x00008000;
  36. const int INPUT_DEVICE_MOUSE_AXIS = (INPUT_DEVICE_MOUSE | INPUT_AXIS);
  37. const int INPUT_DEVICE_STICK_AXIS = (INPUT_DEVICE_STICK | INPUT_AXIS);
  38. const int INPUT_DEVICE_STICK_POV = (INPUT_DEVICE_STICK | INPUT_POV);
  39. const int INPUT_DEVICE_GAMEPAD_AXIS = (INPUT_DEVICE_GAMEPAD | INPUT_AXIS);
  40. /** @}*/
  41. /**
  42. * \defgroup StringConstants String constants
  43. * \desc String constants
  44. * @{
  45. */
  46. const string STRING_EMPTY = "";
  47. /** @}*/
  48. /**
  49. * \defgroup Colors Colors
  50. * @{
  51. */
  52. const int COLOR_WHITE = 0xFFFFFFFF;
  53. const int COLOR_RED = 0xFFF22613;
  54. const int COLOR_GREEN = 0xFF2ECC71;
  55. const int COLOR_BLUE = 0xFF4B77BE;
  56. const int COLOR_YELLOW = 0xFFF7CA18;
  57. const int COLOR_RED_A = 0x1fF22613;
  58. const int COLOR_GREEN_A = 0x1f2ECC71;
  59. const int COLOR_BLUE_A = 0x1f4B77BE;
  60. const int COLOR_YELLOW_A = 0x1fF7CA18;
  61. /** @}*/
  62. /**
  63. * \defgroup Materials Materials
  64. * @{
  65. */
  66. /****************************************************************************
  67. * MATERIALS LIST
  68. *
  69. * Note: If you add new materials here, don't forget to add physics
  70. * parameters to them in physics/materials.xml
  71. ***************************************************************************/
  72. const int MATERIAL_DEFAULT = 0;
  73. const int MATERIAL_METAL = 1; //full steel
  74. const int MATERIAL_IRON = 2; //iron
  75. const int MATERIAL_GLASS = 3; //glass pane
  76. const int MATERIAL_PLASTIC = 4; //plastic object
  77. const int MATERIAL_LIQUID = 5; //liquids, water
  78. const int MATERIAL_SLIME = 6; //slime, oil etc
  79. const int MATERIAL_BETON = 7; //concrete
  80. const int MATERIAL_RUBBER = 8; //rubber, linoeum
  81. const int MATERIAL_FLESH = 9; //flesh, humanoids
  82. const int MATERIAL_GRASS = 10; //grass
  83. const int MATERIAL_WOOD = 11; //wood
  84. const int MATERIAL_SNOW = 12; //snow
  85. const int MATERIAL_SAND = 13; //soft sand
  86. const int MATERIAL_DIRT = 14; //super-soft dirt
  87. const int MATERIAL_GRAVEL = 15; //gravel
  88. const int MATERIAL_STONE = 16; //rocks, cliffs
  89. /** @}*/