Loading

Paste #pbdvkb8pg

  1. Index: src/table/roadtypes.h
  2. ===================================================================
  3. --- src/table/roadtypes.h   (nonexistent)
  4. +++ src/table/roadtypes.h   (working copy)
  5. @@ -0,0 +1,142 @@
  6. +/* $Id$ */
  7. +
  8. +/*
  9. + * This file is part of OpenTTD.
  10. + * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
  11. + * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. + * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
  13. + */
  14. +
  15. +/**
  16. + * @file roadtypes.h
  17. + * All the roadtype-specific information is stored here.
  18. + */
  19. +
  20. +#ifndef ROADTYPES_H
  21. +#define ROADTYPES_H
  22. +
  23. +/**
  24. + * Global Roadtype definition
  25. + */
  26. +static const RoadtypeInfo _original_roadtypes[] = {
  27. +   /** Road */
  28. +   {
  29. +       {
  30. +           STR_ROAD_NAME_ROAD,
  31. +           STR_ROAD_TOOLBAR_ROAD_CONSTRUCTION_CAPTION,
  32. +           STR_ROAD_MENU_ROAD_CONSTRUCTION,
  33. +           STR_BUY_VEHICLE_ROAD_VEHICLE_CAPTION,
  34. +           STR_REPLACE_VEHICLE_ROAD_VEHICLE,
  35. +           STR_ENGINE_PREVIEW_ROAD_VEHICLE,
  36. +       },
  37. +
  38. +       /* Powered roadtypes */
  39. +       ROADTYPES_ROAD | ROADTYPES_TRAM,
  40. +
  41. +       /* Compatible roadtypes */
  42. +       ROADTYPES_ROAD,
  43. +
  44. +       /* bridge offset */
  45. +       0,
  46. +
  47. +       /* fallback_roadtype */
  48. +       0,
  49. +
  50. +       /* curve speed advantage (multiplier) */
  51. +       0,
  52. +
  53. +       /* flags */
  54. +       ROTFB_NONE,
  55. +
  56. +       /* cost multiplier */
  57. +       8,
  58. +
  59. +       /* maintenance cost multiplier */
  60. +       8,
  61. +
  62. +       /* max speed */
  63. +       0,
  64. +
  65. +       /* road type label */
  66. +       'ROAD',
  67. +
  68. +       /* alternate labels */
  69. +       RoadTypeLabelList(),
  70. +
  71. +       /* map colour */
  72. +       0x0A,
  73. +
  74. +       /* introduction date */
  75. +       INVALID_DATE,
  76. +
  77. +       /* roadtypes required for this to be introduced */
  78. +       ROADTYPES_NONE,
  79. +
  80. +       /* introduction road types */
  81. +       ROADTYPES_ROAD,
  82. +
  83. +       /* sort order */
  84. +       0 << 4 | 7,
  85. +   },
  86. +   /** Tram */
  87. +   {
  88. +       {
  89. +           STR_ROAD_NAME_TRAM,
  90. +           STR_ROAD_TOOLBAR_TRAM_CONSTRUCTION_CAPTION,
  91. +           STR_ROAD_MENU_TRAM_CONSTRUCTION,
  92. +           STR_BUY_VEHICLE_ROAD_VEHICLE_CAPTION,
  93. +           STR_REPLACE_VEHICLE_ROAD_VEHICLE,
  94. +           STR_ENGINE_PREVIEW_ROAD_VEHICLE,
  95. +       },
  96. +
  97. +       /* Powered roadtypes */
  98. +       ROADTYPES_ROAD | ROADTYPES_TRAM,
  99. +
  100. +       /* Compatible roadtypes */
  101. +       ROADTYPES_TRAM,
  102. +
  103. +       /* bridge offset */
  104. +       0,
  105. +
  106. +       /* fallback_roadtype */
  107. +       0,
  108. +
  109. +       /* curve speed advantage (multiplier) */
  110. +       0,
  111. +
  112. +       /* flags */
  113. +       ROTFB_NONE,
  114. +
  115. +       /* cost multiplier */
  116. +       8,
  117. +
  118. +       /* maintenance cost multiplier */
  119. +       8,
  120. +
  121. +       /* max speed */
  122. +       0,
  123. +
  124. +       /* road type label */
  125. +       'TRAM',
  126. +
  127. +       /* alternate labels */
  128. +       RoadTypeLabelList(),
  129. +
  130. +       /* map colour */
  131. +       0x0A,
  132. +
  133. +       /* introduction date */
  134. +       INVALID_DATE,
  135. +
  136. +       /* roadtypes required for this to be introduced */
  137. +       ROADTYPES_NONE,
  138. +
  139. +       /* introduction road types */
  140. +       ROADTYPES_TRAM,
  141. +
  142. +       /* sort order */
  143. +       1 << 4 | 7,
  144. +   },
  145. +};
  146. +
  147. +#endif /* ROADTYPES_H */

Comments