sprite.h
changeset 3745 6ffecfbc2aae
parent 3664 4f810b1ea216
child 3865 b80b50f14fcd
equal deleted inserted replaced
3744:6f0d9e0fc2d9 3745:6ffecfbc2aae
    43 
    43 
    44 // XXX Temporary include while juggling about
    44 // XXX Temporary include while juggling about
    45 #include "newgrf_spritegroup.h"
    45 #include "newgrf_spritegroup.h"
    46 
    46 
    47 
    47 
    48 /* This takes value (probably of the variable specified in the group) and
       
    49  * chooses corresponding SpriteGroup accordingly to the given
       
    50  * DeterministicSpriteGroup. */
       
    51 SpriteGroup *EvalDeterministicSpriteGroup(const DeterministicSpriteGroup *dsg, int value);
       
    52 /* Get value of a common deterministic SpriteGroup variable. */
       
    53 int GetDeterministicSpriteValue(byte var);
       
    54 
       
    55 /* This takes randomized bitmask (probably associated with
       
    56  * vehicle/station/whatever) and chooses corresponding SpriteGroup
       
    57  * accordingly to the given RandomizedSpriteGroup. */
       
    58 SpriteGroup *EvalRandomizedSpriteGroup(const RandomizedSpriteGroup *rsg, byte random_bits);
       
    59 /* Triggers given RandomizedSpriteGroup with given bitmask and returns and-mask
       
    60  * of random bits to be reseeded, or zero if there were no triggers matched
       
    61  * (then they are |ed to @waiting_triggers instead). */
       
    62 byte RandomizedSpriteGroupTriggeredBits(const RandomizedSpriteGroup *rsg, byte triggers, byte *waiting_triggers);
       
    63 
       
    64 #endif /* SPRITE_H */
    48 #endif /* SPRITE_H */