api: fix wallobject orientation javadoc and use
This is not an angle, and the model outline renderer code which uses it as one is incorrect.
This commit is contained in:
@@ -32,14 +32,28 @@ import java.awt.Shape;
|
|||||||
public interface WallObject extends TileObject
|
public interface WallObject extends TileObject
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The angle of the first wall
|
* A bitfield with the orientation of the first wall
|
||||||
* @see net.runelite.api.coords.Angle
|
* 1 = West
|
||||||
|
* 2 = North
|
||||||
|
* 4 = East
|
||||||
|
* 8 = South
|
||||||
|
* 16 = North-west
|
||||||
|
* 32 = North-east
|
||||||
|
* 64 = South-east
|
||||||
|
* 128 = South-west
|
||||||
*/
|
*/
|
||||||
int getOrientationA();
|
int getOrientationA();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The angle of the second wall
|
* A bitfield with the orientation of the second wall
|
||||||
* @see net.runelite.api.coords.Angle
|
* 1 = West
|
||||||
|
* 2 = North
|
||||||
|
* 4 = East
|
||||||
|
* 8 = South
|
||||||
|
* 16 = North-west
|
||||||
|
* 32 = North-east
|
||||||
|
* 64 = South-east
|
||||||
|
* 128 = South-west
|
||||||
*/
|
*/
|
||||||
int getOrientationB();
|
int getOrientationB();
|
||||||
|
|
||||||
|
|||||||
@@ -1131,7 +1131,7 @@ public class ModelOutlineRenderer
|
|||||||
{
|
{
|
||||||
drawModelOutline(model, lp.getX(), lp.getY(),
|
drawModelOutline(model, lp.getX(), lp.getY(),
|
||||||
Perspective.getTileHeight(client, lp, wallObject.getPlane()),
|
Perspective.getTileHeight(client, lp, wallObject.getPlane()),
|
||||||
wallObject.getOrientationA(), outlineWidth, color, feather);
|
0, outlineWidth, color, feather);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1143,7 +1143,7 @@ public class ModelOutlineRenderer
|
|||||||
{
|
{
|
||||||
drawModelOutline(model, lp.getX(), lp.getY(),
|
drawModelOutline(model, lp.getX(), lp.getY(),
|
||||||
Perspective.getTileHeight(client, lp, wallObject.getPlane()),
|
Perspective.getTileHeight(client, lp, wallObject.getPlane()),
|
||||||
wallObject.getOrientationB(), outlineWidth, color, feather);
|
0, outlineWidth, color, feather);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user