Interface CollisionData


  • public interface CollisionData
    Represents tile collision data for the scene
    • Method Detail

      • getFlags

        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
        See Also:
        Constants.SCENE_SIZE