# newgrf_animation_type.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 #ifndef NEWGRF_ANIMATION_TYPE_H
    00013 #define NEWGRF_ANIMATION_TYPE_H
    00014
    00015 static const uint8 ANIM_STATUS_NON_LOOPING  = 0x00;
    00016 static const uint8 ANIM_STATUS_LOOPING      = 0x01;
    00017 static const uint8 ANIM_STATUS_NO_ANIMATION = 0xFF;
    00018
    00020 struct AnimationInfo {
    00021   uint8  frames;
    00022   uint8  status;
    00023   uint8  speed;
    00024   uint16 triggers;
    00025 };
    00026
    00028 enum StationAnimationTrigger {
    00029   SAT_BUILT,
    00030   SAT_NEW_CARGO,
    00031   SAT_CARGO_TAKEN,
    00032   SAT_TRAIN_ARRIVES,
    00033   SAT_TRAIN_DEPARTS,
    00034   SAT_TRAIN_LOADS,
    00035   SAT_250_TICKS,
    00036 };
    00037
    00039 enum IndustryAnimationTrigger {
    00040   IAT_CONSTRUCTION_STATE_CHANGE,
    00041   IAT_TILELOOP,
    00042   IAT_INDUSTRY_TICK,
    00043   IAT_INDUSTRY_RECEIVED_CARGO,
    00044   IAT_INDUSTRY_DISTRIBUTES_CARGO,
    00045 };
    00046
    00048 enum AirpAnimationTrigger {
    00049   AAT_BUILT,
    00050   AAT_TILELOOP,
    00051   AAT_STATION_NEW_CARGO,
    00052   AAT_STATION_CARGO_TAKEN,
    00053   AAT_STATION_250_TICKS,
    00054 };
    00055
    00057 enum ObjectAnimationTrigger {
    00058   OAT_BUILT,
    00059   OAT_TILELOOP,
    00060   OAT_256_TICKS,
    00061 };
    00062
    00063 #endif /* NEWGRF_ANIMATION_TYPE_H */