diff options
Diffstat (limited to 'src/entity.h')
-rw-r--r-- | src/entity.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h index 01230d5..f4ed7cd 100644 --- a/src/entity.h +++ b/src/entity.h @@ -8,6 +8,7 @@ struct Entity { unsigned long uuid; void (*update)(Entity *this, struct Game *g); void (*draw)(Entity *this, struct Game *g); + void (*smash)(Entity *this, struct Game *g); unsigned int type; int pos[2]; double vel[2]; @@ -15,6 +16,12 @@ struct Entity { int width; int height; bool ignore_solids; + bool broken; + union { + struct { + double recoil; + } player; + }; }; unsigned int entity_type(const char *typename); |