LCOV - code coverage report
Current view: top level - maps/random/rmgen/painter - TileClassPainter.js (source / functions) Hit Total Coverage
Test: lcov.info Lines: 1 4 25.0 %
Date: 2023-04-02 12:52:40 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /**
       2             :  * Marks the affected area with the given tileclass.
       3             :  */
       4             : function TileClassPainter(tileClass)
       5             : {
       6           0 :         this.tileClass = tileClass;
       7             : }
       8             : 
       9           6 : TileClassPainter.prototype.paint = function(area)
      10             : {
      11           0 :         for (let point of area.getPoints())
      12           0 :                 this.tileClass.add(point);
      13             : };

Generated by: LCOV version 1.14