All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dc.riot.lol.rx.model.match.Position Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package org.dc.riot.lol.rx.model.match;

/**
 * This object contains participant frame position information.
 * 
 * @author Dc
 * @since 1.0.0
 */
public class Position {
	private static long COUNT = 0;
	public static long getInstanceCount() {
		return COUNT;
	}
	
	private Integer x;
	private Integer y;
	
	public Position() {
		COUNT++;
	}
	
	public int getX() {
		if (x == null) {
			return 0;
		}

		return x;
	}
	
	public int getY() {
		if (y == null) {
			return 0;
		}

		return y;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy