(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h

This commit is contained in:
rubidium
2007-12-19 23:26:02 +00:00
parent d582aea639
commit 5b49e75453
74 changed files with 233 additions and 224 deletions

28
src/vehicle_type.h Normal file
View File

@@ -0,0 +1,28 @@
/* $Id$ */
/** @file vehicle_type.h Types related to vehicles. */
#ifndef VEHICLE_TYPE_H
#define VEHICLE_TYPE_H
#include "core/enum_type.hpp"
typedef uint16 VehicleID;
enum VehicleType {
VEH_TRAIN,
VEH_ROAD,
VEH_SHIP,
VEH_AIRCRAFT,
VEH_SPECIAL,
VEH_DISASTER,
VEH_END,
VEH_INVALID = 0xFF,
};
DECLARE_POSTFIX_INCREMENT(VehicleType);
template <> struct EnumPropsT<VehicleType> : MakeEnumPropsT<VehicleType, byte, VEH_TRAIN, VEH_END, VEH_INVALID> {};
typedef TinyEnumT<VehicleType> VehicleTypeByte;
struct Vehicle;
#endif /* VEHICLE_TYPE_H */