-[NEW] actor::drawAt(), per a pintar un actor on siga (coordenades de pantalla, no isomètriques)
This commit is contained in:
@@ -965,7 +965,13 @@ namespace actor
|
||||
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)
|
||||
{
|
||||
if (!act) return;
|
||||
|
||||
@@ -135,6 +135,7 @@ namespace actor
|
||||
void update(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);
|
||||
|
||||
actor_t *find(std::string name);
|
||||
|
||||
Reference in New Issue
Block a user