#include <global.h>#include <stdio.h>#include <assert.h>

Go to the source code of this file.
Functions | |
| void | free_all_anim (void) |
| void | init_anim (void) |
| int | find_animation (const char *name) |
| int | try_find_animation (const char *name) |
| void | animate_object (object *op, int dir) |
| void | apply_anim_suffix (object *who, sstring suffix) |
Definition in file anim.c.
| void animate_object | ( | object * | op, | |
| int | dir | |||
| ) |
Updates the face-variable of an object. If the object is the head of a multi-object, all objects are animated. The object's state is not changed, but merely updated if needed (out of bounds of new animation, reached end of animation, ...)
| op | is the object to animate. | |
| dir | is the direction the object is facing. This is generally same as op->direction, but in some cases, op->facing is used instead - the caller has a better idea which one it really wants to be using, so let it pass along the right one. |
Definition at line 186 of file anim.c.


| int find_animation | ( | const char * | name | ) |
Finds the animation id that matches name. Will LOG() an error if not found.
| name | the animation's name. |
Definition at line 146 of file anim.c.


| void free_all_anim | ( | void | ) |
| void init_anim | ( | void | ) |
| int try_find_animation | ( | const char * | name | ) |
Tries to find the animation id that matches name, don't LOG() an error if not found.
| name | the animation's name. |
Definition at line 161 of file anim.c.

1.5.8