-[NEW] actor::drawAt(), per a pintar un actor on siga (coordenades de pantalla, no isomètriques)

This commit is contained in:
2024-07-07 08:37:08 +02:00
parent f9733da46f
commit 84618348e2
2 changed files with 8 additions and 1 deletions

View File

@@ -965,7 +965,13 @@ namespace actor
if (sign) draw::draw(x,y,5,7,50,120); if (sign) draw::draw(x,y,5,7,50,120);
} }
//int order=0; void drawAt(actor_t * act, const int x, const int y)
{
act->inner_x = x;
act->inner_y = y;
draw(act, false);
}
void draw(actor_t *act, const bool draw_all) void draw(actor_t *act, const bool draw_all)
{ {
if (!act) return; if (!act) return;

View File

@@ -135,6 +135,7 @@ namespace actor
void update(actor_t *act, const bool update_all=true); void update(actor_t *act, const bool update_all=true);
void updateEditor(actor_t *act, const bool update_all=true); void updateEditor(actor_t *act, const bool update_all=true);
void drawAt(actor_t * act, const int x, const int y);
void draw(actor_t *act, const bool draw_all=true); void draw(actor_t *act, const bool draw_all=true);
actor_t *find(std::string name); actor_t *find(std::string name);