train_cmd.h

Go to the documentation of this file.
00001 /* $Id$ */
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 static const SpriteID _engine_sprite_base[] = {
00013 0x0B59, 0x0B61, 0x0B69, 0x0BE1, 0x0B71, 0x0B75, 0x0B7D, 0x0B7D,
00014 0x0B85, 0x0B85, 0x0B8D, 0x0B8D, 0x0BC9, 0x0BD1, 0x0BD9, 0x0BE9,
00015 0x0BED, 0x0BED, 0x0BF5, 0x0BF9, 0x0B79, 0x0B9D, 0x0B9D, 0x0B95,
00016 0x0B95, 0x0BA5, 0x0BA9, 0x0BA9, 0x0BC1, 0x0BC5, 0x0BB1, 0x0BB9,
00017 0x0BB9, 0x0AAD, 0x0AB1, 0x0AB5, 0x0AB9, 0x0ABD, 0x0AC1, 0x0AC9,
00018 0x0ACD, 0x0AD5, 0x0AD1, 0x0AD9, 0x0AC5, 0x0AD1, 0x0AD5, 0x0AF9,
00019 0x0AFD, 0x0B05, 0x0AB9, 0x0AC1, 0x0AC9, 0x0AD1, 0x0AD9, 0x0AE1,
00020 0x0AE5, 0x0AE9, 0x0AF1, 0x0AF9, 0x0B0D, 0x0B11, 0x0B15, 0x0B19,
00021 0x0B1D, 0x0B21, 0x0B29, 0x0B2D, 0x0B35, 0x0B31, 0x0B39, 0x0B25,
00022 0x0B31, 0x0B35,
00023 };
00024 
00025 /* For how many directions do we have sprites? (8 or 4; if 4, the other 4
00026  * directions are symmetric. */
00027 static const byte _engine_sprite_and[] = {
00028 7, 7, 7, 7, 3, 3, 7, 7,
00029 7, 7, 7, 7, 7, 7, 7, 3,
00030 7, 7, 3, 7, 3, 7, 7, 7,
00031 7, 3, 7, 7, 3, 3, 7, 7,
00032 7, 3, 3, 3, 3, 3, 3, 3,
00033 3, 3, 3, 3, 3, 3, 3, 3,
00034 3, 3, 3, 3, 3, 3, 3, 3,
00035 3, 3, 3, 3, 3, 3, 3, 3,
00036 3, 3, 3, 3, 3, 3, 3, 3,
00037 3, 3,
00038 };
00039 
00040 /* Non-zero for multihead trains. */
00041 static const byte _engine_sprite_add[] = {
00042 0, 0, 0, 0, 0, 0, 0, 4,
00043 0, 4, 0, 4, 0, 0, 0, 0,
00044 0, 4, 0, 0, 0, 0, 4, 0,
00045 4, 0, 0, 4, 0, 0, 0, 0,
00046 4, 0, 0, 0, 0, 0, 0, 0,
00047 0, 0, 0, 0, 0, 0, 0, 0,
00048 0, 0, 0, 0, 0, 0, 0, 0,
00049 0, 0, 0, 0, 0, 0, 0, 0,
00050 0, 0, 0, 0, 0, 0, 0, 0,
00051 0, 0,
00052 };
00053 
00054 
00055 static const byte _wagon_full_adder[] = {
00056    0,  0,  0,  0,  0,  0,  0,  0,
00057    0,  0,  0,  0,  0,  0,  0,  0,
00058    0,  0,  0,  0,  0,  0,  0,  0,
00059    0,  0,  0,  0,  0,  0,  0,  0,
00060    0,  0, 44,  0,  0,  0,  0, 24,
00061   24, 24, 24,  0,  0, 32, 32,  0,
00062    4,  4,  4,  4,  4,  4,  4,  0,
00063    0,  4,  4,  4,  0, 44,  0,  0,
00064    0,  0, 24, 24, 24, 24,  0,  0,
00065   32, 32
00066 };

Generated on Sat Dec 26 20:06:06 2009 for OpenTTD by  doxygen 1.5.6