summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/esodata/DoubleSided.java
blob: 8ac66843e746c29a72f7aab6adbf552c51efbea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package bjc.esodata;

/**
 * Interface for a double-sided object.
 *
 * @author bjculkin
 *
 */
public interface DoubleSided {
	/**
	 * Flips the object.
	 *
	 * The active side becomes inactive, and the inactive side becomes active.
	 */
	void flip();

	/**
	 * Check which side of the object is active;
	 *
	 * @return True if the front side is active, false otherwise.
	 */
	boolean currentSide();
}