Class GameInfo

java.lang.Object
org.collebol.client.utils.GameInfo

public abstract class GameInfo extends Object
Load your own game info. Make sure to setup the following plugins in your pom.xml.

Usage:


 <build>
     <resources>
         <resource>
             <directory>src/main/resources/properties</directory>
             <filtering>true</filtering>
         </resource>
     </resources>
     <plugins>
         <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-resources-plugin</artifactId>
             <version>3.3.1</version>
             <configuration>
                 <delimiters>
                     <delimiter>${*}</delimiter>
                 </delimiters>
                 <useDefaultDelimiters>true</useDefaultDelimiters>
             </configuration>
         </plugin>
     </plugins>
 </build>
 

Steps to add your own game info:

  1. Add your game.properties to the directory you have set at: src/main/resources/properties.
  2. Use resource filtering in Maven so variables like ${project.version} are replaced.

Add the following to your game.properties:

     version=${project.version}
     artifactId=${project.artifactId}
     name=${project.name}
 
Since:
1.0-dev
Author:
ColleBol - contact@collebol.org
  • Constructor Details

    • GameInfo

      public GameInfo(String path)
  • Method Details

    • getVersion

      public String getVersion()
    • getArtifactId

      public String getArtifactId()
    • getName

      public String getName()