aboutsummaryrefslogtreecommitdiffstats
path: root/src/ru/olamedia/olacraft/network/ConnectionState.java
blob: 2d6c5c51342553bac4000b5d8492b26b12d0478b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package ru.olamedia.olacraft.network;

public class ConnectionState {
	private int state;

	public ConnectionState(int state) {
		this.state = state;
	}

	public static ConnectionState STATE_DISCONNECTED = new ConnectionState(0);
	public static ConnectionState STATE_CONNECTED = new ConnectionState(1);
	public static ConnectionState STATE_CONNECTING = new ConnectionState(2);

	public boolean isConnected() {
		return state == 1;
	}
}