Skip to content

Add mmr #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 42 additions & 15 deletions .classpath
Original file line number Diff line number Diff line change
@@ -1,15 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="bin-launcher" path="src-launcher"/>
<classpathentry kind="src" output="bin-sc2-textures" path="src-sc2-textures"/>
<classpathentry kind="src" output="bin-sc2-balance-data" path="src-sc2-balance-data"/>
<classpathentry kind="src" output="bin-app-libs" path="src-app-libs"/>
<classpathentry kind="src" path="src-app"/>
<classpathentry kind="src" output="bin-tool" path="src-tool"/>
<classpathentry kind="src" output="bin-ext-mod-api" path="src-ext-mod-api"/>
<classpathentry kind="lib" path="app-folder/mod/app-libs/0.0/registry.jar"/>
<classpathentry kind="lib" path="app-folder/mod/app-libs/0.0/mailapi-1.5.0.jar"/>
<classpathentry kind="lib" path="app-folder/mod/app-libs/0.0/smtp-1.5.0.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7"/>
<classpathentry kind="output" path="bin-app"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="bin/main" path="src-launcher">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/main" path="src-sc2-textures">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/main" path="src-sc2-balance-data">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/main" path="src-app-libs">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/main" path="src-app">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/main" path="src-ext-mod-api">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ tasks.xml
.idea/libraries
.idea/**/*.iml
boot-settings.xml*

