(svn r12458) -Codechange: split acquiring the sprite ID for cargos from the actual drawing of them.

This commit is contained in:
rubidium
2008-03-28 04:57:32 +00:00
parent 79f033c78f
commit d8cfb4f064
2 changed files with 21 additions and 12 deletions

View File

@@ -59,6 +59,8 @@ extern CargoSpec _cargo[NUM_CARGO];
void SetupCargoForClimate(LandscapeID l);
/* Retrieve cargo details for the given cargo ID */
const CargoSpec *GetCargo(CargoID c);
/* Get the cargo icon for a given cargo ID */
SpriteID GetCargoSprite(CargoID i);
/* Get the cargo ID with the cargo label */
CargoID GetCargoIDByLabel(CargoLabel cl);
CargoID GetCargoIDByBitnum(uint8 bitnum);