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/interactor.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/interactor.h')
-rw-r--r-- | saedit/interactor.h | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/saedit/interactor.h b/saedit/interactor.h new file mode 100644 index 0000000..5d0ddfc --- /dev/null +++ b/saedit/interactor.h @@ -0,0 +1,110 @@ +#ifndef _INTERACTOR_H_ +#define _INTERACTOR_H_ + +#include "context.h" + +typedef struct _Interactor Interactor; + +Interactor * +interactor_new ( + const SpriteContext *context +); + +gboolean +interactor_set_action ( + Interactor *interactor, + gint hp, + const gchar *name +); + +gboolean +interactor_reset_animation ( + Interactor *interactor +); + +gboolean +interactor_set_direction ( + Interactor *interactor, + const gchar *direction +); + +gboolean +interactor_play ( + Interactor *interactor, + gint time +); + +const GdkPixbuf * +interactor_get_sprite (const Interactor *interactor); + +void +interactor_loop_start ( + Interactor *interactor, + const guint interval, + const guint tick_length +); + +gboolean +interactor_loop_stop (Interactor *interactor); + +void +interactor_free (Interactor *interactor); + +void +interactor_free_with_repeaters (Interactor *interactor); + +typedef void +(*InteractionUpdatedFunc) (Interactor *interactor); + +void +interactor_set_updated_callback ( + Interactor *interactor, + InteractionUpdatedFunc callback +); + +void +interactor_get_offset ( + const Interactor *interactor, + gint *offsetX, + gint *offsetY +); + +gint +interactor_get_line_no ( + Interactor *interactor +); + +const gchar * +interactor_get_animation_direction ( + const Interactor *interactor +); + +const gchar * +interactor_get_direction ( + const Interactor *interactor +); + +gboolean +interactor_get_action_hp_and_name ( + const Interactor *interactor, + gint *hp, + gchar **name +); + +gboolean +interactor_loop_running ( + const Interactor *interactor +); + +void +interactor_skip_current_frame ( + Interactor *interactor +); + +void +interactor_add_repeater ( + Interactor *interactor, + Interactor *repeater +); + +#endif |