Files
@ r9464:ce84e83c962a
Branch filter:
Location: cpp/openttd-patchpack/source/src/engine_type.h - annotation
r9464:ce84e83c962a
3.9 KiB
text/x-c
(svn r13384) -Update: WebTranslator2 update to 2008-06-05 08:15:43
brazilian_portuguese - 9 fixed, 6 changed by tucalipe (15)
catalan - 9 fixed by arnaullv (9)
croatian - 13 fixed by knovak (13)
czech - 33 fixed by Hadez (33)
danish - 47 fixed by ThomasA (47)
dutch - 9 fixed by habell (9)
estonian - 42 fixed, 5 changed by kristjans (47)
finnish - 5 fixed, 1 changed by kerba (6)
french - 9 fixed, 2 changed by glx (8), belugas (3)
icelandic - 75 fixed by scrooge (75)
italian - 9 fixed, 12 changed by lorenzodv (21)
korean - 76 fixed, 15 changed by leejaeuk5 (91)
portuguese - 7 fixed by izhirahider (7)
romanian - 97 fixed, 302 changed by CrystyB (399)
russian - 12 fixed by Smoky555 (12)
spanish - 12 fixed by eusebio (12)
swedish - 13 fixed by ChrillDeVille (6), daishan (7)
turkish - 39 fixed, 1 changed by jnmbk (40)
ukrainian - 10 fixed by mad (10)
brazilian_portuguese - 9 fixed, 6 changed by tucalipe (15)
catalan - 9 fixed by arnaullv (9)
croatian - 13 fixed by knovak (13)
czech - 33 fixed by Hadez (33)
danish - 47 fixed by ThomasA (47)
dutch - 9 fixed by habell (9)
estonian - 42 fixed, 5 changed by kristjans (47)
finnish - 5 fixed, 1 changed by kerba (6)
french - 9 fixed, 2 changed by glx (8), belugas (3)
icelandic - 75 fixed by scrooge (75)
italian - 9 fixed, 12 changed by lorenzodv (21)
korean - 76 fixed, 15 changed by leejaeuk5 (91)
portuguese - 7 fixed by izhirahider (7)
romanian - 97 fixed, 302 changed by CrystyB (399)
russian - 12 fixed by Smoky555 (12)
spanish - 12 fixed by eusebio (12)
swedish - 13 fixed by ChrillDeVille (6), daishan (7)
turkish - 39 fixed, 1 changed by jnmbk (40)
ukrainian - 10 fixed by mad (10)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r9070:e059c65164f3 r9070:e059c65164f3 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 r8777:59b04e504aa5 | /* $Id$ */
/** @file engine_type.h Types related to engines. */
#ifndef ENGINE_TYPE_H
#define ENGINE_TYPE_H
#include "rail_type.h"
#include "cargo_type.h"
#include "vehicle_type.h"
#include "gfx_type.h"
#include "date_type.h"
#include "sound_type.h"
#include "player_type.h"
#include "strings_type.h"
typedef uint16 EngineID;
typedef uint16 EngineRenewID;
struct Engine;
enum RailVehicleTypes {
RAILVEH_SINGLEHEAD, ///< indicates a "standalone" locomotive
RAILVEH_MULTIHEAD, ///< indicates a combination of two locomotives
RAILVEH_WAGON, ///< simple wagon, not motorized
};
enum EngineClass {
EC_STEAM,
EC_DIESEL,
EC_ELECTRIC,
EC_MONORAIL,
EC_MAGLEV,
};
struct RailVehicleInfo {
byte image_index;
RailVehicleTypes railveh_type;
byte base_cost;
RailTypeByte railtype;
uint16 max_speed;
uint16 power;
uint16 weight;
byte running_cost;
byte running_cost_class;
EngineClass engclass; ///< Class of engine for this vehicle
byte capacity;
CargoID cargo_type;
byte ai_rank;
byte ai_passenger_only; ///< Bit value to tell AI that this engine is for passenger use only
uint16 pow_wag_power;
byte pow_wag_weight;
byte visual_effect; // NOTE: this is not 100% implemented yet, at the moment it is only used as a 'fallback' value
// for when the 'powered wagon' callback fails. But it should really also determine what
// kind of visual effect to generate for a vehicle (default, steam, diesel, electric).
// Same goes for the callback result, which atm is only used to check if a wagon is powered.
byte shorten_factor; ///< length on main map for this type is 8 - shorten_factor
byte tractive_effort; ///< Tractive effort coefficient
byte user_def_data; ///< Property 0x25: "User-defined bit mask" Used only for (very few) NewGRF vehicles
};
struct ShipVehicleInfo {
byte image_index;
byte base_cost;
uint16 max_speed;
CargoID cargo_type;
uint16 capacity;
byte running_cost;
SoundFxByte sfx;
bool refittable;
};
/* AircraftVehicleInfo subtypes, bitmask type.
* If bit 0 is 0 then it is a helicopter, otherwise it is a plane
* in which case bit 1 tells us whether it's a big(fast) plane or not */
enum {
AIR_HELI = 0,
AIR_CTOL = 1, ///< Conventional Take Off and Landing, i.e. planes
AIR_FAST = 2
};
struct AircraftVehicleInfo {
byte image_index;
byte base_cost;
byte running_cost;
byte subtype;
SoundFxByte sfx;
byte acceleration;
uint16 max_speed;
byte mail_capacity;
uint16 passenger_capacity;
};
struct RoadVehicleInfo {
byte image_index;
byte base_cost;
byte running_cost;
byte running_cost_class;
SoundFxByte sfx;
byte max_speed;
byte capacity;
CargoID cargo_type;
};
/** Information about a vehicle
* @see table/engines.h
*/
struct EngineInfo {
Date base_intro;
Year lifelength;
Year base_life;
byte unk2; ///< flag for carriage(bit 7) and decay speed(bits0..6)
byte load_amount;
byte climates;
uint32 refit_mask;
byte refit_cost;
byte misc_flags;
byte callbackmask;
int8 retire_early; ///< Number of years early to retire vehicle
StringID string_id; ///< Default name of engine
};
/**
* EngineInfo.misc_flags is a bitmask, with the following values
*/
enum {
EF_RAIL_TILTS = 0, ///< Rail vehicle tilts in curves
EF_ROAD_TRAM = 0, ///< Road vehicle is a tram/light rail vehicle
EF_USES_2CC = 1, ///< Vehicle uses two company colours
EF_RAIL_IS_MU = 2, ///< Rail vehicle is a multiple-unit (DMU/EMU)
};
/**
* Engine.flags is a bitmask, with the following values.
*/
enum {
ENGINE_AVAILABLE = 1, ///< This vehicle is available to everyone.
ENGINE_EXCLUSIVE_PREVIEW = 2, ///< This vehicle is in the exclusive preview stage, either being used or being offered to a player.
ENGINE_OFFER_WINDOW_OPEN = 4, ///< The exclusive offer window is currently open for a player.
};
enum {
NUM_VEHICLE_TYPES = 6
};
static const EngineID INVALID_ENGINE = 0xFFFF;
#endif /* ENGINE_TYPE_H */
|