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
falsycat 80b3b82332 [RELEASE] u22-v04
This version is submitted for U22 final presentation. (squashed 158 commits)
2021-02-07 00:00:00 +00:00

43 lines
695 B
C

#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
);