private void loadCollisionGroups ( MapTileCollision mapCollision , Media groupsConfig ) { Verbose . info ( INFO_LOAD_GROUPS , groupsConfig . getFile ( ) . getPath ( ) ) ; this . groupsConfig = groupsConfig ; final Xml nodeGroups = new Xml ( groupsConfig ) ; final CollisionGroupConfig config = CollisionGroupConfig . imports ( nodeGroups , mapCollision ) ; loadCollisionGroups ( config ) ; }
Load the collision groups . All previous groups will be cleared .