- Afegit nom als actors

- [BUG] Els actors es movien magicament (push no definit)
- Clear de actors
- Comencem amb l'editor
This commit is contained in:
2023-06-04 11:37:27 +02:00
parent 5ee23cb000
commit 312bed64da
5 changed files with 57 additions and 28 deletions

View File

@@ -33,6 +33,7 @@ namespace actor
{
struct actor_t
{
char name[8];
SDL_Rect bmp_rect;
SDL_Point bmp_offset;
@@ -60,7 +61,7 @@ namespace actor
actor_t *getFirst();
actor_t *create(vec3_t p, vec3_t s, SDL_Rect r, SDL_Point o);
actor_t *create(const char *name, vec3_t p, vec3_t s, SDL_Rect r, SDL_Point o);
void setDirty(actor_t *act, const bool force=false);
@@ -75,4 +76,6 @@ namespace actor
actor_t *get_collision(actor_t *act);
const bool check_collision(actor_t *obj1, actor_t *obj2);
void clear();
}