Package net.eternalclient.api.rs
Interface RSCollisionMap
-
public interface RSCollisionMap
Represents tile collision data for the scene
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int[][]
getFlags()
Gets a 2D array of tile collision flags.
-
-
-
Method Detail
-
getFlags
@MagicConstant(flagsFromClass=net.eternalclient.api.data.CollisionDataFlag.class) int[][] getFlags()
Gets a 2D array of tile collision flags.The array covers all tiles in the scene (104x104), and the index into the array is of format [x][y] where x and y are the tiles scene coordinates, respectively.
Collision flags are checked using the bitwise and (&) operator. Flag values can be obtained and used with the
CollisionDataFlag
class.- Returns:
- all collision flags for the tiles in the scene
-
-