- 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:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user