| 1 | /** |
| 2 | * @file |
| 3 | * Face-related structures. |
| 4 | */ |
| 5 | |
| 6 | #ifndef FACE_H |
| 7 | #define FACE_H |
| 8 | |
| 9 | /** |
| 10 | * New face structure - this enforces the notion that data is face by |
| 11 | * face only - you can not change the color of an item - you need to instead |
| 12 | * create a new face with that color. |
| 13 | */ |
| 14 | typedef struct Face { |
| 15 | uint16_t number; /**< This is the image unique identifier. */ |
| 16 | uint8_t visibility; |
| 17 | uint8_t magicmap; /**< Color to show this in magic map */ |
| 18 | struct Face *smoothface; /**< Smoothed face for this, NULL for none. */ |
| 19 | const char *name; /**< Face name, as used by archetypes and such. */ |
| 20 | } Face; |
| 21 | |
| 22 | /** |
| 23 | * This represents one animation. It points to different faces. |
| 24 | */ |
| 25 | typedef struct animations_struct { |
| 26 | const char *name; /**< Name of the animation sequence. */ |
| 27 | uint8_t num_animations; /**< How many different faces to animate, size of the faces array. */ |
| 28 | uint8_t facings; /**< How many facings (1,2,4,8). */ |
| 29 | uint16_t num; /**< Where we are in the array. */ |
| 30 | const Face **faces; /**< The actual faces for the animation. */ |
| 31 | } Animations; |
| 32 | |
| 33 | #endif /* FACE_H */ |