- actor::find() per nom

- [new] actor seleccionat
- actor seleccionat es pinta de diferent color
This commit is contained in:
2023-09-20 18:58:41 +02:00
parent 80e5ee4680
commit 47aa1c0e78
2 changed files with 42 additions and 0 deletions

View File

@@ -66,9 +66,13 @@ namespace actor
actor_t *getFirst();
actor_t *getSelected();
actor_t *create(const char *name, vec3_t p, vec3_t s, const char *bmp, SDL_Rect r, SDL_Point o);
void setDirty(actor_t *act, const bool force=false);
void select(actor_t *act);
void reorder();
@@ -76,6 +80,8 @@ namespace actor
void draw(actor_t *act, const bool draw_all=true);
actor_t *find(const char *name);
actor_t *find_at(const int x, const int y, const int z);
actor_t *get_collision(actor_t *act);