EmergentOrganization/cell-rpg

View on GitHub
core/src/io/github/emergentorganization/cellrpg/core/WorldFactory.java

Summary

Maintainability
A
3 hrs
Test Coverage

Method arcadeGameWorld has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static World arcadeGameWorld(PixelonTransmission pt,
                                          SpriteBatch batch, Stage stage, EntityFactory entityFactory) {

        WorldConfiguration wc = new WorldConfiguration();
        wc.register(entityFactory);

    Method standardGameWorld has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static World standardGameWorld(PixelonTransmission pt,
                                              SpriteBatch batch, Stage stage, EntityFactory entityFactory) {
    
            WorldConfiguration wc = new WorldConfiguration();
            wc.register(entityFactory);

      Method createWorld has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public static World createWorld(WorldType type, PixelonTransmission pt,
                                          SpriteBatch batch, Stage stage, EntityFactory entityFactory) {
      Severity: Minor
      Found in core/src/io/github/emergentorganization/cellrpg/core/WorldFactory.java - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status