newgrf_cargo.h

Go to the documentation of this file.
00001 /* $Id: newgrf_cargo.h 17976 2009-11-05 19:46:17Z frosch $ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
00006  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
00008  */
00009 
00012 #ifndef NEWGRF_CARGO_H
00013 #define NEWGRF_CARGO_H
00014 
00015 #include "newgrf_callbacks.h"
00016 #include "cargo_type.h"
00017 #include "gfx_type.h"
00018 
00019 static const CargoID CT_DEFAULT      = NUM_CARGO + 0;
00020 static const CargoID CT_PURCHASE     = NUM_CARGO + 1;
00021 static const CargoID CT_DEFAULT_NA   = NUM_CARGO + 2;
00022 
00023 /* Forward declarations of structs used */
00024 struct CargoSpec;
00025 struct GRFFile;
00026 
00027 SpriteID GetCustomCargoSprite(const CargoSpec *cs);
00028 uint16 GetCargoCallback(CallbackID callback, uint32 param1, uint32 param2, const CargoSpec *cs);
00029 CargoID GetCargoTranslation(uint8 cargo, const GRFFile *grffile, bool usebit = false);
00030 uint8 GetReverseCargoTranslation(CargoID cargo, const GRFFile *grffile);
00031 
00032 #endif /* NEWGRF_CARGO_H */

Generated on Thu Feb 4 17:20:25 2010 for OpenTTD by  doxygen 1.5.6