vehicle_type.h File Reference

Types related to vehicles. More...

#include "core/enum_type.hpp"

Go to the source code of this file.

Data Structures

struct  EnumPropsT< VehicleType >
struct  BaseVehicle
 Base vehicle class. More...

Typedefs

typedef uint32 VehicleID
typedef SimpleTinyEnumT
< VehicleType, byte > 
VehicleTypeByte
 It needs to be 8bits, because we save and load it as such.

Enumerations

enum  VehicleType {
  VEH_TRAIN, VEH_ROAD, VEH_SHIP, VEH_AIRCRAFT,
  VEH_EFFECT, VEH_DISASTER, VEH_END, VEH_INVALID = 0xFF
}
 

Available vehicle types.

More...
enum  VehiclePathFinders { VPF_OPF = 0, VPF_NPF = 1, VPF_YAPF = 2 }
 

Pathfinding option states.

More...
enum  DepotCommand {
  DEPOT_SERVICE = (1U << 28), DEPOT_MASS_SEND = (1U << 29), DEPOT_DONT_CANCEL = (1U << 30), DEPOT_LOCATE_HANGAR = (1U << 31),
  DEPOT_COMMAND_MASK = 0xFU << 28
}
 

Flags to add to p1 for goto depot commands.

More...
enum  AccelerationModel { AM_ORIGINAL, AM_REALISTIC }
 

Vehicle acceleration models.

More...

Variables

static const VehicleID INVALID_VEHICLE = 0xFFFFF
 Constant representing a non-existing vehicle.
static const uint MAX_LENGTH_VEHICLE_NAME_CHARS = 32
 The maximum length of a vehicle name in characters including ''.
static const uint MAX_LENGTH_VEHICLE_NAME_PIXELS = 150
 The maximum length of a vehicle name in pixels.

Detailed Description

Types related to vehicles.

Definition in file vehicle_type.h.


Enumeration Type Documentation

Vehicle acceleration models.

Definition at line 71 of file vehicle_type.h.

Flags to add to p1 for goto depot commands.

Enumerator:
DEPOT_SERVICE 

The vehicle will leave the depot right after arrival (serivce only).

DEPOT_MASS_SEND 

Tells that it's a mass send to depot command (type in VLW flag).

DEPOT_DONT_CANCEL 

Don't cancel current goto depot command if any.

DEPOT_LOCATE_HANGAR 

Find another airport if the target one lacks a hangar.

Definition at line 59 of file vehicle_type.h.

Pathfinding option states.

Enumerator:
VPF_OPF 

The Original PathFinder (only for ships).

VPF_NPF 

New PathFinder.

VPF_YAPF 

Yet Another PathFinder.

Definition at line 52 of file vehicle_type.h.

Available vehicle types.

Enumerator:
VEH_TRAIN 

Train vehicle type.

VEH_ROAD 

Road vehicle type.

VEH_SHIP 

Ship vehicle type.

VEH_AIRCRAFT 

Aircraft vehicle type.

VEH_EFFECT 

Effect vehicle type (smoke, explosions, sparks, bubbles).

VEH_DISASTER 

Disaster vehicle type.

VEH_INVALID 

Non-existing type of vehicle.

Definition at line 20 of file vehicle_type.h.


Generated on Sun Jan 23 01:49:40 2011 for OpenTTD by  doxygen 1.6.1