Guest User

Untitled

a guest
Feb 3rd, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.29 KB | None | 0 0
  1. #ifndef STRUCTURES_GENERAL_H
  2. #define STRUCTURES_GENERAL_H
  3.  
  4. #include <QObject>
  5. #include <QList>
  6. #include <QByteArray>
  7. #include <QStringList>
  8. #include <QString>
  9. #include <QTimer>
  10.  
  11. enum Chat_type
  12. {
  13.     Chat_type_local = 0x01,
  14.     Chat_type_all = 0x02,
  15.     Chat_type_clan = 0x03,
  16.     Chat_type_aliance = 0x04,
  17.     Chat_type_pm = 0x06,
  18.     Chat_type_system = 0x07,
  19.     Chat_type_system_important = 0x08
  20. };
  21.  
  22. enum Player_type
  23. {
  24.     Player_type_normal = 0x01,
  25.     Player_type_premium = 0x02,
  26.     Player_type_gm = 0x03,
  27.     Player_type_dev = 0x04
  28. };
  29.  
  30. enum Orientation
  31. {
  32.     Orientation_top = 1,
  33.     Orientation_right = 2,
  34.     Orientation_bottom = 3,
  35.     Orientation_left = 4
  36. };
  37.  
  38. enum Direction
  39. {
  40.     Direction_look_at_top = 1,
  41.     Direction_look_at_right = 2,
  42.     Direction_look_at_bottom = 3,
  43.     Direction_look_at_left = 4,
  44.     Direction_move_at_top = 5,
  45.     Direction_move_at_right = 6,
  46.     Direction_move_at_bottom = 7,
  47.     Direction_move_at_left = 8
  48. };
  49.  
  50. struct map_management_insert
  51. {
  52.     quint32 id;
  53.     QString fileName;
  54.     quint16 x;
  55.     quint16 y;
  56.     Direction direction;//can be insert as direction when changing of map
  57. };
  58.  
  59. struct map_management_movement
  60. {
  61.     quint8 movedUnit;
  62.     Direction direction;
  63. };
  64.  
  65. struct map_management_move
  66. {
  67.     quint32 id;
  68.     QList<map_management_movement> movement_list;
  69. };
  70.  
  71. #endif // STRUCTURES_GENERAL_H
Advertisement
Add Comment
Please, Sign In to add comment