113 for (
size_t i = 0; i <
ARRAYSIZE(kAnimations); i++)
114 if (animation == kAnimations[i].animation)
129 for (
size_t i = 0; i <
ARRAYSIZE(kTalkAnimations); i++)
130 if (animation == kTalkAnimations[i].animation)
131 return kTalkAnimations[i].
name;
144 for (
size_t i = 0; i <
ARRAYSIZE(kAnimations); i++)
145 if (animation == kAnimations[i].animation)
159 for (
size_t i = 0; i <
ARRAYSIZE(kAnimations); i++)
160 if (animation == kAnimations[i].animation)
Common::UString getDoorAnimationName(Animation animation, bool alternate)
Return the name (as found in the models) of a specific door animation.
A class holding an UTF-8 string.
Common::UString getCreatureAnimationName(Animation animation, bool simple)
Return the name (as found in the models) of a specific creature animation.
Basic Neverwinter Nights type definitions.
#define ARRAYSIZE(x)
Macro which determines the number of entries in a fixed size array.
Utility templates and functions.
Alignment getAlignmentGoodEvil(uint8 goodEvil)
bool isAnimationLooping(Animation animation)
Return true if the specified animation allows looping.
Common::UString getPlaceableAnimationName(Animation animation)
Return the name (as found in the models) of a specific placeable animation.
Alignment getAlignmentLawChaos(uint8 lawChaos)
Common::UString getCreatureTalkAnimationName(TalkAnimation animation)
Return the name (as found in the models) of a specific creature talk animation.