.DS_Store
bin/main
Binary file added .gradle/4.10/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/4.10/fileHashes/fileHashes.lock
Binary file not shown.
Empty file added .gradle/4.10/gc.properties
Empty file.
Empty file added .gradle/vcs-1/gc.properties
Empty file.
6 changes: 6 additions & 0 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions .settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
connection.project.dir=
eclipse.preferences.version=1
6 changes: 3 additions & 3 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nul
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
Expand Down Expand Up @@ -121,7 +121,7 @@ org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.7
org.eclipse.jdt.core.compiler.source=1.8
org.eclipse.jdt.core.formatter.align_type_members_on_columns=true
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
Expand Down
43 changes: 22 additions & 21 deletions Scelight-dev.launch
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/Scelight/src-launcher/hu/sllauncher/ScelightLauncher.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;Scelight&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;Scelight&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/Scelight/app-folder/mod/launcher/0.0/jl1.0.1.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/Scelight/app-folder/mod/launcher/0.0/mp3spi1.9.5.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/Scelight/app-folder/mod/launcher/0.0/tritonus_share.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="hu.sllauncher.ScelightLauncher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Scelight"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx1024m&#13;&#10;-Dhu.scelight.dev-mode&#13;&#10;-Dhu.scelight.launched-with=Scelight-dev.launch"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:Scelight/app-folder}"/>
</launchConfiguration>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/Scelight/src-launcher/hu/sllauncher/ScelightLauncher.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;Scelight&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;Scelight&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/Scelight/app-folder/mod/launcher/0.0/jl1.0.1.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/Scelight/app-folder/mod/launcher/0.0/mp3spi1.9.5.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/Scelight/app-folder/mod/launcher/0.0/tritonus_share.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.buildship.core.classpathprovider"/>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="hu.sllauncher.ScelightLauncher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Scelight"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx1024m&#13;&#10;-Dhu.scelight.dev-mode&#13;&#10;-Dhu.scelight.launched-with=Scelight-dev.launch"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:Scelight/app-folder}"/>
</launchConfiguration>
27 changes: 14 additions & 13 deletions Scelight.launch
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/Scelight/src-launcher/hu/sllauncher/ScelightLauncher.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="hu.sllauncher.ScelightLauncher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Scelight"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx1024m&#13;&#10;-Dhu.scelight.launched-with=Scelight.launch"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:Scelight/app-folder}"/>
</launchConfiguration>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/Scelight/src-launcher/hu/sllauncher/ScelightLauncher.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.buildship.core.classpathprovider"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="hu.sllauncher.ScelightLauncher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Scelight"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx1024m&#13;&#10;-Dhu.scelight.launched-with=Scelight.launch"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:Scelight/app-folder}"/>
</launchConfiguration>
21 changes: 21 additions & 0 deletions scelight.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="scelight-master:main" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.11" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
<orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.3.1" level="project" />
<orderEntry type="library" name="Maven: javax.activation:javax.activation-api:1.2.0" level="project" />
<orderEntry type="library" name="Maven: org.glassfish.jaxb:jaxb-runtime:2.3.1" level="project" />
<orderEntry type="library" name="Maven: org.glassfish.jaxb:txw2:2.3.1" level="project" />
<orderEntry type="library" name="Maven: com.sun.istack:istack-commons-runtime:3.0.7" level="project" />
<orderEntry type="library" name="Maven: org.jvnet.staxex:stax-ex:1.8" level="project" />
<orderEntry type="library" name="Maven: com.sun.xml.fastinfoset:FastInfoset:1.2.15" level="project" />
</component>
</module>
7 changes: 5 additions & 2 deletions src-app/hu/scelight/gui/page/repanalyzer/UsersComp.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ private void buildGui() {

table.setRowHeightForProgressBar();

final Vector< Object > columns = Utils.vector( "User Color", "Team", "Color", "Name", "Race", "Result", "<html>Highest<br>League</html>", "APM", "SPM",
final Vector< Object > columns = Utils.vector( "User Color", "Team", "Color", "Name", "Race", "Result", "<html>Highest<br>League</html>", "MMR", "APM", "SPM",
"SQ", "<html>Supply-<br>capped %</html>", "<html>Swarm<br>Levels</html>", "<html>Start<br>Dir</html>", "Role", "Control", "Toon", "Slot",
"Handicap" );
final List< Class< ? > > columnClasses = Utils.< Class< ? > > asNewList( Color.class, Integer.class, PlayerColor.class, String.class,
RenderablePair.class, RenderablePair.class, TableIcon.class, ProgressBarView.class, ProgressBarView.class, ProgressBarView.class,
RenderablePair.class, RenderablePair.class, TableIcon.class, Integer.class, ProgressBarView.class, ProgressBarView.class, ProgressBarView.class,
ProgressBarView.class, ProgressBarView.class, Integer.class, Role.class, Controller.class, Toon.class, Integer.class, Integer.class );

final int userColorColIdx = 0;
Expand Down Expand Up @@ -112,6 +112,9 @@ private void buildGui() {
row.add( u.player == null ? null : new RenderablePair<>( u.player.getResult().ricon.get(), u.player.getResult().text
+ ( u.player.isResultDeduced() ? " (Deduced)" : "" ) ) );
row.add( u.uid == null ? null : u.uid.getHighestLeague().tableIcon );

row.add( u.mmr );

row.add( new ProgressBarView( u.apm, maxApm ) );
row.add( new ProgressBarView( (int) ( u.spm * 100 ), (int) ( maxSpm * 100 ), Env.LANG.formatNumber( u.spm, 2 ) ) );
row.add( new ProgressBarView( u.sq, maxSq ) );
Expand Down
2 changes: 1 addition & 1 deletion src-app/hu/scelight/sc2/rep/model/details/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public Player( final Map< String, Object > struct, final int playerIdx ) {
name = Utils.stripOffMarkupFormatting( get( F_NAME ).toString().replace( "&lt;", "<" ).replace( "&gt;", ">" ) );
raceString = get( F_RACE ).toString();
race = Race.fromLocalizedValue( raceString );
recordedResult = Result.VALUES[ get( F_RESULT ) ];
recordedResult = Result.VALUES[ (int) get( F_RESULT ) ];
team = get( F_TEAM_ID );
toon = new Toon( this.< Map< String, Object > > get( F_TOON ) );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ public Boolean getTestMap() {
return get( F_TEST_MAP );
}

@Override
public Integer getMMR() {
return get( F_MMR );
}

@Override
public League getHighestLeague() {
if ( highestLeague == null ) {
Expand Down
13 changes: 12 additions & 1 deletion src-app/hu/scelight/sc2/rep/repproc/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ public class User implements IUser {
* </p>
*/
public double spm;

/**
* MMR of the user.
*/
public int mmr;


// Derived data from tracker events
Expand Down Expand Up @@ -158,8 +163,10 @@ public User( final RepProcessor repProc, final int slotIdx, final int playerIdx,
this.uid = uid;
this.player = player;

if ( uid != null )
if ( uid != null ) {
name = uid.name;
mmr = uid.getMMR();
}
else if ( player != null ) {
String name_ = player.getName();
// Cut off clan name
Expand Down Expand Up @@ -303,4 +310,8 @@ public PlayerColor getPlayerColor() {
return playerColor;
}

@Override
public int getMMR() {
return mmr;
}
}
5 changes: 4 additions & 1 deletion src-app/hu/scelight/template/Symbol.java
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,10 @@ public enum Symbol implements HasRIcon {
Icons.F_DIRECTION,
"startDirX",
"1",
"<html>Direction of the start location of the <font color=red><b>X</b></font>-th player. It is a time hour value (e.g. 1 o'clock)</html>" );
"<html>Direction of the start location of the <font color=red><b>X</b></font>-th player. It is a time hour value (e.g. 1 o'clock)</html>" ),

/** Player's MMR */
MMR( Icons.MY_SQ, "mmrX", "4500", "<html>MMR of the <font color=red><b>X</b></font>-th player.</html>" );



Expand Down
4 changes: 4 additions & 0 deletions src-app/hu/scelight/template/TemplateEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,10 @@ private void processSymbol( final SymbolWithRange swr ) {
if ( swr.param <= playerUsers.length )
vb.append( playerUsers[ swr.param - 1 ].getSq() );
break;
case MMR:
if ( swr.param <= playerUsers.length)
vb.append( playerUsers[swr.param - 1 ].getMMR() );
break;
case SUPPLY_CAPPED :
if ( swr.param <= playerUsers.length )
vb.append( Env.LANG.formatNumber( playerUsers[ swr.param - 1 ].getSupplyCappedPercent(), 2 ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,13 @@ public interface IUserInitData extends IStructView {
/** Test map field name. */
String F_TEST_MAP = "testMap";

/** MMR */
String F_MMR = "scaledRating";


/**
* Returns the associated player id for this user init data (in {@link IDetails#getPlayerList()})
*
*
* @return the associated player id for this user init data (in {@link IDetails#getPlayerList()})
*/
int getPlayerId();
Expand Down Expand Up @@ -180,4 +183,10 @@ public interface IUserInitData extends IStructView {
*/
ILeague getHighestLeague();

/**
* Returns the MMR.
*
* @return MMR
*/
Integer getMMR();
}
7 changes: 7 additions & 0 deletions src-ext-mod-api/hu/scelightapi/sc2/rep/repproc/IUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,11 @@ public interface IUser {
*/
IPlayerColor getPlayerColor();

/**
* Returns the player MMR.
*
* @return the player MMR.
* @since ???
*/
int getMMR();
}