22 #ifndef WORLD_ACTORS_WEAPONOVERLAY_H 23 #define WORLD_ACTORS_WEAPONOVERLAY_H 25 #include "ultima/shared/std/containers.h" 37 unsigned int _dirCount;
55 unsigned int frame)
const {
56 if (type >= _overlay.size())
59 assert(direction != dir_invalid);
62 if (_overlay[type]._dirCount == 8)
63 diroff =
static_cast<uint32
>(direction) / 2;
65 diroff =
static_cast<uint32
>(direction);
67 if (diroff >= _overlay[type]._dirCount)
69 if (frame >= _overlay[type]._frames[diroff].size())
71 return &(_overlay[type]._frames[diroff][frame]);
const WeaponOverlayFrame * getFrame(unsigned int type, Direction direction, unsigned int frame) const
Definition: weapon_overlay.h:53
Definition: weapon_overlay.h:30
Definition: detection.h:27
Definition: weapon_overlay.h:36
Definition: containers.h:38
Definition: weapon_overlay.h:47