Add getWorldLocation mixin for Actor

This commit is contained in:
Devin
2017-11-02 14:21:10 -07:00
parent 408cc96133
commit 8165975ba5
2 changed files with 10 additions and 0 deletions

View File

@@ -40,6 +40,8 @@ public interface Actor extends Renderable
int getHealth();
Point getWorldLocation();
Point getLocalLocation();
int getOrientation();

View File

@@ -116,6 +116,14 @@ public abstract class RSActorMixin implements RSActor
return -1;
}
@Override
@Inject
public Point getWorldLocation()
{
Point localLocation = getLocalLocation();
return Perspective.localToWorld(client, localLocation);
}
@Inject
@Override
public Point getLocalLocation()