This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/core/loentity/character.h

43 lines
695 B
C
Raw Normal View History

#pragma once
#include "util/math/vector.h"
#include "core/loeffect/effect.h"
#include "./entity.h"
#include "./decl.private.h"
typedef struct {
void
(*apply_effect)(
loentity_character_t* chara,
const loeffect_t* effect
);
void
(*knockback)(
loentity_character_t* chara,
const vec2_t* v
);
} loentity_character_vtable_t;
struct loentity_character_t {
loentity_t super;
loentity_character_vtable_t vtable;
vec2_t velocity;
};
void
loentity_character_apply_effect(
loentity_character_t* chara,
const loeffect_t* effect
);
void
loentity_character_knockback(
loentity_character_t* chara,
const vec2_t* v
);