Got the suite rebuilding, most tests pass, actor and sprite are failing
This commit is contained in:
@@ -11,21 +11,21 @@ typedef struct character {
|
||||
int refcount;
|
||||
char name[SPRITE_MAX_CHARACTER_NAME_LENGTH];
|
||||
SDL_PropertiesID state_sprites;
|
||||
ErrorContext ERROR_NOIGNORE *(*sprite_add)(struct character *, sprite *, int);
|
||||
ErrorContext ERROR_NOIGNORE *(*sprite_get)(struct character *, int, sprite **);
|
||||
akerr_ErrorContext AKERR_NOIGNORE *(*sprite_add)(struct character *, sprite *, int);
|
||||
akerr_ErrorContext AKERR_NOIGNORE *(*sprite_get)(struct character *, int, sprite **);
|
||||
int movementspeed;
|
||||
float vx;
|
||||
float vy;
|
||||
} character;
|
||||
|
||||
|
||||
ErrorContext ERROR_NOIGNORE *character_initialize(character *basechar, char *name);
|
||||
ErrorContext ERROR_NOIGNORE *character_sprite_add(character *basechar, sprite *ref, int state);
|
||||
ErrorContext ERROR_NOIGNORE *character_sprite_get(character *basechar, int state, sprite **dest);
|
||||
akerr_ErrorContext AKERR_NOIGNORE *character_initialize(character *basechar, char *name);
|
||||
akerr_ErrorContext AKERR_NOIGNORE *character_sprite_add(character *basechar, sprite *ref, int state);
|
||||
akerr_ErrorContext AKERR_NOIGNORE *character_sprite_get(character *basechar, int state, sprite **dest);
|
||||
|
||||
// This is an SDL iterator so we can't return our error state from it.
|
||||
void character_state_sprites_iterate(void *userdata, SDL_PropertiesID props, const char *name);
|
||||
|
||||
ErrorContext ERROR_NOIGNORE *character_load_json(char *filename);
|
||||
akerr_ErrorContext AKERR_NOIGNORE *character_load_json(char *filename);
|
||||
|
||||
#endif // _CHARACTER_H_
|
||||
|
||||
Reference in New Issue
Block a user