author | KUDr |
Sat, 21 Apr 2007 08:23:57 +0000 | |
branch | cpp_gui |
changeset 6308 | 646711c5feaa |
parent 6307 | f40e88cff863 |
permissions | -rw-r--r-- |
3866
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
1 |
/* $Id$ */ |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
2 |
|
6303 | 3 |
/** @file newgrf_cargo.h */ |
4 |
||
3866
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
5 |
#ifndef NEWGRF_CARGO_H |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
6 |
#define NEWGRF_CARGO_H |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
7 |
|
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
8 |
enum { |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
9 |
CC_NOAVAILABLE = 0, |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
10 |
CC_PASSENGERS = 1 << 0, |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
11 |
CC_MAIL = 1 << 1, |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
12 |
CC_EXPRESS = 1 << 2, |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
13 |
CC_ARMOURED = 1 << 3, |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
14 |
CC_BULK = 1 << 4, |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
15 |
CC_PIECE_GOODS = 1 << 5, |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
16 |
CC_LIQUID = 1 << 6, |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
17 |
CC_REFRIGERATED = 1 << 7, |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
18 |
}; |
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
19 |
|
6268
4b5241e5dd10
(svn r8938) [cpp_gui] -Sync with trunk (r8772..r8900)
bjarni
parents:
5798
diff
changeset
|
20 |
static const CargoID CT_DEFAULT = NUM_CARGO + 0; |
4b5241e5dd10
(svn r8938) [cpp_gui] -Sync with trunk (r8772..r8900)
bjarni
parents:
5798
diff
changeset
|
21 |
static const CargoID CT_PURCHASE = NUM_CARGO + 1; |
4b5241e5dd10
(svn r8938) [cpp_gui] -Sync with trunk (r8772..r8900)
bjarni
parents:
5798
diff
changeset
|
22 |
static const CargoID CT_DEFAULT_NA = NUM_CARGO + 2; |
3866
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
23 |
|
6307 | 24 |
/* Forward declarations of structs used */ |
6303 | 25 |
struct CargoSpec; |
6307 | 26 |
struct GRFFile; |
6303 | 27 |
|
28 |
SpriteID GetCustomCargoSprite(const CargoSpec *cs); |
|
29 |
uint16 GetCargoCallback(uint16 callback, uint32 param1, uint32 param2, const CargoSpec *cs); |
|
6307 | 30 |
CargoID GetCargoTranslation(uint8 cargo, const GRFFile *grffile); |
6303 | 31 |
|
3866
113de2b20059
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
belugas
parents:
diff
changeset
|
32 |
#endif /* NEWGRF_CARGO_H */ |