diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-02-22 07:09:31 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-02-22 07:09:31 -0300 |
commit | b9d57b7ee57e79820c97c4d452c07972b73f3c7c (patch) | |
tree | 06a98c67240ee509b19d26ee54d8515f06f37230 /saedit/action.h | |
parent | a0c410d5ac8eeeeb4d7295c8f54931fa32664f4d (diff) | |
download | tools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.tar.gz tools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.tar.bz2 tools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.tar.xz tools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.zip |
Include saedit2
Diffstat (limited to 'saedit/action.h')
-rw-r--r-- | saedit/action.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/saedit/action.h b/saedit/action.h new file mode 100644 index 0000000..57da155 --- /dev/null +++ b/saedit/action.h @@ -0,0 +1,59 @@ +#ifndef ACTION_H +#define ACTION_H + +#include <glib.h> +#include "common.h" +#include "imageset.h" +#include "animation.h" +#include "xml.h" + +typedef struct { + gchar *name; + gint hp; + GList *animations; +} Action; + +void +action_free (Action *action); + +gint +action_compare_by_hp_and_name ( + const Action *first, + const Action *second +); + +gboolean +action_hp_and_name_equals ( + const Action *action, + gint hp, + const gchar *name +); + +void +action_add_animation ( + Action *action, + const Imageset *imageset, + const XMLNode *node, + gint included_from +); + +const Animation * +action_get_animation ( + const Action *action, + const gchar *direction +); + +void +action_get_hp_and_name ( + const Action *action, + gint *hp, + gchar **name +); + +GList * +action_get_directions (const Action *action); + +gchar * +get_action_id (gint hp, const gchar *name); + +#endif |