summaryrefslogtreecommitdiff
path: root/saedit/action.h
diff options
context:
space:
mode:
authorMicksha <ms-shaman@gmx.de>2019-04-13 19:55:05 +0000
committerMicksha <ms-shaman@gmx.de>2019-04-13 19:55:05 +0000
commitadd8a9e8bc83fbf022c66001f2150d90a6f234ab (patch)
treeb771ad105e5a73733ede7559e22467f13a2880a8 /saedit/action.h
parent8c75e651f00048dda32db85b2bff34e131960864 (diff)
parent168ad9d6c730e93d76c801da607df84355187a39 (diff)
downloadevol-tools-s20190422.tar.gz
evol-tools-s20190422.tar.bz2
evol-tools-s20190422.tar.xz
evol-tools-s20190422.zip
Merge branch 'saedit' into 'master's20190422
update saedit to saedit2 See merge request evol/evol-tools!23
Diffstat (limited to 'saedit/action.h')
-rw-r--r--saedit/action.h59
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