public int getObjectY ( int groupID , int objectID ) { if ( groupID >= 0 && groupID < objectGroups . size ( ) ) { ObjectGroup grp = ( ObjectGroup ) objectGroups . get ( groupID ) ; if ( objectID >= 0 && objectID < grp . objects . size ( ) ) { GroupObject object = ( GroupObject ) grp . objects . get ( objectID ) ; return object . y ; } } return - 1 ; }
Returns the y - coordinate of a specific object from a specific group .